Lesson 4.1.1.1
4.1.1.1 Data types Quiz: AQA Computer Science, Unit 1
20 questions
In partnership with Revision Ninja
Lesson 4.1.1.1, Data types: 20 multiple choice questions for the AQA Computer Science (7517), Unit 1: Fundamentals of programming, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
Which data type stores the memory address of an object created at runtime?
- Pointer
- Record
- Integer
- Boolean
-
Which built-in data type is most suitable for storing whether a customer has paid an invoice, using only the values TRUE or FALSE?
- Boolean
- String
- Real/float
- Integer
-
Which built-in data type is needed to store a value such as 3.75 that has a fractional part?
- Real/float
- Boolean
- Character
- Integer
-
Which data structure consists of a collection of fields with different data types?
- String
- Record
- Pointer
- Array
-
Which data type is constructed by the programmer using existing built-in data types?
- Primitive
- User-defined
- Built-in
- Standard
-
Which data type is used to store a single symbol such as the letter Q?
- Character
- Pointer/reference
- Record
- Date/time
-
Which data type holds an indexed collection of elements that all have the same data type?
- Pointer/reference
- Array (or equivalent)
- Date/time
- Record (or equivalent)
-
A program stores a student's date of birth. Which built-in data type is most suitable?
- Integer
- Character
- Date/time
- Real/float
-
How many distinct values can a variable of a Boolean data type hold?
- Two
- One
- Unlimited
- Eight
-
A programmer defines a type Point with two real fields x and y. What is Point classed as?
- A language-defined character type
- A pointer/reference type
- An integer type
- A user-defined data type
-
Which of these is an integer literal?
- "42"
- 42.0
- 42
- TRUE
-
Which data type stores the memory address of a dynamically allocated node?
- Integer
- Character
- Record
- Pointer
-
Which type is most suitable for storing a postcode such as AB1 2CD, which mixes letters and digits and is never used in arithmetic?
- Real/float
- Boolean
- String
- Integer
-
A price of 19.99 pounds must be used in multiplication with a quantity. Which data type should store it?
- Real/float
- Character
- Pointer/reference
- Boolean
-
An array of 10 records is stored, and each record has 3 fields that each hold one value. How many individual data items are stored in total?
- 30
- 10
- 13
- 3
-
Which data type is required to represent numbers that contain a fractional part?
- Character
- Integer
- Real
- Boolean
-
Variable p holds the address of an integer object whose value is 7. The program increments the value at that address by 1 through p. What is the stored value afterwards?
- 1000
- 7
- 6
- 8
-
Which data type allows related fields of different types to be grouped under one name?
- Record
- Boolean
- Pointer
- Array
-
Which data type ensures dates are compared chronologically rather than as text strings?
- Real
- String
- Date/time
- Integer
-
Which data type should store a customer's name, such as Sarah Jones, so that it can be joined with other text?
- Boolean
- Real/float
- Pointer/reference
- String
Related quizzes
- Programming concepts: sequence, selection and iteration Quiz · 4.1.1.2 · 20 questions
- Arithmetic operations Quiz · 4.1.1.3 · 20 questions
- Relational and Boolean operations Quiz · 4.1.1.4 · 20 questions
- Constants and variables Quiz · 4.1.1.6 · 20 questions
- String-handling operations Quiz · 4.1.1.7 · 20 questions
- Random numbers and exception handling Quiz · 4.1.1.8 · 20 questions
- Subroutines Quiz · 4.1.1.10 · 20 questions
- Parameters and returning values Quiz · 4.1.1.11 · 20 questions
- Local and global variables Quiz · 4.1.1.13 · 20 questions
- Stack frames in subroutine calls Quiz · 4.1.1.15 · 20 questions