Font size
WorksheetsALPro 3 - Variable and Data Type
Total questions: 16
Worksheet time: 8mins
Which value is a String?
64
"cat"
True
0.5
Which of the following is not a correct variable type?
float
real
int
char
Which one of the following is not a valid identifier (variable name)?
_examveda
1examveda
exam_veda
examveda1
Identify the data type of true
int
boolean
String
double
Which of the following code is a Python Comment?
#this is a comment
{ this is a comment }
" this is a comment "
( this is a comment )
The statement input allows us to:
input values to the code
Read what the user typed
order the imported statements
show there name
What would print 10 + 16 x 2 produce?
62
72
52
42
name=input("What is your name? ")
print("Your name is " + name)
What will be displayed if the user types in "Bob"?
Your name is name
name
Bob
Your name is Bob
Which of the following would be an example of a float variable:
ValidInput = False
GuessCount = 100
Name = "Bilbo"
Pi = 3.14159265359
Python is the fastest growing programming language:
True
False
What would be the result of 3 ** 3
(a)
What would be the result of 9 // 7
(a)
What would be the reult of 9 % 7
(a)
