2026

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.

ChapterQuestionsMarks
Algorithm Design and Problem-Solving468
Programming528
Scenario Question115
Boolean Logic17
Databases17

Questions in 0478/21 May/June 2026

  1. Question 1Algorithm Design and Problem-Solving · 1 mark

    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

  2. Question 2Programming · 4 marks

    Identify four operators that are not arithmetic operators from the list. …

  3. Question 3Programming · 3 marks

    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 …

  4. Question 4Algorithm Design and Problem-Solving · 54 marks

    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 + …

  5. Question 5Programming · 12 marks

    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 …

  6. Question 6Programming · 4 marks

    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

  7. Question 7Algorithm Design and Problem-Solving · 4 marks

    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 …

  8. Question 8Boolean Logic · 7 marks
  9. Question 9Databases · 7 marks

    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: • …

  10. Question 10Algorithm Design and Problem-Solving · 9 marks

    (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.

  11. Question 11Programming · 5 marks

    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 …

  12. Question 12Scenario Question · 15 marks

    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

Questions students ask

Where can I get the 0478/21 May/June 2026 mark scheme?
Open the mark scheme above - it is the official Cambridge scheme for this exact paper (0478_s26_ms_21), and on a wide screen it sits beside the question you are reading.
Which topics came up in 0478/21 May/June 2026?
Mostly Algorithm Design and Problem-Solving, Programming, Scenario Question. The full list is in the table above.
Do I need an account to open 0478/21 May/June 2026?
No. Every paper opens for free without signing in. A free account also saves your pen marks and records your score against the grade thresholds.