School / Cambridge IGCSE / 0478 / Algorithms, programming and logic Practice set under review
Algorithms, programming and logic Pseudocode, validation and testing for Paper 2.
Tutor support for this exact topic
Need help with IGCSE Computer Science 0478 Algorithms, programming and logic? Send the topic, deadline, homework brief, or exam date. SubjectScout will scout a tutor who fits this syllabus area.
Computer Science Algorithms, programming and logic
Content review 100% 24/24 activities
Practice diagnosis Start with a short attempt, then self-mark Open one question, write your working, then reveal the marking points. A clearer recommendation appears after you self-mark a few questions.
0% completion 0% accuracy 0% mastery
View All Incomplete Complete One at a time
Revision Ladder All stages Easy Medium HardSoon
1 Write pseudocode that repeatedly inputs a test score until the value is between 0 and 100 inclusive, then outputs ‘valid’. Use a post-test or pre-test loop. ✓ Reviewed Paper 2 style Medium 4 marks No calculator + 2 A program calculates delivery charges from parcel weight. Design four test cases covering normal, boundary, invalid and extreme data. State the input and purpose of each case. ✓ Reviewed Paper 2 style Medium 4 marks No calculator + 3 Write pseudocode to find and output the largest value in an array of 10 integers called Scores. ✓ Reviewed Paper 2 style Medium 4 marks No calculator + 4 The list [5, 2, 8, 1] is sorted into ascending order using a bubble sort. State the list after the first full pass. ✓ Reviewed Paper 2 style Easy 3 marks No calculator + 5 A list of 1,000 names is already sorted alphabetically. Which search algorithm will generally find a specific name fastest? A Linear search B Binary search C Bubble sort D Insertion sort ✓ Reviewed Paper 2 style Easy 1 marks No calculator + 6 Write pseudocode using nested IF statements that outputs a grade for a given Score: 'A' if the score is 90 or above, 'B' if it is 75 or above but below 90, and 'C' otherwise. ✓ Reviewed Paper 2 style Easy 3 marks No calculator + 7 Explain one advantage of using a function (subroutine) rather than repeating the same code several times in a program. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 8 A form asks a user to enter their age as a whole number between 1 and 120. Identify two different validation checks that could be applied, and explain what each one checks for. ✓ Reviewed Paper 2 style Medium 4 marks No calculator + 9 A loop runs the pseudocode 'Count ← Count + 1' three times, starting with Count = 0. Complete a trace table showing the value of Count after each of the three iterations. ✓ Reviewed Paper 2 style Easy 3 marks No calculator + 10 Write pseudocode to calculate and output the average of 5 numbers stored in an array called Marks. ✓ Reviewed Paper 2 style Medium 4 marks No calculator + 11 Explain the difference between a variable and a constant in a program. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 12 Explain why a 2D array would be a suitable data structure to store the seating plan of a cinema with rows and columns of seats. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 13 Explain what the string length function would return when applied to the text 'Cambridge', and give one reason a programmer might need this value. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 14 Distinguish between a count-controlled loop and a condition-controlled loop, using an example of when each would be appropriate. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 15 The list [8, 3, 6, 1] is sorted into ascending order using an insertion sort. State the list after the algorithm has correctly inserted the second element (3) into its sorted position among the first two elements. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 16 Write pseudocode for a linear search that looks for a Target value in an array called Items, and outputs whether the value was found. ✓ Reviewed Paper 2 style Medium 4 marks No calculator + 17 Explain what a decision (diamond-shaped) symbol represents in a flowchart. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 18 Write pseudocode to count how many values in an array called Scores are greater than 50. ✓ Reviewed Paper 2 style Medium 4 marks No calculator + 19 Explain one advantage of writing a procedure that accepts parameters, rather than one that always works on fixed, built-in values. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 20 A form requires a user to enter their name. Explain what a presence check would do, and why it is needed for this field. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 21 A system requires a new password to be at least 8 characters long. Explain what a length check would do when this password is entered. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 22 Explain, in simple terms, what it means for a function to be recursive, using a function that calculates factorials as an example. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 23 Explain one feature of an Integrated Development Environment (IDE) that helps a programmer write code with fewer errors. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + 24 Explain the purpose of using meaningful variable names, such as 'studentAge' instead of 'x', when writing a program. ✓ Reviewed Paper 2 style Easy 2 marks No calculator + Self-assessed 0 / 0
Set total 64
This is a self-study tool, not official marking or a predicted Cambridge IGCSE grade.
Session report Priority: finish the attempt Complete more questions and self-mark them to get a sharper diagnosis.
Marked activities 0/24
Accuracy 0%
Mastery 0% Progress is saved on this device. Sign in to sync across devices. Reset progress
Before you practise
Questions learners ask about this practice Are these official Cambridge IGCSE questions? No. These are original SubjectScout practice questions for Algorithms, programming and logic. They are not official past-paper questions or endorsed material.
What does this Computer Science practice page include? It includes selected topic questions, marking points, and feedback prompts designed to help learners practise before requesting teacher support.
Can I request a teacher for this exact topic? Yes. Tell SubjectScout the subject, exact topic, level and deadline, and the team will try to match you with a suitable verified teacher.
More practice in this subject
Unofficial content under accuracy, provenance, and rights review. It is not presented as official Cambridge material.