Font size
S
M
L
XL
WorksheetsGrade 7 & 8 First quiz term 3
Total questions: 10
Worksheet time: 8mins
Name
Class
Date
1.
Which of the following is not a valid data types in Python?
a)
integer
b)
float
c)
Char
d)
string
2.
Which of the following are examples of arithmetic operators in Python?
a)
+
b)
&
c)
-
d)
*
3.
What will be the output of the following Python code?
a)
3
b)
13
c)
30
d)
7
4.
The number 3.4 is an integer type
a)
True
b)
False
5.
Operator * is used for multiplication
a)
True
b)
False
6.
a*b and a**b gives the same output
a)
True
b)
False
7.
What is the function used to find the data type of a variable ?
a)
print()
b)
int()
c)
type()
d)
none of them
8.
which is the correct way of declaring a variable x, and assigning a value 10 to it?
a)
int x
x=10
b)
int x=10
c)
x=10
d)
None of them
9.
Two python numeric data types are ____ and ______
a)
integer and float
b)
integer and string
c)
string and boolean
d)
list and float
10.
What will be the output of the following Python code?
a)
7
b)
0.7
c)
7.0
d)
7.7
Reset
