Question 1
What will be the output of the following code?
Question 2
What is the purpose of the break statement in python?
Question 3
What will be the output of the following code?
x=0
while x<5:
x+=1
if x==3:
continue
print(x, end=)
Question 4
Which transfer statement in Python is used to skip a certain block of code without terminating the loop?
Question 5
Which transfer statement in python is used to raise an exception and handle it in an outer scope?
Question 6
What will be the output of the following code?
for i in range(5):
if i= =3:
break
print(i,end=)
Question 7
Which transfer statement in python is used to return a value from a function and terminate its execution?
Question 8
What is the purpose of the pass statement in python?
Question 9
Which transfer statement in python is used to terminate the current loop iteration and move to the next iteration?
Question 10
What is the purpose of the continue statement in python?