You are not logged in.

#1 2017-12-08 04:50:36

hamidoon123
Moderator
Registered: 2017-09-21
Posts: 50,766

What is the output of the following? x = 'abcd'for i in range(l...

Software Engineering Exams Quizzes MCQs Quizzes Python Online MCQs Test

Question:
What is the output of the following?
x = 'abcd'
for i in range(len(x)):
print(x)
x = 'a'

Option A):
abcd abcd abcd abcd
Option B):
None of the mentioned
Option C):
a
Option D):
a a a a

Correct Answer is Option B):
None of the mentioned

2017-12-08 04:50:36

Advertisement
Ads By Google

Re: What is the output of the following? x = 'abcd'for i in range(l...



\n

Board footer