Font size
WorksheetsPython Revision
Total questions: 15
Worksheet time: 7mins
Which of the following is a correct identifier?
My-Name
True
2ndName
S_name
(a) literals represent True or False.
Which out of the following is an identity operator?
is
not
or
not in
Which out of the following is a logical operator?
in
not
not in
is not
What will be the output of 14%4 :
2.0
2
3
3.0
Find the output of 2**3?
6
6.0
8
8.0
Write the type of token for the following:''True': (a)
Which one is a mutable type?
Integer
String
Tuple
List
The smallest individual unit in a program is known as a (a) .
Python takes ______indented spaces after the function declaration statement by default.
5
6
4
3
Identify the data type: [10,40,80,90]
List
Tuple
Dictionary
String
The result of print(4<5) is _________
False
True
None
Error
The data type of ”123” is ___________.
integer
List
String
Tuple
(a) Statement terminates the loop.
The output of range(5) will be:
range(0,5)
range(0,4)
[0,1,2,3,4]
[1,2,3,4,5]
