Worksheetsquiz
Total questions: 7
Worksheet time: 3mins
Name
Class
Date
1.
can we declare variables in python
a)
yes
b)
no
2.
which programs will executes faster
a)
python
b)
c
3.
which of the following is not a feature of of python
a)
simple
b)
object oriented
c)
portable
d)
recursion optimizations
4.
for num in range(10, 14):
for i in range(2, num):
if num%i == 1:
print(num)
break
a)
10,11,12,13
b)
11,12,13
c)
12,13
d)
13
5.
x = 10
y = 10.6
x = x + y
print("x is of type:",type(x))
a)
float
b)
int
c)
bool
d)
string
6.
which of the following is an immutable data type
a)
list
b)
string
c)
set
d)
dict
7.
tuple1=(0,1,2,3,4)
tuple1[0]=4
print(tuple1)
a)
0,1,2,3,4
b)
4,1,2,3,4
c)
1,2,3,4
d)
error
100 %
