Cambridge IGCSE ยท 0478 ยท Paper 2 ยท Algorithms, programming & logic
Computer Science 0478/22 May/June 2026 past paper
Cambridge IGCSE Computer Science (0478) Paper 2 (Algorithms, programming & logic), variant 2, May/June 2026: the question paper and its official mark scheme, 10 questions worth 75 marks. Free to open, no account needed.
- Questions
- 10
- Marks
- 75
File names: 0478_s26_qp_22 ยท 0478_s26_ms_22
Topics in this paper
Which syllabus chapters 0478/22 May/June 2026 tested, by marks. Each chapter links to every past-paper question on it.
| Chapter | Questions | Marks |
|---|---|---|
| Algorithm Design and Problem-Solving | 4 | 34 |
| Scenario Question | 1 | 15 |
| Databases | 1 | 10 |
| Boolean Logic | 1 | 9 |
| Programming | 3 | 7 |
Questions in 0478/22 May/June 2026
- Question 1
Tick (3) one box to complete the following sentence. Two types of pseudocode statements used for iteration are A CASE and IF B FOR NEXT and IF C FOR NEXT and WHILE DO ENDWHILE D REPEAT UNTIL and CASE
- Question 2
Tick (3) one box to identify a programming data type used to store a single letter, symbol or number input from the keyboard. A Boolean B char C integer D real
- Question 3
(a) Identify the type of validation check used in each description. (i) A check to make sure that data has been input and not left blank. (ii) A value placed at the end of a sequence of numbers in the โฆ
- Question 4
The program development life cycle is split into several stages. Outline what happens during the coding and testing stages of the program development life cycle. coding testing Turn over
- Question 5
The purpose of this pseudocode algorithm is to find the name of a customer using an account ID, which contains letters and numbers. The name of the customer and the account ID are stored in the prepopulated two-dimensional (2D) array โฆ
- Question 6
This flowchart represents an algorithm. Count INPUT Word START Yes No No No Yes Yes STOP 0 Count Count + 1 WordLength LENGTH (Word) NumLetter 1 NumLetter IS NumLetter = WordLength ? Is Choice โฆ
- Question 7
(a) State one reason to store data in a file. (b) A list of names of the members of a club are stored in a file called Names.txt Write the pseudocode statements to load a line of text from Names.txt โฆ
- Question 8
Consider the logic expression: Z = NOT (B OR NOT C) XOR (A NAND C) (a) Draw a logic circuit for this logic expression. Each logic gate must have a maximum of two inputs. Do not simplify the logic expression. โฆ
- Question 9
(a) A database table CAR_PARTS stores details of car parts that a business has in stock. Complete the table by giving the most appropriate data types for each field. Only the data types: text, character, Boolean, integer, real and date/time โฆ
- Question 10
A program is required to record and analyse the daily rainfall in millimetres for one year. Assume a year has 365 days. The one-dimensional (1D) array Rainfall[] is used to store the daily rainfall measurements. Write a program for the โฆ
Other Computer Science papers from May/June 2026
- 0478/11 Computer systems
- 0478/12 Computer systems
- 0478/13 Computer systems
- 0478/21 Algorithms, programming & logic
- 0478/23 Algorithms, programming & logic