Cambridge Past Paper Questions
Browse 23,045questions from 25 years of O-Level & A-Level exams. Click any question to practice.
An assessment board wants to store the marks students achieved in exams in a database named RECORDS. Part of the database design includes these two...
The following table shows part of the instruction set for a processor. The processor has two registers: the Accumulator (ACC) and an Index Register...
A computer has an Operating System (OS). Memory management and process management are two OS tasks.
A computer stores binary data.
A programmer uses an Integrated Development Environment (IDE) to write a computer program. The IDE has both a compiler and an interpreter as built-...
An algorithm is developed in pseudocode before being coded in a programming language.
An algorithm has three steps. It will: 1. repeatedly input a pair of numeric values A and B 2. count the number of pairs that are input until A has...
The diagram shows an Abstract Data Type (ADT) representation of a linked list after data items have been added. • PS is the start pointer. • PF is ...
A global 1D array Data contains 100 elements of type integer. A function Check() will: • total the element values in odd index locations (1, 3, 5 ....
A global 1D array of strings contains three elements which are assigned values as shown: Data[1] ← "aaaaaa" Data[2] ← "bbbbbb" Data[3] ← "cccccc" P...
Three points on a grid form a triangle with sides of length A, B and C as shown in the example: y 10 9 8 7 6 5 C B 4 3 2 A 1 X 0 1 2 3 4 5 6 7 8 9 ...
A fitness club has a computerised membership system. The fitness club offers a number of different exercise classes. The following information is s...
A teacher is designing a program to process pseudocode projects written by her students. Each student project is stored in a text file. The process...
A program is being developed.
A factory needs a program to help manage its production of items. Data will be stored about each item. The data for each item will be held in a rec...
A triangle has sides of length A, B and C. [Figure of a triangle with sides A, B, C] In this example, A is the length of the longest side. This tri...
A program is being designed in pseudocode. The program contains a global 1D array Data of type string containing 200 elements. The first element ha...
A music player stores music in a digital form and has a display which shows the track being played. (a) Up to 16 characters can be displayed. Track...
A fitness club has a computerised membership system. The system stores information for each club member: name, home address, email address, mobile ...
Refer to the insert for the list of pseudocode functions and operators. A program uses many complex algorithms. One algorithm is repeated in seve...
A program uses a global 1D array of type string and a text file. An algorithm that forms part of the program is expressed as follows: • copy the fi...
A record structure is declared to hold data relating to components being produced in a factory: TYPE Component DECLARE Item ID : STRING DECLARE Rej...
A procedure TwoParts() will input a sequence of real values, one at a time. The procedure will: • process the sequence in two parts • form a first ...
A program is being designed in pseudocode. The program contains the following declaration: DECLARE Data : ARRAY[1:1000] OF STRING A procedure Array...
A program displays a progress bar to inform the user of the progress of tasks that take a significant time to complete, such as those involving fil...
Seven program modules form part of a program. A description of the relationship between the modules is summarised below. Any return values are stat...
A teacher is designing a program to process pseudocode projects written by her students. The program analyses a student project and extracts inform...
The TCP/IP protocol suite has four layers: Transport, Application, Link, Internet
The diagram shows a logic circuit. [Figure 6.1]
A declarative programming language is used to represent the features that are available and the features that are unavailable on different body sty...
Explain what is meant by Deep Learning in relation to Artificial Intelligence (AI).
Sheila has a customer called Fred. Fred wants to send Sheila a confidential document as part of a transaction. Explain how Fred uses asymmetric enc...
A declarative programming language is used to allow clients to choose daily activities at the beach. 01 activity(paddleboarding). 02 activity(saili...
Explain what is meant by Reinforcement Learning in relation to Artificial Intelligence.
A program needs to take integer numbers as input, sort the numbers and then search for a specific number.
A computer program will store data about trees. The user can enter their requirements for a tree and a suitable tree will be selected. The program ...
A program reads data from the user and stores the data that is valid in a linear queue. The queue is stored as a global 1D array, QueueData, of str...
A program is being developed to help the manager of a shop control the stock.