0 of 15 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 15 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
While Loop Repeats a statement when the given condition is False
What is the syntax for “While” loop
What will the output for?
i=3
while(i>2):
print(i)
i=i-1
Find the output:
i=1
while True:
if(i%4==0):
break
print(i)
i=i+1
What will be the output for below program?
True=False
while True:
print(True)
break
What will be the output for below program?
i=[‘1’]
for x in i:
print(x)
What will be the output for below program?
for i in range(0):
print(i)
What will be the output for below program?
for i in range(2.0):
print(i)
What will be the output for below program?
for i in range(-1,2):
print(i)
What will be the output for below program?
x=2
for i in range(x):
i=i+1
print(i)
What will be the output for below program?
for i in range(5):
if(i==3):
break
else:
print(i)
else:print(“Here”)
What will be the output for below program?
i=1
while False:
if(i%2==0):
break
print(i)
i=i+2
What will be the output for below program?
x=123
for i in x:
print(i)
What will be the output for below program?
dict={‘0′,’1′,’2’}
for x in dict:
print(x)
else:
print(“Else”)
What will be the output for below program?
for i in range(0,10,2):
print(i)
