Skip to main content

Cambridge Past Paper Questions

Browse 23,045questions from 25 years of O-Level & A-Level exams. Click any question to practice.

A-LevelComputer ScienceSoftware DevelopmentMay/June 2021

Jennifer is writing a computer program for her A Level homework.

A-LevelComputer ScienceComputer SecurityMay/June 2021

A company has several security measures in place to prevent unauthorised access to the data on its computers.

A-LevelComputer ScienceProgramming FundamentalsMay/June 2021

Refer to the insert for the list of pseudocode functions and operators. 1 (a) A program is being developed to help manage the membership of a footb...

A-LevelComputer ScienceProgram Design and StructureMay/June 2021

2 (a) Four program modules form part of a program for a library. A description of the relationship between the modules is summarised as follows: M...

A-LevelComputer ScienceFile Handling and Data StorageMay/June 2021

3 (a) A concert venue uses a program to calculate admission prices and store information about ticket sales. A number of arrays are used to store d...

A-LevelComputer ScienceAlgorithms and PseudocodeMay/June 2021

4 Study the following pseudocode. Line numbers are for reference only. 10 FUNCTION Convert(Name : STRING) RETURNS STRING 11 12 DECLARE Flag: BOOLE...

A-LevelComputer ScienceAlgorithms (Sorting and Searching)May/June 2021

5 A global 2D array Result of type INTEGER is used to store a list of exam candidate numbers together with their marks. The array contains 2000 ele...

A-LevelComputer ScienceAbstract Data Types (ADTs)May/June 2021

