ExamVeda
Login
Home
41
What will be the output of the following Python code snippet?
for i in '':
    print (i)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
42
What will be the output of the following Python code snippet?
for i in 'abcd'[::-1]:
    print (i)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
43
What will be the output of the following Python code?
for i in range(2.0):
    print(i)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
44
What will be the output of the following Python code?
for i in range(int(2.0)):
    print(i)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
45
What will be the output of the following Python code snippet?
for i in ''.join(reversed(list('abcd'))):
    print (i)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
46
What will be the output of the following Python code snippet?
x = 2
for i in range(x):
    x += 1
    print (x)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
47
What will be the output of the following Python code snippet?
for i in [1, 2, 3, 4][::-1]:
    print (i)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
48
What will be the output of the following Python code?
for i in range(float('inf')):
    print (i)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
49
What will be the output of the following Python code?
for i in range(int(float('inf'))):
    print (i)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
50
What will be the output of the following Python code snippet?
x = 2
for i in range(x):
    x -= 2
    print (x)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board