Flow of Control Quiz 4

Share with others

Welcome to your Flow of Control Quiz 4

Name
Email
School Name
Q31. Write the output of the following :

if 'i' == "i" :
print(True)
else:
print("False")

Q32. Write the output of the following:

if (3+8//2 != 7):
print("H")
else:
print("B")

Q33. Write the output of the following:

a=5
b=6
c=7
d=8
if a > b:
    if c > a:
        if d < c:
             print("Hello")
        else:
             print("B")
    else:
           print("A")
print("What")

Q34. Write the output of the following:

a=15
b=6
c=7
d=8
if a > b:
    if c > a:
        if d < c:
             print("Hello")
        else:
             print("B")
    else:
           print("A")

Q35. Write the output of the following:

a=155
b=126
c=237
d=388
if a > b:
    if c > a:
        if d < c:
             print("Hello")
        else:
             print("B")
    else:
           print("A")

Q36. Repetition of a set of statements in a program is made possible using ____________

Q37. The statements in a loop are executed repeatedly as long as particular condition ______________.

Q38. Condition in loops is checked based on the value of a variable called the ___________

Q39. When the condition in loops becomes false, the loop _____________

Q40. If the condition given in the loop never return False then the loop _______________


Share with others

Leave a Reply

error: Content is protected !!