Cambridge & Pearson Edexcel Past Paper Questions
Browse 35,704 questions from Cambridge O-Level & A-Level and Pearson Edexcel IGCSE & IAL exams. Click any question to practice.
Study the structure chart: [Figure showing a structure chart with Main, Sub_A, Sub_B modules, and parameters M, P, R, Q, V, X, W, T, U. Sub_A calls...
A program is being developed to implement a customer loyalty scheme for a coffee shop. The programmer has decided that the following data items nee...
A programmer is writing a program to manage bookings for a small taxi company. The programmer requires some user-defined data types.
Numbers are stored in a computer using binary floating-point representation with: • 10 bits for the mantissa • 6 bits for the exponent • two's comp...
The Application Layer and Transport Layer are two layers of the TCP/IP protocol suite. Describe the purpose of the Application Layer and the purpos...
A linked list of nodes is used to store an ordered list of integers. Each node consists of the data, a left pointer and a right pointer, for exampl...
This truth table represents a logic circuit. INPUT OUTPUT A B C D Z 0 0 0 0 1 0 0 0 1 0 0 0 1 0 ...
Describe the process of executing a program using an interpreter.
Several syntax diagrams are shown. [Figure showing syntax diagrams for uppercase, lowercase, symbol, digit, passcode]
Describe what is meant by multi-tasking and how it benefits process management.
Secure Socket Layer (SSL) and Transport Layer Security (TLS) are two protocols.
Describe the purpose of a graph when used in an Artificial Intelligence (AI) system.
A medical centre uses objects of the class Appointment to record treatments given and medication prescribed during each doctor's appointment. Some ...
The pseudocode algorithm checks whether a location in a stock file StockList.dat is empty or not. The location is given by the user. If the locatio...
Data types can be defined using pseudocode. The composite record data type, Departure, is used to represent flights from Cambridge Airport and is ...
Numbers are stored in a computer using binary floating-point representation with: • 12 bits for the mantissa • 4 bits for the exponent • two's comp...
Identify two different layers of the TCP/IP protocol suite.
Circuit switching may be used as a method of data transmission. State two benefits and two drawbacks of circuit switching. Benefit 1 Benefit 2 Draw...
The management and scheduling of processes are tasks carried out by an operating system.
Describe the structure of a graph as used in an Artificial Intelligence (AI) system.
Explain what is meant by lexical analysis during program compilation.
Several syntax diagrams are shown. [Figure X.X]
Identify the two main protocols that form Transport Layer Security (TLS) and state the purpose of each. Protocol 1 Purpose Protocol 2 Purpose
A linked list of nodes is used to store an ordered list of strings. Each node consists of the data, a left pointer and a right pointer. Left pointe...
(a) A medical clinic uses objects of the class Patient to assign a priority and a doctor to a patient. Some of the attributes required in the class...
The pseudocode algorithm below uses random file access to copy 50 records from a live file CurrentResults.dat to a stored file StoredResults.dat on...
A programmer is writing a program to manage a video library. They require a user-defined data type.
Numbers are stored in a computer using binary floating-point representation with: • 8 bits for the mantissa • 8 bits for the exponent • two's compl...
This truth table represents a logic circuit.
The Internet layer and Link layer are two layers of the TCP/IP protocol suite.
Complete the table by filling in the missing object-oriented programming (OOP) terms and descriptions.
Explain the process of syntax analysis during program compilation.
Several syntax diagrams are shown. [Figure depicting 'upper', 'digit', and 'passcode' syntax diagrams]
State the purpose of the A* and Dijkstra's algorithms.
The pseudocode algorithm below allows a user to input a new stock item. The random file is searched for the next empty location in the file and the...
An array is an Abstract Data Type (ADT).
The recursive procedure Delete() is defined as follows: PROCEDURE Delete(Index, Target) IF Numbers (Index) > 0 THEN IF Numbers[Index] >= Tar...
A program stores positive integers in a circular queue. The queue is stored as a global 1D array of 20 integers with the identifier Queue. Each ind...
A program reads data from a text file, splits the data depending on its content and stores the separated data into different files. The text file T...
A program stores data in a binary tree that is designed using Object-Oriented Programming (OOP). The tree stores data in ascending numerical order,...
A program reads data from a text file and stores it in a stack. The stack Stack is stored as a 1D array of up to 20 elements. The pointer TopOfStac...
A program stores data in a 1D array of records, HashTable. The array has space for 200 records. Each data item is stored in a specific index of the...
A program stores data about animals using Object-Oriented Programming (OOP). The class Animal stores the data about animals. Animal Name : String S...
A program reads data from a text file and stores it in a queue. The linear queue Queue is stored as a 1D array of up to 50 elements. The queue has ...
A program sorts the data in the 1D array DataArray and searches DataArray for specific values. DataArray stores 14 integer values and is declared l...
A program stores data in a linked list that is designed using Object-Oriented Programming (OOP). The class Node stores data about the nodes. Node T...
When designing computer systems, it is important to consider the security, integrity and privacy of the data. Draw one line from each measure to i...
Complete the truth table for each of the following two logic gates. [Figure showing a NOR gate and a NAND gate with empty truth tables]
Andy likes to play computer games.
A register stores the following binary number: 1 1 0 0 1 1 0 1