NEW
Font size
S
M
L
XL
WorksheetsLesson 25 - datetime module
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
The operator used to check equality of the elements ?
a)
=
b)
!=
c)
==
d)
none
2.
There are total number of ways to import the module ?
a)
1
b)
2
c)
3
d)
none
3.
Python mutable datatypes are ?
a)
list
b)
tuple
c)
set
d)
both list and set
4.
What will be the output of the following code ?
L=[1,2,3,4,5]
Print(sum(L))
a)
15
b)
20
c)
30
d)
none
5.
What will be the output of the following code ?
a)
321
b)
345
c)
120
d)
none
6.
Indexing cannot be done in case of ?
a)
set
b)
list
c)
tuple
d)
string
7.
Python is a language of type -
a)
high level
b)
medium level
c)
low level
d)
none
8.
In python how many types of loop are there -
a)
1
b)
2
c)
3
d)
none
9.
Membership operators are-
a)
in
b)
is not
c)
is
d)
none
10.
What will be the output of the following code ?
a)
20
b)
10
c)
5
d)
none
Reset
