ExamVeda
Login
Home
61
What will be the output of the following Python code?
for i in range(0):
    print(i)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following Python code?
x = 'abcd'
for i in range(x):
    print(i)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
63
What will be the output of the following Python code?
x = 'abcd'
for i in x:
    print(i.upper())
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
64
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
    print(x)
    x = 'a'
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
65
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
    i.upper()
print (x)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
    x[i].upper()
print (x)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
67
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
    i[x].upper()
print (x)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
68
What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
    print(i.upper())
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
69
What will be the output of the following Python code?
x = 'abcd'
for i in x:
    print(i)
    x.upper()
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
70
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
    x = 'a'
    print(x)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board