Break Continue in Python MCQs Exercise I

Ques 1 Break Continue


"break" is the keyword that comes out from the loop body.

A True
B False
C None
D Not define

Ques 2 Break Continue


What is the output of the following Python Code?


  i,j=4,5
  count=0
  while i!=0 and j>=0:
    count=i-1
    j=count-i
    if i==j:
        break
    print(i,end=" ")

A 5
B 5 2 -1
C 4 2 -1
D 4

Ques 3 Break Continue


What is the output of the following Python Code?


 i,j=4,5
 count=0
 for i in range (i,i+j,i):
     count=i-1
     j=count-i
     if i==j:
         break
     print(count,end=" ")

A 5 7
B 5 2 0
C 4 7
D 9 12

Ques 4 Break Continue


What is the output of the following Python Code?


int=10
for i in range(0,int):
    if i%2==0:
        continue
    if i%2!=0:
        print(i,end=" ")

A 1 3 5 7 9
B 0 2 4 6 8
C Error,int is keyword.
D None of these.

Ques 5 Break Continue


What is the output of the following Python Code?


int=10
for i in range(0,int):
    for j in range(0,int+int):
        if i^i==i-j:
            print(i-j,end=" ")
            break

A 0
B 0 0 0 0 0 0 0 0 0 0
C Error,int is keyword.
D None of these.