NEW
Font size
WorksheetsVariables and Data types
Total questions: 15
Worksheet time: 15mins
What is a variable?
A constant value
A container for storing data
A mathematical operation
A programming language
Which of the following is NOT a data type?
Integer
String
Boolean
Loop
What is the data type of the variable "age" if it stores a person's age?
Integer
String
Boolean
Float
Which data type is used to store true or false values?
Integer
String
Boolean
Float
What is the data type of the variable "name" if it stores a person's name?
Integer
String
Boolean
Float
Which data type is used to store decimal numbers?
Integer
String
Boolean
Float
What is the data type of the variable "isRaining" if it stores whether it is currently raining or not?
Integer
String
Boolean
Float
What is the data type of the variable "temperature" if it stores the current temperature in degrees Celsius?
Integer
String
Boolean
Float
Which data type is used to store whole numbers?
Integer
String
Boolean
Float
What is the data type of the variable "isStudent" if it stores whether a person is a student or not?
Integer
String
Boolean
Float
What is the data type of the variable "weight" if it stores a person's weight in kilograms?
Integer
String
Boolean
Float
What is the data type of the variable "isSunny" if it stores whether it is currently sunny or not?
Integer
String
Boolean
Float
Which data type is used to store a true or false value in more memory-effecient way?
Integer
String
Boolean
Float
What is the data type of the variable "grade" if it stores a student's letter grade?
Integer
String
Boolean
Float
What is the data type of the variable "price" if it stores the cost of an item in dollars?
Integer
String
Boolean
Float
