Font size
WorksheetsProgramming basics
Total questions: 11
Worksheet time: 6mins
Click the items that would be best represented using an integer data type
Your friend's name
Your dog's age
Your height
Your door number
Which is the most appropriate data type for the name of a fruit?
String
Integer
Boolean
Float
Which is the most appropriate data type for the quantity of books in a library?
String
Integer
Boolean
Float
Which is the most appropriate data type for the weight of a baby?
String
Integer
Boolean
Float
Which is the most appropriate data type for your mobile number?
String
Integer
Boolean
Float
If you want to create a variable to record if the fridge door is open or not, what type would you use?
String
Boolean
Integer
What does this code do STRING_TO_INT ("123")?
It converts the integer to a string
It converts the string to an integer
What does this code do CHAR_TO_CODE ("R")?
It gives the number for the letter 'R'
It print 'R' on the screen
What is the answer to the code 20 MOD 5?
0
5
2
What is the symbol for MOD in Python?
%
//
/
**
What is the symbol for exponentiation in Python?
%
//
/
**
