For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAQA GCSEAQA GCSE Computer Science Paper 1 PythonQuestion 09.1
    Easy1 markMultiple Choice
    ProgrammingGeneraldata typesbooleanrecords

    AQA GCSE · Question 09.1 · Programming

    Figure 8 shows an algorithm that uses a RECORD data structure for storing information about a film.

    Figure 8
    RECORD Film
    title : String
    certificate : String
    year : Integer
    beingShown : Boolean
    ENDRECORD

    hulk ← Film('Hulk', '12A', 2005, False)
    ironMan ← Film('Iron Man', '12A', 2008, False)
    antMan ← Film('Ant-Man', '12A', 2015, False)
    filmCollection ← [antMan, hulk, ironMan]

    year ← 0
    position ← 0

    FOR i ← 0 TO L1
    IF filmCollection[i].year > year THEN
    year ← filmCollection[i].year
    position ← i
    ENDIF
    ENDFOR

    OUTPUT filmCollection[position].title, ' is the newest film'
    How many different values can the field beingShown have?

    Answer options:

    A.

    2

    B.

    3

    C.

    128

    D.

    256

    How to approach this question

    1. Look at the definition of the `RECORD Film` in Figure 8. 2. Identify the field `beingShown`. 3. Identify the data type of this field, which is `Boolean`. 4. Recall the definition of a Boolean data type. It is a data type that has one of two possible values, intended to represent the two truth values of logic. 5. The two values are typically `True` and `False`. 6. Therefore, the field can have 2 different values.

    Full Answer

    A.2✓ Correct
    The correct answer is A (2). The data type of the `beingShown` field is Boolean. A Boolean variable can only hold one of two possible values: True or False.
    The question asks for the number of different values the `beingShown` field can have. The record definition `RECORD Film` specifies the data type for each field. For `beingShown`, the data type is `Boolean`. A **Boolean** is a fundamental data type in computer science that can represent one of two values, usually denoted as `True` or `False`. It is used to represent logical states. Therefore, the `beingShown` field can only ever be `True` or `False`, meaning it can have 2 different possible values.

    Common mistakes

    ✗ Confusing the Boolean data type with other data types like Integer or String.\n✗ Guessing a number related to bits/bytes (like 128 or 256) without understanding the question.
    Question 08All questionsQuestion 09.2

    Practice the full AQA GCSE Computer Science Paper 1 Python

    31 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01.1Figure 1 shows an algorithm, represented using pseudo-code, which assigns a different value to fo...EasyQ01.2The variable `x` is assigned a value using the statement: `x ← LEN(state)` Using Figure 1, what ...EasyQ01.3What is the result of concatenating the contents of the variables `city` and `landmark` in Figure 1?EasyQ01.5The subroutine `POSITION` finds the first position of a character in a string. For example, `POSI...EasyQ02.1Figure 2 shows an algorithm that uses integer division which has been represented using pseudo-co...Easy
    View all 31 questions →