Worksheetsoperators in python
Total questions: 14
Worksheet time: 7mins
Name
Class
Date
1.
print(7//2)
a)
2
b)
3
c)
4
2.
print(9>2 and 6<=6)
a)
TRUE
b)
FALSE
3.
print(8!=8)
a)
TRUE
b)
FALSE
4.
print(2**3)
a)
6
b)
12
c)
8
5.
print((15%4))
a)
4
b)
5
c)
3
6.
print("3"+"3")
a)
33
b)
6
c)
INVALID OUTPUT
7.
print(not (0<1))
a)
TRUE
b)
FALSE
c)
TYPE ERROR
8.
print(2%2==0 or 3%2==0)
a)
TRUE
b)
FALSE
c)
INVALID OUTPUT
9.
print(5+8*2)
a)
26
b)
21
c)
169
10.
print(4+"2")
a)
6
b)
42
c)
TYPE ERROR
11.
What is the value of the expression 100 / 25?
a)
4
b)
4.0
c)
"4.0"
d)
'4.0'
12.
x = 5
y = 3
print(x == y)
a)
True
b)
False
13.
x = 5
y = 3
print(x != y)
a)
True
b)
False
14.
x = 5
x%=3
print(x)
a)
2
b)
2.0
c)
3
d)
3.0
100 %
