No student devices needed. Know more
15 questions
What is the output of the Python code :
Identify output :
OK
ERROR
No output
What will be the output of the above code:
A
B
A and B
Error
What will be the output of the expression:
3<(10 or 2)
True
False
3
10
What will be the output:
(50<100)and(10<100)
50
100
True
False
Evaluate the expression :
a=10
b=15
a and b
10
15
True
False
Predict the output:
a,b=10,20
c=b
print(b is c)
True
False
Predict the output:
a=b=10
c,b=b,a+5
print(a,b,c)
10 10 10
15 10 10
10 15 10
10 15 15
Predict the output:
"5" in [1,2,3,4,5]
True
False
Predict the output:
print(2+12//4-25%3)
12
6
4
0
If the following expression is evaluated, what type of error will occur?
x=10/0
print(x)
logical error
Syntax error
Runtime error
No error
What will be the output of the following expression:
-14>-15
True
False
Error
No output
Predict the output of the following code:
a,b,c=5,12,35
x,y,z=c-20,b+3,a*2
print(x,y,z)
15 10 15
15 15 10
10 15 15
15 10 10
Predict the output of the following code:
L=[10,24,23,45,67]
print(100//10 in L)
TRUE
FALSE
ERROR
NO OUTPUT
Predict the output of the following code:
x=8
y=2
x+=y
y-=x
print(x,y)
10 -6
10 -8
8 -6
8 -8
Explore all questions with a free account