Cambridge IGCSE · 0478 · Paper 2 · Algorithms, programming & logic
Computer Science 0478/21 May/June 2026 past paper
Cambridge IGCSE Computer Science (0478) Paper 2 (Algorithms, programming & logic), variant 1, May/June 2026: the question paper and its official mark scheme, 12 questions worth 125 marks. Free to open, no account needed.
- Questions
- 12
- Marks
- 125
File names: 0478_s26_qp_21 · 0478_s26_ms_21
Topics in this paper
Which syllabus chapters 0478/21 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 | 68 |
| Programming | 5 | 28 |
| Scenario Question | 1 | 15 |
| Boolean Logic | 1 | 7 |
| Databases | 1 | 7 |
Questions in 0478/21 May/June 2026
- Question 1
Tick (3) one box to identify the type of validation check to test whether a number entered into a computer system is between two set values. A length check B presence check C type check D range check
- Question 2
Identify four operators that are not arithmetic operators from the list. …
- Question 3
Complete the table by writing the most appropriate data type for each variable described. variable description example data data type Age the age of the student 16 TelephoneNumber the telephone number of the student +44 7846398573 Teenager whether the student …
- Question 4
The following pseudocode algorithm uses a bubble sort to sort the array Names Complete the algorithm. Last REPEAT Swap FOR 1 TO Last ‑ 1 IF Names[Index] > Names[Index + 1] THEN Temp Names[Index] Names[Index] Names[Index + 1] Names[Index + …
- Question 5
A computer system automatically creates usernames for new users. A new user enters their first name and their last name. The system: • takes the first letter of the first name • takes the first two letters of the last …
- Question 6
Give programming examples for a count‑controlled loop and a post‑condition loop. Describe each of the loops. count‑controlled loop example description post‑condition loop example description
- Question 7
An algorithm has been written in pseudocode for a user to repeatedly input positive whole numbers and store them in an array called Values[] until –1 is input or until the array is full. The algorithm outputs the average of …
- Question 8
- Question 9
A swimming club wants to set up a new database table to store details of the members of the club and the maximum distance each member swam in metres. The table is called SWIMMERS and will contain these fields: • …
- Question 10
(a) Draw a flowchart to input six whole numbers and output the highest. You do not need to validate the inputs. START (b) Describe how the flowchart could be changed to only accept positive whole numbers.
- Question 11
The function Power(FirstNumber, SecondNumber) returns the value of FirstNumber raised to the power of SecondNumber. FirstNumber and SecondNumber are integers. Write pseudocode statements to: • define the function • call the function with the variables A and B and store …
- Question 12
A weather monitoring station records the number of minutes of sunshine for each day of a month. The one‑dimensional (1D) array Sunshine[] is used to store the number of minutes of sunshine for each day. The index of the array …
Other Computer Science papers from May/June 2026
- 0478/11 Computer systems
- 0478/12 Computer systems
- 0478/13 Computer systems
- 0478/22 Algorithms, programming & logic
- 0478/23 Algorithms, programming & logic