Python Questions
Python Questions
PYTHON TEST 1
a).yp
b) .pl
c) .py
d) .p.python
6.Aplication of python?
7. Python Indentation?
8.
a = 37
b = 270
if b > a:
print("B is greater than a")
output of the programme?
a) pass
b) eval
c) assert
d) nonlocal
i=0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
a) error
b) 0 1 2 0
c) 0 1 2
d) none of the mentioned
24. The expression int(x) implies that the variable x is converted to integer.
a) True
b) False
a)k = 2 + 3j
b) k = complex(2, 3)
c) k = 2 + 3l
d) k = 2 + 3J
27.
a = 37
b = 270
if b > a:
print("b is greater than a")
output of the programme?
1. >>>"a"+"bc"
a) a
b) bc
c) bca
d) abc
1. >>>print('new' 'line')
a) Error
b) Output equivalent to print ‘new\nline’
c) newline
d) new line
31.define variable .
35.mutable& immutable? .
43.break Statement?
44. continue statement?
45.
i=0
while i < 5:
print(i)
i += 1
if i == 3:
break
else:
print(0)
a) 0 1 2 0
b) 0 1 2
c) error
d) none of the mentioned
i=0
while i < 3:
print(i)
i += 1
else:
print(0)
a) 0 1 2 3 0
b) 0 1 2 0
c) 012
d) Error
49.source code?