WorksheetsPython - Data types
Total questions: 26
Worksheet time: 10mins
A variable is a named value that can be changed in the program.
False
True
What is a String?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Which value is a String?
64
"cat"
True
0.5
What is an Integer?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Which value is an Integer?
64
"cat"
True
0.5
What is a Float?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Which value is a Float?
64
"cat"
True
0.5
What is a Boolean?
A data type that contains whole numbers. eg: 3, 45, 124
Numbers with decimal point. eg: 0.5, 2.45, 56.04
Group of characters between quotation marks. eg: "dog"
Data type that can only be True or False.
Which value is a Boolean?
64
"cat"
True
0.5
Which writes a message for the user?
input()
myVar="Hi"
print("Hello!")
max=100
Which data type is used to store:
100
Integer
Character
Boolean
String
Which data type is used to store:
TRUE
Boolean
Real
String
Integer
Which data type is used to store:
"&"
Character
String
Integer
Real
Which of these variables would be an integer data type?
password
passwordLength
Which of these variables would use a string data type?
password
passwordSuccess (successful login)
passwordLength
What type of data would you store your age in numbers?
Real
Integer
String
Boolean
What data type would you store a vehicle's registration plate?
Real
String
Boolean
Integer
What type of data would you use to store the answer to 29 divided by 5?
String
Integer
Real
Character
What type of data would you use to store whether someone wanted to sign up for promotions or not?
String
Boolean
Real
Integer
What data type would you use to record someone's height so that it could be used in a calculation?
Text
String
Integer
Boolean
Based on the names of the variables, Which of these variables would use a boolean data type?
password
passwordSuccess (successful login)
passwordLength
The following code example would print the data type of x, what data type would that be?
(a)
the following code exaple would print the data type of x, what data type would that be?
(a)
The following code example would print the data type of x, what data type would that be?
(a)
The following code example would print the data type of x, what data type would that be?
(a)
