111. |
What will be the output of the following Python code?
'%s' %((1.23,),)
|
||||||||
Answer:
Option (a) |
112. |
What will be the output of the following two codes?
'{0}'.format(4.56)
'{0}'.format([4.56,])
|
||||||
Answer:
Option (b) |
113. |
What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
|
||||||||
Answer:
Option (a) |
114. |
What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
|
||||||||
Answer:
Option (d) |
115. |
What will be the output of the following Python code?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
|
||||||||
Answer:
Option (c) |
116. |
What will be the output of the following Python code?
i = 1
while True:
if i%0O7 == 0:
break
print(i)
i += 1
|
||||||||
Answer:
Option (a) |
117. |
What will be the output of the following Python code?
i = 5
while True:
if i%0O11 == 0:
break
print(i)
i += 1
|
||||||||
Answer:
Option (b) |
118. |
What will be the output of the following Python code?
i = 5
while True:
if i%0O9 == 0:
break
print(i)
i += 1
|
||||||||
Answer:
Option (d) |
119. |
What will be the output of the following Python code?
i = 1
while True:
if i%2 == 0:
break
print(i)
i += 2
|
||||||||
Answer:
Option (d) |
120. |
What will be the output of the following Python code?
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
|
||||||||
Answer:
Option (b) |