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