AS & A Level Computer Science (9618) — May–June 2023, Paper 22

8 questions · every question answerable online with instant point-by-point AI marking against the official mark scheme.

Start with Question 1 →
Question 1 · 10 marks · Software Development (representing constant values in a program)

A program calculates the postal cost based on the weight of the item and its destination. Calculations occur at various points in the program and these result in the choice of…

Answer this question and get it marked →
Question 2 · 9 marks · Programming (built-in date functions)

A program stores a user's date of birth using a variable MyDOB of type DATE. Write a pseudocode statement, using a function from the insert, to assign the value corresponding to…

Answer this question and get it marked →
Question 3 · 10 marks · Abstract Data Types (queues)

A program stores data in a text file. When data is read from the file, it is placed in a queue. The diagram below represents an Abstract Data Type (ADT) implementation of the…

Answer this question and get it marked →
Question 4 · 6 marks · Programming (string handling, user-defined functions)

A function GetNum() will: 1. take two parameters: a string and a character 2. count the number of times that the character occurs in the string 3. return the count. Any comparison…

Answer this question and get it marked →
Question 5 · 8 marks · Software Development (parameter passing by reference / by value)

A programmer has produced the following pseudocode to output the square root of the numbers from 1 to 10. Line numbers are for reference only. 10 DECLARE Num : REAL 11 Num ← 1.0…

Answer this question and get it marked →
Question 6 · 6 marks · Programming (iteration, string construction, procedures)

A procedure Square() will take an integer value in the range 1 to 9 as a parameter and output a number square. The boundary of a number square is made up of the character…

Answer this question and get it marked →
Question 7 · 9 marks · Program design (data requirements)

A computer system for a shop stores information about each customer. The items of information include name and address (both postal and email) together with payment details and…

Answer this question and get it marked →
Question 8 · 17 marks · File handling / modular programming (string validation)

A computer shop assembles computers using items bought from several suppliers. A text file Stock.txt contains information about each item. Information for each item is stored as a…

Answer this question and get it marked →

← May–June 2023 Paper 23 · May–June 2023 Paper 21 →

← All AS & A Level Computer Science (9618) past papers