NEW
Font size
S
M
L
XL
WorksheetsVariables and data types
Total questions: 12
Worksheet time: 24mins
Name
Class
Date
1.
What data type is "heyyyyyyyyyyyyy"?
a)
String
b)
Integer
c)
Float
d)
Word
2.
What data type is 801?
a)
String
b)
Integer
c)
Float
d)
Word
3.
What data type is 801.00?
a)
String
b)
Integer
c)
Float
d)
Word
4.
What do you get when print(4 / 1) ?
a)
4
b)
1
c)
4.0
d)
1.0
5.
print("yo " * 2)
a)
yoyo
b)
yo yo
c)
Honey Singh
d)
yo
6.
print("aaj" + "meri" + "shaadi" + "hai")
a)
aaj + meri + shaadi + hai
b)
aaj meri shaadi hai
c)
aajmerishaadihai
d)
error
7.
print(2 + 1.0)
a)
3
b)
3.0
c)
error
d)
2
8.
What is a WRONG variable name?
a)
hello1
b)
helo_1
c)
hello1_
d)
1_hello
9.
Which is a RIGHT variable name?
a)
name 1
b)
name_1_2
c)
_name_
d)
name&_
10.
What is wrong here?
a)
hello = "haye"
b)
hello = 0
c)
hello = 9.8
d)
hello = hello
11.
var = 80
print(var + 20)
a)
100
b)
80
c)
20
d)
error
12.
var = 9
var2 = 1.0
print(var + var2)
a)
9
b)
1.0
c)
10.0
d)
10
Reset
