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.
A message is to be sent securely. Software uses a key to encrypt the message before it is sent.
The table shows assembly language instructions for a processor that has one general purpose register, the Accumulator (ACC). Instruction Table: Lab...
Data types can be defined using pseudocode. The data type, BuildingRecord, is defined in pseudocode as: TYPE BuildingRecord DECLARE BuildingID : IN...
A declarative language is used to represent the following facts about a school. 01 teaches(alan, mathematics). 02 teaches(ioana, geography). 03 tea...
The TCP/IP protocol suite has four layers. The application layer provides user services.
The following syntax diagrams show the syntax of: • a variable • an unsigned integer • a letter a digit • an operator • an assignment statement. [F...
There are four basic categories of computer architecture. Single Instruction Single Data (SISD) is one architecture. Identify the three other categ...
A logic circuit has two inputs A and B, and two outputs E and F. [Figure X.X showing a logic circuit with inputs A, B and outputs E, F]
A digital signature is used to validate the authenticity of an electronic message. In order to produce a digital signature, a digital certificate i...
A binary search or a linear search can be used to look for a specific value in an array.
State the reasons for including exception handling routines when writing a program. Include an example of an exception in your answer.
Data can be sent over networks using either circuit switching or packet switching. Describe both methods of data transmission. Include a different ...
A virtual machine is used to emulate a new computer system. Describe two benefits and one limitation of using a virtual machine for this purpose. B...
The text file HighScore.txt stores the players who have scored the top ten scores in a game, in descending order of score. The file stores the 3-ch...
A computer game is being developed using object-oriented programming. One element of the game is a balloon. This is designed as the class Balloon. ...
A program uses a circular queue to store strings. The queue is created as a 1D array, QueueArray, with 10 string items. The following data is store...
A program needs to use a stack data structure. The stack can store up to 10 integer elements. A 1D array StackData is used to store the stack globa...
A 2D array stores data entered by a user.
A programmer is designing a computer game that uses a set of cards. Each card has a number and a colour. The cards are saved in the text file CardV...
A company has a LAN (local area network).
A horse riding school uses a database, Lessons, to store data about lesson bookings. This database is created and managed using a Database Manageme...
A program is written in assembly language.
Data in a computer is stored in binary form.
A student has purchased a new laptop.
Draw the logic circuit for this logic expression: Z = (R XOR S) AND (NOT T NOR P)
A software developer is working in a team writing a program for a client.
Refer to the insert for the list of pseudocode functions and operators. A programmer has written a program which includes the function Calculate()....
A program contains an algorithm to output a string of a specified length containing identical characters.
Customers collect points every time they make a purchase at a store. A program is used to manage the points system and the table lists some of the ...
Function Replace() will: 1. take three parameters: • a string (the original string) • a char (the original character) • a char (the new character) ...
Several companies are developing websites to market a new type of games console. The company that is first to create a website that can demonstrate...
A video-conferencing program supports up to six users. Speech from each user is sampled and digitised (converted from analogue to digital). Digitis...
A school has a computerised library system that allows students to borrow books for a fixed length of time. The system uses text files to store det...
A computer shop assembles computers using items bought from several suppliers. A text file Stock.txt contains information about each item. Informa...
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 t...
A program stores a user's date of birth using a variable MyDOB of type DATE.
A program stores data in a text file. When data is read from the file, it is placed in a queue. (a) The diagram below represents an Abstract Data ...
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. ...
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...
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 ...
A computer system for a shop stores information about each customer. The items of information include name and address (both postal and email) toge...
Refer to the insert for the list of pseudocode functions and operators. The following pseudocode represents part of the algorithm for a program. Li...
A program stores a date of birth for a student using a variable, MyDOB, of type DATE.
A program processes data using a stack. The data is copied to a text file before the program ends. (a) The following diagram shows the current stat...
A function MakeString() will: 1. take two parameters: • a count as an integer • a character 2. generate a string of length equal to the cou...
A program is designed, coded and compiled without errors. The compiled code is sent for testing.
A procedure Select () will: 1. take two integer values as parameters representing start and end values where both values are greater than 9 and the...
A school has a library system which allows students to borrow books for a length of time. Information relating to students and books is stored in t...
A computer shop assembles desktop computers, using items bought from several suppliers. A text file Stock.txt contains information about each item....
Numbers are stored in two different computer systems by using floating-point representation. System 1 uses: • 10 bits for the mantissa • 6 bits for...