Question 1
Which transfer statement in python is used to return a value from a function and terminate its execution?
Question 2
What is the purpose of the continue statement in python?
Question 3
What will be the output of the following code?
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
Which transfer statement in python is used to terminate the current loop iteration and move to the next iteration?
Question 7
What will be the output of the following code?
x=0
while x<5:
x+=1
if x==3:
continue
print(x, end=)
Question 8
What will be the output of the following code?
for i in range(5):
if i= =3:
break
print(i,end=)
Question 9
What is the purpose of the pass statement in python?
Question 10
What is the purpose of the break statement in python?