Programming — IGCSE Computer Science (0478) questions by topic

Programming questions give candidates flawed pseudocode or flowcharts, such as a WHILE loop condition that never triggers, and ask them to identify errors, explain corrections, or convert a loop structure to count-controlled. Identify, complete, write, explain and describe are the command words, with explain wanting the fix described in words alongside, where needed, a short snippet of corrected code.

11 real questions from 2023 to 2025 papers make up this page, worth 8 to 12 marks. Because a single wrong Boolean operator or loop bound can break an entire algorithm, submitting your corrected pseudocode for instant marking is the fastest way to check whether a fix actually solves the stated problem rather than introducing a new one.

What examiners look for

May–June 2025, Paper 22

Question 7 · 10 marks

The flowchart shows an algorithm that is used to input 50 numbers. Each number is stored in the variable Value when it is input. Any number input that is less than or equal to −20…

Answer this question and get it marked →

May–June 2024, Paper 21

Question 4 · 10 marks

This pseudocode algorithm is intended to allow, at random, between 1 and 20 values to be entered and totalled. The total and average of the entered values are output at the end.…

Answer this question and get it marked →

May–June 2024, Paper 23

Question 4 · 12 marks

This pseudocode algorithm is intended to allow data for up to 50 people to be entered and stored in a 2D array. The data is their last name, first name and the city in which they…

Answer this question and get it marked →

October–November 2024, Paper 21

Question 6 · 9 marks

An incomplete algorithm has been written in pseudocode to count the number of zeros stored in an array and total the non-zero values. 01 DECLARE A[1:50] : INTEGER 02 DECLARE C :…

Answer this question and get it marked →
Question 9 · 8 marks

An algorithm has been written in pseudocode to check if a temperature is in a given range. The temperature values used in the algorithm are correct. 01 REPEAT 02 OUTPUT "Please…

Answer this question and get it marked →

October–November 2024, Paper 22

Question 4 · 8 marks

This pseudocode algorithm is intended to sort a pre-populated 1D array named ItemList into alphabetical order using a bubble sort. 01 DECLARE ItemList : ARRAY[1:100] OF STRING 02…

Answer this question and get it marked →

October–November 2024, Paper 23

Question 6 · 9 marks

An incomplete algorithm has been written in pseudocode to count the number of values stored in an array and to find their average. Values have been stored in the array starting at…

Answer this question and get it marked →

May–June 2023, Paper 21

Question 5 · 8 marks

An algorithm has been written in pseudocode to allow some numbers to be input. All the positive numbers that are input are totalled and this total is output at the end. An input…

Answer this question and get it marked →

May–June 2023, Paper 23

Question 6 · 9 marks

An algorithm has been written in pseudocode to allow 100 positive numbers to be input. The total and the average of the numbers are output. 01 Counter ← 100 02 Total ← 0 03 WHILE…

Answer this question and get it marked →

October–November 2023, Paper 22

Question 4 · 9 marks

An algorithm has been written in pseudocode to allow the names of 50 cities and their countries to be entered and stored in a 2D array. The contents of the array are then output.…

Answer this question and get it marked →

October–November 2023, Paper 23

Question 5 · 9 marks

An algorithm has been written in pseudocode to check if a new password is in a list of previously used passwords OldList[]. If the password is not found, the new password will be…

Answer this question and get it marked →

Other IGCSE Computer Science topics

← All IGCSE Computer Science (0478) past papers