No student devices needed. Know more
12 questions
Which python operator means 'less than or equal to'?
>=
>
<
<=
What is the value of the expression 100 / 25?
4
4.0
"4.0"
'4.0'
What is the output of the following code :
print 9//2
4.5
4.0
4
3
Which one of these is floor division?
/
//
%
None of the mentioned
What is the answer of this expression, 22 % 3 is?
7
1
0
5
x = 4.5
y = 2
print(x//y)
2.0
2
9
9.0
x = 5
print(x > 3 and x < 10)
True
False
x = 8
print(x > 3 or x < 20)
True
False
x = 5
y = 3
print(x == y)
True
False
x = 10
y = 10
print(x != y)
True
False
x = 5
x%=3
print(x)
2
2.0
3
3.0
print(not (0<1))
TRUE
FALSE
TYPE ERROR
Explore all questions with a free account