Cambridge Past Paper Questions
Browse 23,045questions from 25 years of O-Level & A-Level exams. Click any question to practice.
A coffee shop runs a computerised loyalty card system. Customers are issued with a loyalty card with their name together with a unique customer ID....
A program is being developed to implement a game for up to six players. During the game, each player assembles a team of characters. At the start o...
An algorithm will: 1. prompt and input a sequence of 100 integer values, one at a time 2. sum the positive integers 3. output the result of the sum.
The implementation of a linked list uses an integer variable and a 1D array List of type Node. Record type Node is declared in pseudocode as follo...
An examination paper has a maximum of 75 marks. One of five pass grades (A to E) is assigned, depending on the mark obtained. The lowest mark for a...
In some countries, on the third Sunday in March, daylight saving time begins when clocks move forward by one hour. A module AdjustClock() will tak...
A coffee shop owner wants to introduce a computerised loyalty card system. A programmer discusses the details of the system with the shop owner.
A program is being developed to implement a game for up to six players. During the game, each player assembles a team of characters. At the start ...
Reduced Instruction Set Computers (RISC) is a type of processor. Identify four features of a RISC processor.
The TCP/IP protocol may be viewed as a stack that contains four layers: Application, Transport, Internet, Link. Describe how the layers of the TCP/...
The truth table for a logic circuit is shown. [Figure X.X - truth table]
A veterinary surgery wants to create a class for individual pets. Some of the attributes required in the class are listed in the table. [Figure X.X...
Several syntax diagrams are shown. [Figure X.X - several syntax diagrams]
The following diagram shows an ordered binary tree. [Figure X.X - binary tree diagram]
The truth table for a logic circuit is shown.
Complex Instruction Set Computer (CISC) is a type of processor.
Objects and classes form the basic structure of Object-Oriented Programming (OOP).
This binary tree shows an ordered list of integers. [Figure 11.1]
The truth table for a logic circuit is shown. INPUT OUTPUT A B C D T 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 ...
The following diagram shows an ordered binary tree. Blue Green Indigo Red Orange Violet Yellow
A program sorts string data using different sorting methods. One source file is used to answer Question 1. The file is called Data.txt
A computer program is designed to simulate horses doing show jumping. In show jumping, horses jump over obstacles called fences. A horse successful...
A linked list stores positive integer data in a 2D array. The first dimension of the array stores the integer data. The second dimension of the arr...
A computer game is designed for users to select characters. Each character can take part in a group of events. Each group has five events. There ar...
A linear queue data structure is designed using a record structure. The record structure Queue has the following fields: • QueueArray, a 1D array o...
The text file HighScoreTable.txt stores the top seven player scores for a game. The data in the file is stored in the order: Player ID Game level S...
A program sorts string data using different sorting methods. One source file is used to answer Question 1. The file is called Data.txt
Draw one line from each verification method to indicate whether it is used during data transfer or data entry. Verification Method Parity byte che...
A relational database, SHIPPING, stores data about the ships in a company and the containers that are carried on the ships. The database has the f...
A local area network (LAN) has five computers, one switch and one server.
A restaurant accesses software and stores data using cloud computing.
A programmer is developing a computer program.
An automated system opens doors when a person is detected within 2 metres. The system closes the doors when there is no longer a person within 2 me...
Data is a global 1D array containing 30 elements of type STRING An algorithm will output: all non-blank elements (elements that do not contain an e...
A program is needed to manage individual rentals in a car-hire business. The data items for each rental will be held in a record structure of type ...
A program contains a global 1D array Number consisting of 20 elements of type REAL A procedure Store () will input a sequence of up to 20 real valu...