NEW
Font size
WorksheetsPython operator and collections
Total questions: 12
Worksheet time: 6mins
What is the value of the expression 100 / 25?
4
4.0
"4.0"
'4.0'
Which is the correct operator for power(x^y)?
X^y
X**y
X^^y
None of the mentioned
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
print(not (0<1))
TRUE
FALSE
TYPE ERROR
print(5+8*2)
26
21
169
The code above prints
Math
Physics
Chemistry
English
4
3.8
3.6
3.7
None
None
None
None
NaN
NaN
NaN
NaN
________________method will returns number of key-value pairs in the given dictionary.
len( )
pop( )
del( )
keys( )
values( )
____________ is a collection which is unordered, changable and indexed.
Dictionary
List
Tuple
Set
List = [2.3, 4.445, 3, 5.33, 1.054, 2.5]
print(List.pop()) What willbe the answer?
2.3
2.5
1.054
4.445
a=(1,2,3,2,4,5,2)
a.count(2)
What will be the answer?
2
1
3
4
List = [1, 2, 3, 1, 2, 1, 2, 3, 2, 1]
print(List.count(1))
What will be the output?
1
2
3
4
