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 teacher is designing a program to perform simple syntax checks on programs written by students. Student programs are submitted as text files, whi...
Refer to the insert for the list of pseudocode functions and operators. 1 (a) A programmer is developing an algorithm to solve a problem. Part of t...
2 (a) An algorithm will process data from a test taken by a group of students. The algorithm will prompt and input the name and test mark for each ...
3 A stack is used in a program to store string data which needs to be accessed in several modules.
4 The program flowchart represents a simple algorithm.
5 Examine the following pseudocode. IF A = TRUE THEN IF B = TRUE THEN IF C = TRUE THEN CALL Sub1() ELSE CALL Sub2() ENDIF...
6 (a) The factorial of an integer number is the product of all the integers from that number down to 1. In general, the factorial of n is n × (n-1)...
7 A teacher is designing a program to perform simple syntax checks on programs written by students. Two global 1D arrays are used to store the synt...
A program is required for a shopping website.
A program is being designed for a smartphone to allow users to send money to the charity of their choice. Decomposition will be used to break the p...
An algorithm is needed to process a sequence of numbers. Numbers may be positive or negative and may be integer or decimal. The algorithm will: • p...
A program contains a 1D array DataItem with 100 elements. State the one additional piece of information required before the array can be declared.
A text string contains three data items concatenated as shown: <StockID><Description><Cost> Item lengths are: Item Length StockID 5 Description 32 ...
Components are weighed during manufacture. Weights are measured to the nearest whole gram. Components that weigh at least 3 grams more than the max...
A teacher is designing a program to perform simple syntax checks on programs written by students. Two global 1D arrays are used to store the syntax...
Real numbers are stored in a computer system using floating-point representation with: • 8 bits for the mantissa • 8 bits for the exponent • two's ...
Outline the functions of the Transport and Internet layers of the TCP/IP protocol suite.
State what is meant by the term enumerated data type.
Draw one line to connect each stage of compilation to its most appropriate description. Stage of compilation Description Lexical analysis minimis...
Write the infix expression in Reverse Polish Notation (RPN). a * b + b - d + 15
A message is encrypted using a private key and sent to an individual using asymmetric encryption.
Complete the Karnaugh map (K-map) for the Boolean expression. Z = Ā. B. C. D + Ā. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D + A. B. C. D AB 00...
Virtual memory, paging and segmentation are used in memory management.
Deep learning is used in Artificial Intelligence (AI).
Define these Object-Oriented Programming (OOP) terms: Instance Inheritance Polymorphism
The array Names [0:99] is in alphabetical order. Complete this pseudocode binary search algorithm. Lower ← 0 Mid ← 0 Exit ← FALSE OUTPUT "Enter the...
Normalised floating-point numbers are stored in a computer system using two's complement for both the mantissa and the exponent with: • 11 bits fo...
Lexical analysis and syntax analysis are stages in the compilation of a program.
Explain why a protocol is used in communication between computers.
A program to manage regular flight details at an airport requires some user-defined data types.
Describe what is meant by a virtual machine. Include in your answer two benefits and two drawbacks of using a virtual machine.
State two differences between symmetric and asymmetric encryption.
Supervised and unsupervised learning are two categories of machine learning. Describe supervised learning and unsupervised learning.
Draw a logic circuit for an SR flip-flop and label the inputs. [Figure X.X]
Explain the need for scheduling in process management.
Define Encapsulation:
A simplified linked list is used to store the names of flowers in alphabetical order. It is implemented using two 1D arrays: • Flower stores the n...
Outline the functions of the Transport and Internet layers of the TCP/IP protocol suite. Transport layer Internet layer
The array Names [0:99] is in alphabetical order.
The text file IntegerData.txt stores 100 integer numbers between 1 and 100 inclusive. A program is required to read in this data and perform search...
A computer program is being developed that uses a set of cards. The program is written using object-oriented programming. The program has two class...
A binary tree consists of nodes. Each node has 3 integer values: a left pointer, data and a right pointer. The binary tree is stored using a global...
A computer program is needed to store jobs in order of priority. Each job has a job number (for example, 123) and a priority from 1 to 10, with 1 b...
A computer game is being developed. The game has 10 different characters that are all active in the game. Part of the game is being written using o...
A program uses a linear queue to store up to 100 integers.
A factory makes chocolate bars. The factory uses a conveyor belt that moves the products from one stage of production to the next stage.
State what is meant by the following terms in a relational database model. Entity Primary key Referential integrity
State one difference between a kibibyte and a megabyte.
Write the Boolean expression that corresponds to the following logic circuit. [Figure X.X]
State the meaning of privacy of data.