NEW
Font size
WorksheetsPython-quiz2
Total questions: 11
Worksheet time: 11mins
What will be the output of the following Python code?
a) 1
2
3
b) error
c) 1
2
d) none of the mentioned
What are the values of the following Python expressions?
2**(3**2)
(2**3)**2
2**3**2
a) 512, 64, 512
b) 512, 512, 512
c) 64, 512, 64
d) 64, 64, 64
What will be the output of the following Python program?
a) error
b) 0 1 2 0
c) 0 1 2
d) none of the mentioned
What will be the output of the following Python code?
a) 1 2 3 4 5 6
b) 1 2 3 4 5 6 7
c) error
d) none of the mentioned
What will be the output of the following Python code?
a) 1
b) 1 3 5 7.....
c) 1 2 3 4..... .
d) none of the mentioned
What will be the output of the following Python code?
a) a b c d
b) 0 1 2 3
c) error
d) none of the mentioned
What will be the output of the following Python code?
a) a b c d
b) 0 1 2 3
c) error
d) 1 2 3 4
What will be the output of the following Python code?
a) 0 1 2
b) a b c
c) {0: 'a', 1: 'b', 2: 'c'}
{0: 'a', 1: 'b', 2: 'c'}
{0: 'a', 1: 'b', 2: 'c'}
d) none of the mentioned
What will be the output of the following Python code?
for i in range(0):
print(i)
a) 0
b) no output
c) error
d) none of the mentioned
What will be the output of the following Python code snippet?
a) 0 1 2 3 4 …
b) 0 -2
c) 0
d) error
What will be the output of the following Python code?
a) 0 1 2 3 4 Here
b) 0 1 2 3 4 5 Here
c) 0 1 2 3 4
d) 1 2 3 4 5
