Flow of Control Quiz 7

Share with others

Welcome to your Flow of Control Quiz 7

Q61. Execution of which statement is not dependent on the condition?

if i <=4 :
    print("Hello")     #Statement 1
    print("How")     #Statement 2
else:
    print("are")     #Statement 3
print("You")     #Statement 4

Q62. Which of the following statement will return error?

Q63. How many times the following loop will execute?

a = [10, 11, 12, 13, 45]
for a[3] in a:
     print("Flow")

Q64. Write the output of the following:

for l in range(3):
   if l == 2:
      continue
   else:
      print("i",end = " ")
else:
   print("Here")

Q65. Which of the following is an empty statement in python?

Q66. Which of the following is jump statement in python?

Q67. Which symbol is used to end loop and conditional statements?

Q68. Write the output of the following:

St="Amit"
for i in St:
   St.swapcase()
print(St)

Q69. What will be the value of 'm' and 'n' after execution of following code:

m = 3;
for n in range(2, 7, 2):
    n*=m
    n=n-1

Q70. What will be the value of 'n' and 'n1' after execution of following code:

n1=10
for n in range(10, 12):
    n1=n ** 2
    n1=n1-10


Share with others

Leave a Reply

error: Content is protected !!