Skip to content
AS & A Level Computer Science 9618 · Topic 10

Data Types and Structures: past paper questions

199 real questionsasked in 9 of the last 9 exam series2021–2025usually: Complete, Write, Describe, State, Convert

Real questions on data types and structures

The newest 20 of 199 written questions. Open one to see it on the real paper.

  1. 9618/11 · October/November 2025 · Q7d(i)[2]

    Calculate an estimate of the file size of the bitmap in kibibytes. Show your working. Working

    See it on the paper →
  2. 9618/11 · October/November 2025 · Q7d(ii)[2]

    Explain why the actual file size may be larger than the one calculated in (d)(i).

    See it on the paper →
  3. 9618/13 · October/November 2025 · Q7b[2]

    A video is made of many bitmap images called frames. 30 frames are recorded every second. Each frame is 4000 pixels wide by 3000 pixels high. The video records using 16‑bit colour depth. Show your working. Calculate an estimate for the file size for one second of the video in gigabytes.

    See it on the paper →
  4. 9618/21 · October/November 2025 · Q1a[4]

    The program contains these variables: Data type MyChar CHAR MyString STRING MyInt INTEGER MyDOB DATE Variable Complete the table by filling in the gaps using functions and/or operators from the insert. Each expression must be valid. Expression MyString MyChar MyString MyInt 'X' MyString ("ABCD", , ) ( (MyDOB)) ( (MyStr...

    See it on the paper →
  5. 9618/22 · October/November 2025 · Q1b[3]

    Complete the table by giving the appropriate data type. Variable Example data value Result 5.42 MonthLetter "JFMAMJJASOND" Birthday 15/11/2009 Data type

    See it on the paper →
  6. 9618/22 · October/November 2025 · Q1c[4]

    Evaluate each expression in the table by using the data values shown in (b). Write ‘ERROR’ if the expression contains an error. Expression Evaluates to INT(Result) + 1 > 6 NUM_TO_STR(LENGTH(MonthLetter)) MID(MonthLetter, MONTH(Birthday) — 2, 1) NUM_TO_STR(Result + "3.2")

    See it on the paper →
  7. 9618/22 · October/November 2025 · Q2[5]

    Data is a global 1D array containing 20 elements of type REAL An algorithm will: • • • input a sequence of real values, one at a time assign each value to consecutive array elements, starting from index 1 end when the value 99.9 is input, or all 20 elements have been assigned (the value 99.9 must not be stored in the a...

    See it on the paper →
  8. 9618/22 · October/November 2025 · Q8a[7]

    Write pseudocode for module CountLoans()

    See it on the paper →
  9. 9618/22 · October/November 2025 · Q8b[7]

    As a reminder, a global array Loan stores 7000 loan records with data items for each loan record: Data item Data type Comment StudentID STRING the unique ID of the student who has borrowed the book BookID STRING the unique ID of the book being borrowed OnLoan BOOLEAN TRUE if the book has not been returned A new module...

    See it on the paper →
  10. 9618/23 · October/November 2025 · Q1c[1]

    Variables in the program have example values: Variable Example value DoB 23/6/2011 Multiplier 2.5 AddressLine "35 Lincoln Avenue" Complete the table by evaluating each expression using the example values: Expression Evaluates to LENGTH(NUM_TO_STR(Multiplier)) MONTH(DoB) > 4 15 + STR_TO_NUM(MID(AddressLine , 2, 1))

    See it on the paper →
  11. 9618/23 · October/November 2025 · Q4[4]

    A program contains a global 1D array Data containing 20 elements of type INTEGER A global string NumString represents a sequence of three-digit numbers, separated by commas. For example: "101,456,219,754,328" The string contains at least four three-digit numbers. The total number of three-digit numbers in the string is...

    See it on the paper →
  12. 9618/23 · October/November 2025 · Q8a[8]

    Write efficient pseudocode for the module LoanStatus() Assume that each combination of StudentID and BookID can occur only once.

    See it on the paper →
  13. 9618/23 · October/November 2025 · Q8b[7]

    A second module is defined: Module LoansPerTutor() Description • called with a parameter of type STRING representing a tutor ID (as a reminder, the first three characters of a StudentID represent a tutor ID) • returns an integer value representing the number of books currently on loan to students who have the given tut...

    See it on the paper →
  14. 9618/31 · October/November 2025 · Q1a(i)[1]

    Write the pseudocode statement to set up a variable for one record of the composite data type, ClubMember.

    See it on the paper →
  15. 9618/31 · October/November 2025 · Q1a(ii)[2]

    Write the pseudocode statements to assign the following values to the variable set up in part (a)(i): • • 984632 to Code TRUE to FeesPaid

    See it on the paper →
  16. 9618/31 · October/November 2025 · Q1b(i)[2]

    Write the pseudocode statement for the type declaration of Activity to hold the names of the available activities: Badminton, Football, Golf, Snooker, Swimming, Tennis.

    See it on the paper →
  17. 9618/31 · October/November 2025 · Q8b[2]

    Write the Reverse Polish Notation (RPN) for the given infix expression: (2 – 6) * (13 + 7) / 5

    See it on the paper →
  18. 9618/32 · October/November 2025 · Q2a[3]

    Calculate the denary value of the given normalised binary floating-point number. Show your working. Mantissa 0 1 1 1 1 0 Exponent 0 1 0 1 0 0 1 0 1 1 Working

    See it on the paper →
  19. 9618/32 · October/November 2025 · Q2b[3]

    Calculate the normalised binary floating-point representation of +26.6875 in this system. Show your working. Mantissa Exponent Working

    See it on the paper →
  20. 9618/21 · May/June 2025 · Q1a[4]

    An identifier table has been used during the design stage. Complete the identifier table: Example value Explanation Variable name "Fruit" a category of stock that is sold in the shop 20/02/2025 when an item was sold 12.67 the cost of an item TRUE to indicate if an item is in stock Data type

    See it on the paper →

What examiners said

This question was generally not answered well. Imprecise statements such as ‘DRAM is cheaper’ or ‘DRAM can store more data’ are not enough for credit. DRAM has a lower cost per unit and a higher bit density is more precise.

— Examiner report, October/November 2023, 9618/11 Q7(c) (Cambridge)

This question was generally answered well. Some candidates need to understand that statements such as ‘a kibibyte is smaller than a megabyte’ are insufficient at this level. Care should be taken with the units. Some candidates wrote bits instead of bytes, and others omitted any units.

— Examiner report, October/November 2023, 9618/12 Q3(a) (Cambridge)

This question was generally answered well. Some candidates need to take care that when the question asks for 12-bit binary, any leading zeros or ones must be shown.

— Examiner report, October/November 2023, 9618/12 Q3(b)(i) (Cambridge)

Past papers, syllabus and examiner reports © UCLES (Cambridge University Press & Assessment). Questions are matched to topics from the official syllabus. AssessPro is independent and not endorsed by Cambridge.

Data Types and Structures — AS & A Level Computer Science 9618 past paper questions | AssessPro