WorksheetsVariables and Data Types
Total questions: 10
Worksheet time: 5mins
1. What are variables?
containers for storing data
things that can never change
a piece of characters
2. IDLE means?
International Daily Learning Environment
Integrated Development and Learning Environment
Instant Development and Learning Entry
3. The data type for strings is denoted as _______
int()
str()
float()
4. The data type for whole numbers is denoted as _______
int()
str()
float()
5. Whole numbers are also known as __________.
integers
strings
float
6. The data type for fractional numbers or decimals is denoted as ______________.
int()
str()
float()
7. Which is the correct command for assigning values to a variable?
variable = "your name"
variable * 22
variable is equal to "this"
8. Which of the following is a variable with a float data type?
variable = 22.47
variable = float_type
variable = 12
9. How do you perform an addition in python?
2 plus 2
2 * 2
2 + 2
10. Which of these divisions will print only the remainder in python?
8 % 3
8 / 3
8 divided by 3
