WorksheetsJ277 - 2.2 - Understanding Data Types in Programming
Total questions: 10
Worksheet time: 5mins
What is a data type?
A type of computer hardware
A formal classification of the type of data being stored or manipulated within a program
A programming language
A type of software application
Which of the following is an example of an integer?
3.14
-5
True
Hello
What is the main characteristic of a real (float) data type?
It can only store whole numbers
It can store numbers with decimal places
It can only store text
It can only store True or False values
Which of the following is a Boolean value?
123
False
£
12.5
What does the char data type represent?
A collection of characters
A single character
A whole number
A decimal number
Which of the following is an example of a string?
42
3.14
Hello, World!
True
What does a null value represent?
A large number
A small number
The lack of any value
A collection of numbers
Which of the following operations can be performed on integer data types?
Concatenation
Division
Logical AND
Formatting
Which data type would be most appropriate for storing the value "£"?
Integer
Real
Char
Boolean
If you want to store the text "ninety-four", which data type should you use?
Integer
Real
String
Boolean