6 The following diagram represents an Abstract Data Type (ADT) for a linked list. [Figure showing linked list: Box -> A -> Box -> C -> Box -> D -> ...

A-LevelComputer ScienceString ManipulationMay/June 2021

7 A program is needed to take a string containing a full name and produce a new string of initials. Some words in the full name will be ignored. Fo...

A-LevelComputer ScienceProgramming FundamentalsMay/June 2021

Refer to the insert for the list of pseudocode functions and operators.

A-LevelComputer ScienceComputational Thinking and Problem SolvingMay/June 2021

(a) Examine the following state-transition diagram. [Figure 2.a]

A-LevelComputer ScienceData Structures and AlgorithmsMay/June 2021

The following diagram represents an Abstract Data Type (ADT). [Figure 3]

A-LevelComputer ScienceComputational Thinking and Problem SolvingMay/June 2021

A teacher uses a paper-based system to store marks for a class test. The teacher requires a program to assign grades based on these results. The pr...

A-LevelComputer ScienceProgramming FundamentalsMay/June 2021

A student is learning about arrays. She wants to write a program to: • declare a 1D array RNum of 100 elements of type INTEGER • assign each elemen...

A-LevelComputer ScienceSubroutinesMay/June 2021

A procedure CountVowels () will: • be called with a string containing alphanumeric characters as its parameter • count and output the number of occ...

A-LevelComputer ScienceTesting and DebuggingMay/June 2021

A procedure, FormatName(): • is called with a string containing words and spaces as its parameter. In this context, a word is any sequence of chara...

A-LevelComputer ScienceSubroutinesMay/June 2021

A program is needed to take a string containing a full name and to produce a new string of initials. Some words in the full name will be ignored. F...

A-LevelComputer ScienceProgramming FundamentalsMay/June 2021

Refer to the insert for the list of pseudocode functions and operators. A program is being developed to help manage the membership of a football club.

A-LevelComputer ScienceProgram Design and StructureMay/June 2021

Four program modules form part of a program for a library. A description of the relationship between the modules is summarised as follows: Module...

A-LevelComputer ScienceFile Handling and Data PersistenceMay/June 2021

A concert venue uses a program to calculate admission prices and store information about ticket sales. A number of arrays are used to store data. T...

A-LevelComputer ScienceAlgorithms and PseudocodeMay/June 2021

Study the following pseudocode. Line numbers are for reference only. 10 FUNCTION Convert(Name : STRING) RETURNS STRING 11 12 DECLARE Flag: BO...

A-LevelComputer ScienceSorting AlgorithmsMay/June 2021

A global 2D array Result of type INTEGER is used to store a list of exam candidate numbers together with their marks. The array contains 2000 eleme...

A-LevelComputer ScienceLinked ListsMay/June 2021

The following diagram represents an Abstract Data Type (ADT) for a linked list. [Diagram: A --> C --> D --> E --> Ø]. The free list is as follows: ...

A-LevelComputer ScienceString ManipulationMay/June 2021

A program is needed to take a string containing a full name and produce a new string of initials. Some words in the full name will be ignored. For ...

A-LevelComputer ScienceData RepresentationMay/June 2021

Real numbers are stored in a computer system using floating-point representation with: • 10 bits for the mantissa • 6 bits for the exponent • Two's...

A-LevelComputer ScienceProgramming ConceptsMay/June 2021

A-LevelComputer ScienceOperating SystemsMay/June 2021

A-LevelComputer ScienceAlgorithms and Data StructuresMay/June 2021

A-LevelComputer ScienceArtificial IntelligenceMay/June 2021

A-LevelComputer ScienceCommunication and Internet TechnologiesMay/June 2021

Give two benefits and two drawbacks of packet switching.

A-LevelComputer ScienceLogic Gates and Boolean AlgebraMay/June 2021

The diagram shows a logic circuit. [Figure X.X]

A-LevelComputer ScienceAlgorithmsMay/June 2021

The given algorithm is a simple bubble sort that arranges a set of scores stored in a one-dimensional array into descending order, and orders the c...

A-LevelComputer ScienceProgramming ParadigmsMay/June 2021

A-LevelComputer ScienceNetworkingMay/June 2021

Give two benefits and two drawbacks of packet switching. Benefit 1 Benefit 2 Drawback 1 Drawback 2

A-LevelComputer ScienceLogic Gates and CircuitsMay/June 2021

The diagram shows a logic circuit. [Figure 7.1]

A-LevelComputer ScienceAlgorithmsMay/June 2021

A-LevelComputer ScienceData StructuresMay/June 2021

An unordered linked list uses a 1D array to store the data. Each item in the linked list is of a record type, node, with a field data and a field n...

A-LevelComputer ScienceAlgorithmsMay/June 2021

A program stores the following ten integers in a 1D array with the identifier arrayData. 10 5 6 7 1 12 13 15 21 8

A-LevelComputer ScienceObject-Oriented Programming (OOP)May/June 2021

A computer game requires users to travel around a world to find and open treasure chests. Each treasure chest has a mathematics question inside. Th...

A-LevelComputer ScienceSystem Design and ModellingMay/June 2022

Examine the following state-transition diagram. [Figure 2.1]

A-LevelComputer ScienceProgram DesignMay/June 2022

The manager of a cinema wants a program to allow users to book seats. The cinema has several screens. Each screen shows a different film.

A-LevelComputer ScienceData StructuresMay/June 2022

A stack is created using a high-level language. Memory locations 200 to 207 are to be used to store the stack. The following diagram represents th...

A-LevelComputer ScienceAlgorithmsMay/June 2022

Each line of a text file contains data organised into fixed-length fields as shown: <Field 1><Field 2><Field 3> An algorithm is required to searc...

A-LevelComputer ScienceProgramming ConstructsMay/June 2022

A-LevelComputer ScienceProgramming ConceptsMay/June 2022

A string is a palindrome if it reads the same forwards as backwards. The following strings are examples of palindromes: "Racecar" "madam" "1234432...

A-LevelComputer ScienceProgramming ConceptsMay/June 2022

A program allows a user to save passwords used to login to websites. A stored password is inserted automatically when the user logs into the corres...

A-LevelComputer ScienceProgram Development and Software EngineeringMay/June 2022

Refer to the insert for the list of pseudocode functions and operators. A programmer is testing a program using an Integrated Development Environme...

A-LevelComputer ScienceAlgorithms and Data StructuresMay/June 2022

An algorithm is described as follows: 1. Input an integer value. 2. Jump to step 6 if the value is less than zero. 3. Call the function IsPrime() u...

A-LevelComputer ScienceProgram Development and Software EngineeringMay/June 2022

The module headers for five modules in a program are defined in pseudocode as follows: Pseudocode module header FUNCTION Mod_V (S2 : INTEGER) RETUR...

A-LevelComputer ScienceFile Handling and Data StructuresMay/June 2022

← PreviousPage 136 of 461Next →

© 2026 Oracle Prep — The AI-Powered Cambridge Exam Engine