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.

Host this setFree Play

The 20 questions

  1. Which data type stores the memory address of an object created at runtime?

    • Pointer
    • Record
    • Integer
    • Boolean
  2. 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
  3. 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
  4. Which data structure consists of a collection of fields with different data types?

    • String
    • Record
    • Pointer
    • Array
  5. Which data type is constructed by the programmer using existing built-in data types?

    • Primitive
    • User-defined
    • Built-in
    • Standard
  6. Which data type is used to store a single symbol such as the letter Q?

    • Character
    • Pointer/reference
    • Record
    • Date/time
  7. 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)
  8. A program stores a student's date of birth. Which built-in data type is most suitable?

    • Integer
    • Character
    • Date/time
    • Real/float
  9. How many distinct values can a variable of a Boolean data type hold?

    • Two
    • One
    • Unlimited
    • Eight
  10. 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
  11. Which of these is an integer literal?

    • "42"
    • 42.0
    • 42
    • TRUE
  12. Which data type stores the memory address of a dynamically allocated node?

    • Integer
    • Character
    • Record
    • Pointer
  13. 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
  14. 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
  15. 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
  16. Which data type is required to represent numbers that contain a fractional part?

    • Character
    • Integer
    • Real
    • Boolean
  17. 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
  18. Which data type allows related fields of different types to be grouped under one name?

    • Record
    • Boolean
    • Pointer
    • Array
  19. Which data type ensures dates are compared chronologically rather than as text strings?

    • Real
    • String
    • Date/time
    • Integer
  20. 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

All AQA Computer Science quizzes