MCQ 1
MCQ 1
if a = b:
if a == b:
if a === c:
if a == b
The order of statement execution in the form of top to bottom is known as construct.
alternate
sequence
flow of data
flow chart
Block
loop
indentation
{}
if a>=22;
if a >= 22:
if (a => 22:):
a=11
b=5
if(a//b==2):
print ("Yes")
else :
print("No")
2.5
Yes
No
21
if(‘p’ in ‘Python’):
print(‘P is present’,end=” “)
else:
print(‘Not present’)
P is present
Not present
x = 10
if x < 5:
print("x is less than 5")
elif x > 15:
print("x is greater than 15")
else:
print("x is between 5 and 15")
x is less than 5
x is greater than 15
x is between 5 and 15
print('Turning old')
else:
print('Middle age')
else:
print('Young age')
Turning old
Middle age
Young age
x=3
if (x > 2):
x = x * 2;
if (x > 4):
x = 0;
print(x)
x will always equal 0 after this code executes for any value of x
if x is greater than 2, the value in x will be doubled after this code executes
if x is greater than 2, x will equal 0 after this code executes
If the condition is …………. , the statements of if block will be executed otherwise the statements in
the ……….. block will be executed
false, true
true, else
Can’t say