Skip to content
TMUATry on iPad
Get started

Style

Games

Plunge GCSE English LiteratureFirst Principles A-Level MathsSlow Burn Maths puzzles

Programming concepts: CAIE IGCSE Computer Science questions

CAIE IGCSE Computer Science past-paper questions on 8.1 Programming concepts, 2017 to 2025, every variant, with mark schemes and examiner’s reports where available.

Getting your paper ready…

CAIE IGCSE Computer ScienceProgramming concepts2,648 questions

Paper
All papers
Year
All years
Calculations
Difficulty
More filters
Exam boards
Cambridge IGCSE

Loading the full question list…

2,648 questions

More options
  1. Q3November 2025 · Paper 21 markWarm-up

    8.1 Programming concepts

    1
    Original question 3: Tick (✓) one box to identify the operator that returns the quotient of a calculation with the fractional part discarded. A / B DIV C ^ D MOD [1]

    Loading the question…

    Your answer
    The whole paper ↗
  2. Q4(a)November 2025 · Paper 25 marksChallenge

    7 Algorithm design and problem-solving8.1 Programming concepts

    2
    Original question 4(a): A restaurant offers a fixed priced menu. A meal for an adult costs $9.99 and a meal for a child costs $6.99. If there are 6 or more people at a table, a 15% dis

    Loading the question…

    The whole paper ↗
  3. Q4(b)November 2025 · Paper 22 marksCore

    8.1 Programming concepts

    3
    Original question 4(b): The final cost of the order after the discount may have more than 2 decimal places. Write a pseudocode statement to set the final cost of the order to 2 decimal

    Loading the question…

    The whole paper ↗
  4. Q7(c)November 2025 · Paper 21 markWarm-up

    8.1 Programming concepts

    4
    Setup for original question 7(c)

    Loading the question setup…

    Original question 7(c): State a suitable data type for the variable Count [1]

    Loading the question…

    The whole paper ↗
  5. 5
    Original question 7(d): Write the algorithm in pseudocode. A copy of the algorithm is provided for you on page 11. [4] 11 , , START Count 0 INPUT Number Value Count * Numbe

    Loading the question…

    The whole paper ↗
  6. Q10(a)November 2025 · Paper 21 markWarm-up

    8.1 Programming concepts

    6
    Setup for original question 10(a)

    Loading the question setup…

    Original question 10(a): Write pseudocode statements to declare the variables Seconds and Minutes [1]

    Loading the question…

    The whole paper ↗
  7. Q10(b)November 2025 · Paper 24 marksChallenge

    8.1 Programming concepts

    7
    Original question 10(b): The procedure Time(TotalSeconds) takes the number of seconds as a parameter. The procedure converts the value held in the parameter into minutes and seconds and

    Loading the question…

    The whole paper ↗
  8. Q1November 2025 (variant 2) · Paper 21 markWarm-up

    8.1 Programming concepts

    8
    Original question 1: Tick (✓) one box to complete this sentence. The result of the arithmetic operation 4 ^ 2 is A 2 B 8 C 16 D 42 [1]

    Loading the question…

    Your answer
    The whole paper ↗
  9. Q2(b)(i)November 2025 (variant 2) · Paper 24 marksChallenge

    8.1 Programming concepts8.2 Arrays

    9
    Setup for original question 2(b)(i)

    Loading the question setup…

    Original question 2(b)(i): Complete the pseudocode for PROCEDURE NewData PROCEDURE NewData( ) FOR Row 1 TO FOR Column 1 TO 4 INPUT ENDPROCEDURE [4]

    Loading the question…

    The whole paper ↗
  10. Q2(b)(ii)November 2025 (variant 2) · Paper 22 marksCore

    8.1 Programming concepts

    10
    Original question 2(b)(ii): Write the pseudocode to input the number of new contacts and to use procedure NewData. A variable declaration is not required. [2]

    Loading the question…

    The whole paper ↗
  11. Q4(b)November 2025 (variant 2) · Paper 26 marksCore

    7 Algorithm design and problem-solving8.1 Programming concepts

    11
    Original question 4(b): An email address can be validated by checking that it contains an @ symbol. Write the pseudocode for an algorithm that will allow an email address to be input a

    Loading the question…

    The whole paper ↗
  12. Q1November 2025 (variant 3) · Paper 23 marksCore

    8.1 Programming concepts

    12
    Original question 1: Give three ways of creating a maintainable program. 1 2 3 [3]

    Loading the question…

    The whole paper ↗
  13. Q2November 2025 (variant 3) · Paper 24 marksChallenge

    8.1 Programming concepts

    13
    Original question 2: Four descriptions of programming techniques and five programming techniques are given. Draw one line from each description to the relevant technique. Not all te

    Loading the question…

    The whole paper ↗
  14. Q3November 2025 (variant 3) · Paper 21 markWarm-up

    8.1 Programming concepts

    14
    Original question 3: Tick (3) one box to identify the most appropriate data type to store 'M' A integer B char C real D Boolean [1]

    Loading the question…

    Your answer
    The whole paper ↗
  15. Q4(a)November 2025 (variant 3) · Paper 24 marksChallenge

    7 Algorithm design and problem-solving8.1 Programming concepts

    15
    Original question 4(a): Tickets for a theme park are booked online. An adult ticket costs $12.99 and a child ticket costs $7.99. A booking fee of $1.99 is added to the total cost of ea

    Loading the question…

    The whole paper ↗
  16. Q7(b)November 2025 (variant 3) · Paper 21 markWarm-up

    8.1 Programming concepts

    16
    Setup for original question 7(b)

    Loading the question setup…

    Original question 7(b): Identify one programming technique used in the algorithm. [1]

    Loading the question…

    The whole paper ↗
  17. Q9(a)November 2025 (variant 3) · Paper 23 marksCore

    8.1 Programming concepts

    17
    Setup for original question 9(a)

    Loading the question setup…

    Original question 9(a): Write pseudocode statements to declare the variables Name, Age and Found [3]

    Loading the question…

    The whole paper ↗
  18. Q9(b)(i)November 2025 (variant 3) · Paper 25 marksCore

    8.1 Programming concepts8.3 File handling

    18
    Original question 9(b)(i): Write pseudocode statements to: • define the procedure with the parameter • store the name of the person in the file. [5]

    Loading the question…

    The whole paper ↗
  19. Q9(b)(ii)November 2025 (variant 3) · Paper 22 marksCore

    8.1 Programming concepts

    19
    Original question 9(b)(ii): Write the pseudocode that uses the procedure StoreData() to store the name ‘Suella’ in the file People.txt [2]

    Loading the question…

    The whole paper ↗
  20. Q3June 2025 · Paper 24 marksChallenge

    8.1 Programming concepts8.2 Arrays

    20
    Original question 3: The following pseudocode algorithm uses a count-controlled loop to read in 10 names and store them in the array Names[] FOR Count 1 TO 10 OUTPUT "Please enter a

    Loading the question…

    The whole paper ↗
All 205 questions on Programming concepts, as a list
  1. November 2025, Paper 2, Q3 (1 mark): Tick (✓) one box to identify the operator that returns the quotient of a calculation with the fractional part discarded. A / B DIV C ^ D MOD [1]
  2. November 2025, Paper 2, Q4(a) (5 marks): A restaurant offers a fixed priced menu. A meal for an adult costs $9.99 and a meal for a child costs $6.99. If there are 6 or more people at a table, a 15% dis
  3. November 2025, Paper 2, Q4(b) (2 marks): The final cost of the order after the discount may have more than 2 decimal places. Write a pseudocode statement to set the final cost of the order to 2 decimal
  4. November 2025, Paper 2, Q7(c) (1 mark): State a suitable data type for the variable Count [1]
  5. November 2025, Paper 2, Q7(d) (4 marks): Write the algorithm in pseudocode. A copy of the algorithm is provided for you on page 11. [4] 11 , , START Count 0 INPUT Number Value Count * Numbe
  6. November 2025, Paper 2, Q10(a) (1 mark): Write pseudocode statements to declare the variables Seconds and Minutes [1]
  7. November 2025, Paper 2, Q10(b) (4 marks): The procedure Time(TotalSeconds) takes the number of seconds as a parameter. The procedure converts the value held in the parameter into minutes and seconds and
  8. November 2025 (variant 2), Paper 2, Q1 (1 mark): Tick (✓) one box to complete this sentence. The result of the arithmetic operation 4 ^ 2 is A 2 B 8 C 16 D 42 [1]
  9. November 2025 (variant 2), Paper 2, Q2(b)(i) (4 marks): Complete the pseudocode for PROCEDURE NewData PROCEDURE NewData( ) FOR Row 1 TO FOR Column 1 TO 4 INPUT ENDPROCEDURE [4]
  10. November 2025 (variant 2), Paper 2, Q2(b)(ii) (2 marks): Write the pseudocode to input the number of new contacts and to use procedure NewData. A variable declaration is not required. [2]
  11. November 2025 (variant 2), Paper 2, Q4(b) (6 marks): An email address can be validated by checking that it contains an @ symbol. Write the pseudocode for an algorithm that will allow an email address to be input a
  12. November 2025 (variant 3), Paper 2, Q1 (3 marks): Give three ways of creating a maintainable program. 1 2 3 [3]
  13. November 2025 (variant 3), Paper 2, Q2 (4 marks): Four descriptions of programming techniques and five programming techniques are given. Draw one line from each description to the relevant technique. Not all te
  14. November 2025 (variant 3), Paper 2, Q3 (1 mark): Tick (3) one box to identify the most appropriate data type to store 'M' A integer B char C real D Boolean [1]
  15. November 2025 (variant 3), Paper 2, Q4(a) (4 marks): Tickets for a theme park are booked online. An adult ticket costs $12.99 and a child ticket costs $7.99. A booking fee of $1.99 is added to the total cost of ea
  16. November 2025 (variant 3), Paper 2, Q7(b) (1 mark): Identify one programming technique used in the algorithm. [1]
  17. November 2025 (variant 3), Paper 2, Q9(a) (3 marks): Write pseudocode statements to declare the variables Name, Age and Found [3]
  18. November 2025 (variant 3), Paper 2, Q9(b)(i) (5 marks): Write pseudocode statements to: • define the procedure with the parameter • store the name of the person in the file. [5]
  19. November 2025 (variant 3), Paper 2, Q9(b)(ii) (2 marks): Write the pseudocode that uses the procedure StoreData() to store the name ‘Suella’ in the file People.txt [2]
  20. June 2025, Paper 2, Q3 (4 marks): The following pseudocode algorithm uses a count-controlled loop to read in 10 names and store them in the array Names[] FOR Count 1 TO 10 OUTPUT "Please enter a
  21. June 2025, Paper 2, Q4(a) (5 marks): Write an algorithm using pseudocode to: • input the telephone number • extract the 2-digit country code • output the matching country • output ‘Unknown’ if ther
  22. June 2025, Paper 2, Q5 (4 marks): Two library routines used in programming are MOD and DIV. State the purpose of each of the library routines. Give one example pseudocode statement for each of t
  23. June 2025, Paper 2, Q6(b) (2 marks): Identify one method to make the algorithm maintainable. Give an example. [2]
  24. June 2025, Paper 2, Q9(a) (2 marks): Write pseudocode statements to declare the variables A and B [2]
  25. June 2025, Paper 2, Q9(b) (6 marks): The function Odds(X) returns ‘Odd’ if the value of X is an odd number and returns ‘Even’ if the value of X is an even number. Write pseudocode statements to: •
  26. June 2025 (variant 2), Paper 2, Q5(b) (2 marks): Write the pseudocode statement that will output the average height rounded to one decimal place. [2]
  27. June 2025 (variant 2), Paper 2, Q6(c) (3 marks): Explain how the algorithm knows when all the letters in the word have been checked so that it can stop checking. [3]
  28. June 2025 (variant 3), Paper 2, Q2 (3 marks): Three uses of arithmetic operators and four results are shown. Draw one line from each use of arithmetic operator to the correct result. Not all results will be
  29. June 2025 (variant 3), Paper 2, Q3(b)(i) (4 marks): Complete the pseudocode for PROCEDURE Swap PROCEDURE Swap( ) DECLARE Hold : REAL Hold Values[ ] ENDPROCEDURE [4]
  30. June 2025 (variant 3), Paper 2, Q3(b)(ii) (2 marks): Write the pseudocode to transfer control to PROCEDURE Swap [2]
  31. June 2025 (variant 3), Paper 2, Q3(c) (2 marks): Explain the difference between global variables and the variable declared in 3(b)(i). [2]
  32. June 2025 (variant 3), Paper 2, Q4(b)(ii) (5 marks): Write the pseudocode to allow a new password to be entered and to ensure that it contains at least 12 characters. The password is re-input until it meets this r
  33. March 2025, Paper 2, Q4(b)(ii) (5 marks): Write the pseudocode for an algorithm to allow a number to be input into an appropriate variable and check whether the number is an integer. If the number is an
  34. March 2025, Paper 2, Q6(b) (2 marks): Write the pseudocode statement to output the average of the numbers, rounded to two decimal places. [2]
  35. November 2024, Paper 2, Q3 (4 marks): Four operators and three types of operator are shown. Draw one or more lines from each operator to its correct operator type. Operator Operator type >= Boolean
  36. November 2024, Paper 2, Q6(b) (3 marks): Write the pseudocode to display, with suitable messages, the number of zeros stored in the array and the total of the non-zero values. [3]
  37. November 2024, Paper 2, Q6(c) (3 marks): Meaningful identifiers have not been used in the algorithm. Suggest suitable meaningful identifiers for: The array: A The variables: T C I [3]
  38. November 2024 (variant 2), Paper 2, Q2 (1 mark): Tick (✓) one box to complete this sentence. A pseudocode example of a selection statement is A CALL Sorting(Value1, Value2) B DECLARE Count : INTEGER C IF X = 7
  39. November 2024 (variant 2), Paper 2, Q10 (6 marks): The function LENGTH(X) calculates the length of a string X Write the pseudocode statements to: • allow a line of text to be input to an appropriate variable • s
  40. November 2024 (variant 3), Paper 2, Q6(b) (3 marks): Write pseudocode to display, with suitable messages: • the number of values stored in the array • the average of those values stored. [3]
  41. November 2024 (variant 3), Paper 2, Q6(c) (3 marks): Meaningful identifiers have not been used in this algorithm. Suggest suitable meaningful identifiers for: The array A The variables C X W [3]
  42. June 2024, Paper 2, Q2(a) (4 marks): Draw one line to link each description to the most appropriate programming concept. Not all programming concepts will be used. Description Programming concept f
  43. June 2024, Paper 2, Q2(b) (2 marks): Write the pseudocode to use a procedure named Average that passes the values 25 and 50 to the procedure. [2]
  44. June 2024, Paper 2, Q2(c) (3 marks): Outline the role of procedures and functions in creating a program that is easier to maintain. [3]
  45. June 2024, Paper 2, Q3 (4 marks): State what is meant by the data types integer and real. Give an example of each. Integer Example Real Example [4]
  46. June 2024, Paper 2, Q4(b) (2 marks): Write the pseudocode statement that would output the average calculated in line 13 of the algorithm rounded to one decimal place. [2]
  47. June 2024, Paper 2, Q5 (5 marks): Write the pseudocode statements to perform this task: • accept the input of a whole number from 1 to 4 inclusive • use a CASE statement to: ○ output the number
  48. June 2024 (variant 2), Paper 2, Q4(b)(i) (2 marks): Write the pseudocode to make sure that the product code is six characters in length. [2]
  49. June 2024 (variant 2), Paper 2, Q4(b)(ii) (2 marks): Write the pseudocode to make sure that the first two characters of the product code are “PD”. [2]
  50. June 2024 (variant 2), Paper 2, Q5 (6 marks): A high-level programming language makes use of arithmetic, Boolean and logical operators. State how each type of operator is used. Give an example statement, in
  51. June 2024 (variant 2), Paper 2, Q7(a) (3 marks): Give a line number for each of these types of statement: Assignment statement Selection statement Iteration statement [3]
  52. June 2024 (variant 3), Paper 2, Q3 (4 marks): Describe the characteristics of the string and char data types and give an example of each. String Example Char Example [4]
  53. June 2024 (variant 3), Paper 2, Q5(c) (3 marks): Explain why the identifiers L, S, T and A may not be appropriate to use as identifiers and how they could be improved. [3]
  54. June 2024 (variant 3), Paper 2, Q5(d) (2 marks): State a more appropriate identifier for each of the variables L, S, T and A Original identifier Improved identifier L S T A [2]
  55. June 2024 (variant 3), Paper 2, Q7(a) (4 marks): The string operation SUBSTRING(FullText, X, Y) returns a string from FullText beginning at position X that is Y characters long. The first character in FullText
  56. March 2024, Paper 2, Q4 (3 marks): Identify three data types used in programming. 1 2 3 [3]
  57. March 2024, Paper 2, Q6 (4 marks): Describe two types of iteration that a programmer can use whilst writing a program. [4]
  58. March 2024, Paper 2, Q10 (6 marks): A programmer has written a program that will be maintained by another programmer. Explain how the program can be written to make sure it can be easily maintaine
  59. November 2023, Paper 2, Q1 (1 mark): Tick (3) one box to show which operator means less than or equal to. A OR B < C <= D >= [1]
  60. November 2023, Paper 2, Q2 (1 mark): Tick (3) one box to show how a value can be passed to a procedure. A function B parameter C return D subroutine [1]
  61. November 2023, Paper 2, Q3 (4 marks): Four descriptions of data and five data types are shown. Draw one line to link each description to the most appropriate data type. Not all data types will be us
  62. November 2023, Paper 2, Q4 (3 marks): Circle the three words representing places where data may be stored. array constant dimension input output procedure variable [3]
  63. November 2023, Paper 2, Q6(c) (3 marks): Meaningful identifiers have not been used in this algorithm. Suggest suitable meaningful identifiers for: The array: A The variables: T C L [3]
  64. November 2023, Paper 2, Q6(d) (2 marks): State two other ways the algorithm can be made easier to understand and maintain. 1 2 [2]
  65. November 2023 (variant 2), Paper 2, Q3(a) (4 marks): Draw one line to link each pseudocode statement to the most appropriate pseudocode use. Not all pseudocode uses will be required. Pseudocode statement Pseudocod
  66. November 2023 (variant 2), Paper 2, Q5 (3 marks): Explain how variables and constants should be used when creating and running a program. [3]
  67. November 2023 (variant 2), Paper 2, Q7 (5 marks): The string operation SUBSTRING(Quote, Start, Number) returns a string from Quote beginning at position Start that is Number characters long. The first character
  68. November 2023 (variant 2), Paper 2, Q8 (4 marks): Explain why a programmer would use procedures and parameters when writing a program. [4]
  69. November 2023 (variant 3), Paper 2, Q2 (1 mark): Tick (3) one box to show which library routine returns the remainder of a division. A DIV B MOD C RANDOM D ROUND [1]
  70. November 2023 (variant 3), Paper 2, Q3(a) (4 marks): Four pseudocode descriptions and five pseudocode keywords are shown. Draw one line to link each pseudocode description to the most appropriate pseudocode keywor
  71. November 2023 (variant 3), Paper 2, Q7 (4 marks): A program uses both local variables and global variables. Describe two differences between local variables and global variables. Difference 1 Difference 2 [4]
  72. June 2023, Paper 2, Q4 (4 marks): Explain the purpose of the library routines DIV and ROUND DIV ROUND [4]
  73. June 2023, Paper 2, Q5(b) (4 marks): Describe how you could change the corrected algorithm to record and output how many positive numbers have been included in the final total. You do not need to r
  74. June 2023, Paper 2, Q6 (4 marks): State two features that should be included to create a maintainable program. Give a reason why each feature should be used. 1 2 [4]
  75. June 2023, Paper 2, Q8(a) (3 marks): Write the pseudocode statements to: • store the string "The beginning is the most important part" in Phrase • calculate and output the length of the string • ou
  76. June 2023, Paper 2, Q8(b) (2 marks): Write the output your pseudocode should produce. [2]
  77. June 2023 (variant 2), Paper 2, Q6 (6 marks): State three different features of a high-level programming language that a programmer could use to make sure that their program will be easier to understand by
  78. June 2023 (variant 2), Paper 2, Q7(a) (3 marks): Give the line number(s) for the statements showing: Totalling Count-controlled loop Post-condition loop [3]
  79. June 2023 (variant 2), Paper 2, Q11(a) (2 marks): Write pseudocode statements to declare the variables P and Q, store "The world" in P and store 'W' in Q [2]
  80. June 2023 (variant 2), Paper 2, Q11(b) (4 marks): Write a pseudocode algorithm to: • convert P to upper case • find the position of Q in the string P (the first character in this string is in position 1) • stor
  81. June 2023 (variant 2), Paper 2, Q11(c) (1 mark): Give the value of Position after the algorithm has been executed with the data in question 11(a). [1]
  82. June 2023 (variant 3), Paper 2, Q1 (1 mark): Tick (3) one box to complete the sentence. A constant A stores a value that can change at any time during the execution of a program. B stores a value that cann
  83. June 2023 (variant 3), Paper 2, Q2 (4 marks): Explain the purpose of the library routines MOD and RANDOM MOD RANDOM [4]
  84. June 2023 (variant 3), Paper 2, Q3 (3 marks): Describe what happens when a function is called during the execution of a program. [3]
  85. June 2023 (variant 3), Paper 2, Q6(b) (5 marks): Describe the changes you should make to the corrected algorithm so that a count-controlled loop is used to allow 100 positive numbers to be input. You do not ne
  86. June 2023 (variant 3), Paper 2, Q9(a) (1 mark): Write the pseudocode statement to declare the variable Saying [1]
  87. March 2023, Paper 2, Q1 (1 mark): Tick (3) one box to show which word accurately describes the scope of a variable declared in a procedure. A Function B Global C Local D Subroutine [1]
  88. March 2023, Paper 2, Q2(a) (4 marks): Four descriptions and five pseudocode statements are shown. Draw one line to link each description to its most appropriate pseudocode statement. Not all pseudoc
  89. March 2023, Paper 2, Q4 (3 marks): Describe how variables and constants are used in programming. [3]
  90. March 2023, Paper 2, Q6(b) (2 marks): Write pseudocode to check for an efficiency of 92% or over for this appliance and to output “A-rated” if the efficiency is 92% or over. [2]
  91. March 2023, Paper 2, Q10(a) (3 marks): Write pseudocode statements to declare the variables X, Y and Z [3]
  92. March 2023, Paper 2, Q10(b) (6 marks): The function Same(A,B) returns TRUE if the value of A is the same as the value of B when B is rounded to the nearest whole number and FALSE otherwise. Write pse
  93. March 2023, Paper 2, Q10(c) (1 mark): State the difference between defining and calling a function. [1]
  94. November 2022 (variant 2), Paper 2, Q1(a)(i) (2 marks): Identify one constant you could have used for Task 1 and state its value. Constant Value [2]
  95. November 2022 (variant 2), Paper 2, Q2 (4 marks): Draw a line to connect each programming concept to the most appropriate description. Programming concept Description carrying out an action multiple times withi
  96. November 2022 (variant 2), Paper 2, Q5(b) (4 marks): The corrected algorithm needs to be changed so that any number of marks may be entered and the algorithm runs until the user tells it to stop. Write the new pse
  97. November 2022 (variant 3), Paper 2, Q1(a)(i) (3 marks): Identify one constant that you could have used for Task 1. State the value that would be assigned to the constant. Give a reason why a constant was used rather
  98. June 2022, Paper 2, Q1(a) (5 marks): Describe the data structures you could have used in Task 1. Your description should include types of data structure, names used for data structures, their uses
  99. June 2022, Paper 2, Q2 (4 marks): Tick (ü) one box in each row to identify the most appropriate data type for each description. Only one tick (ü) per column. Data type Description Boolean Char I
  100. June 2022 (variant 2), Paper 2, Q1(a)(i) (3 marks): Identify one constant that you could have used for Task 1. Give the value and use of the constant. Constant Value Use [3]
  101. June 2022 (variant 2), Paper 2, Q1(a)(ii) (3 marks): Identify one variable that you could have used for Task 2. Give the data type and use of the variable. Variable Data type Use [3]
  102. June 2022 (variant 3), Paper 2, Q1(a) (4 marks): Identify one variable and one array you could have used for Task 1 or Task 2. Give the use for the variable and array. Variable Use Array Use [4]
  103. June 2022 (variant 3), Paper 2, Q3 (4 marks): Describe what is meant by the terms variable and constant and give an example of each in your answer. Variable Constant [4]
  104. March 2022, Paper 2, Q1(a) (6 marks): State one constant and one variable that you could have used for Task 1. Give the value that would be assigned to the constant. Give the data type for the varia
  105. March 2022, Paper 2, Q2(b) (4 marks): Write the extra pseudocode statements that are needed to count and output the number of students under the age of 7. Use the variable CountUnder7; assume CountU
  106. November 2021, Paper 2, Q1(a) (3 marks): Identify one constant that you could have used for Task 1. Give the value that would be assigned to this constant. State the use of this constant. Constant Valu
  107. November 2021, Paper 2, Q2(b) (3 marks): The pseudocode for this algorithm could be shortened by the use of a FOR … NEXT loop. Rewrite the algorithm using a FOR … NEXT loop. [3]
  108. November 2021, Paper 2, Q2(c) (1 mark): Identify another loop structure available in pseudocode. [1]
  109. November 2021 (variant 2), Paper 2, Q1(a)(i) (2 marks): Identify one variable you could have used for Task 2 and state its use. Variable Use [2]
  110. November 2021 (variant 3), Paper 2, Q1(a) (3 marks): Identify one constant that you could have used for Task 1. Give the value that would be assigned to this constant. State the use of this constant. Constant Valu
  111. November 2021 (variant 3), Paper 2, Q2(b) (3 marks): The pseudocode for this algorithm could be shortened by the use of a FOR … NEXT loop. Rewrite the algorithm using a FOR … NEXT loop. [3]
  112. June 2021, Paper 2, Q1(a)(i) (3 marks): Identify one constant you could have used for Task 1, give the value that would be assigned to it and its use. Constant Value Use [3]
  113. June 2021, Paper 2, Q1(a)(ii) (4 marks): Identify one variable and one array you could have used for Task 1. Explain the use of each one. Variable Use Array Use [4]
  114. June 2021, Paper 2, Q3 (6 marks): Name and describe the most appropriate programming data type for each of the examples of data given. Each data type must be different. Data: 37 Data type name D
  115. June 2021 (variant 2), Paper 2, Q3(b) (3 marks): State the type of each pseudocode statement. For example, X ← X + Y is totalling. IF Number = 20 PRINT Number Number ← Number + 1 [3]
  116. June 2021 (variant 2), Paper 2, Q5(b) (1 mark): Explain why you chose this loop structure. [1]
  117. June 2021 (variant 3), Paper 2, Q1(a)(i) (3 marks): Identify one constant you could have used for Task 1. Give the value that would be assigned to the constant and explain its use. Constant Value Use [3]
  118. June 2021 (variant 3), Paper 2, Q1(a)(ii) (2 marks): Identify one variable you could have used for Task 1 and explain its use. Variable Use [2]
  119. June 2021 (variant 3), Paper 2, Q2 (3 marks): Draw a line to connect each Data Type to the most appropriate Description. Data Type Description Real Must be a whole number String Must be one of two values In
  120. March 2021, Paper 2, Q1(a) (4 marks): Identify the variable that you used to store the student’s answer in Task 1. Give the most appropriate data type for this variable. Explain how your program ens
  121. March 2021, Paper 2, Q1(b) (3 marks): Identify and give the data type of a different variable, that you could have used in Task 2. State the use of this variable in Task 2. Variable Data type Use [3
  122. November 2020, Paper 2, Q1(d)(ii) (3 marks): The car insurance system needs updating to record the percentage of customers who bought car insurance after obtaining a price to insure a car. Describe the cha
  123. November 2020, Paper 2, Q2 (4 marks): Describe the purpose of variables and constants. Use an example of each in your answer. [4]
  124. November 2020, Paper 2, Q3(a) (4 marks): Give the line number(s) from the algorithm of: an assignment statement a loop a counting statement a totalling statement [4]
  125. November 2020 (variant 2), Paper 2, Q1(a)(ii) (2 marks): Identify one variable you could have used for Task 2 and state its purpose. Variable Purpose [2]
  126. November 2020 (variant 2), Paper 2, Q1(a)(iii) (2 marks): Identify one constant you could have used for Task 3 and state its purpose. Constant Purpose [2]
  127. November 2020 (variant 2), Paper 2, Q1(b) (2 marks): Explain the benefits of storing Price as a real data type. [2]
  128. November 2020 (variant 2), Paper 2, Q2 (2 marks): Tick (3) one box in each row to identify if the statement about subroutines is true or false. true false Statement (3) (3) A subroutine is called from within a
  129. November 2020 (variant 3), Paper 2, Q1(a) (6 marks): Identify one constant and identify one variable that you could have used for Task 1. Give the value that would be assigned to the constant. Give the data type f
  130. November 2020 (variant 3), Paper 2, Q2(a) (4 marks): Give the line number(s) from the algorithm of: an assignment statement a loop a counting statement a selection statement [4]
  131. November 2020 (variant 3), Paper 2, Q3 (4 marks): Four programming concepts and five descriptions are shown. Draw a line to connect each Programming concept to its correct Description. Not all Descriptions will
  132. June 2020, Paper 2, Q1(a)(ii) (4 marks): Identify two variables you could have used for Task 1 and, in each case, state its purpose. Variable 1 Purpose Variable 2 Purpose [4]
  133. June 2020, Paper 2, Q1(b) (2 marks): Explain why the item code data could not be stored as a real data type and identify the most suitable data type for the item code data. [2]
  134. June 2020, Paper 2, Q4(a) (2 marks): Explain why the algorithm will never end. [2]
  135. June 2020 (variant 2), Paper 2, Q1(a) (4 marks): Identify two variables that you could have used for Task 1. Give the data type and state the use of each variable. Variable 1 Data type Use Variable 2 Data type
  136. June 2020 (variant 2), Paper 2, Q2 (5 marks): Most programming languages include basic data types. Ahmad is describing the basic data types he has used. State the data type that Ahmad is describing in each
  137. March 2020, Paper 2, Q1(a) (3 marks): State the name of one constant that you could have used for Task 1. Give the value that would be assigned to the constant. State the use of this constant. Const
  138. March 2020, Paper 2, Q1(b) (4 marks): State the name of the variable that you used to store the amount offered for the trade-in of an old car in Task 1. Give the most appropriate data type for this
  139. March 2020, Paper 2, Q2(b) (4 marks): The algorithm needs to be changed so there is no limit to how many numbers can be input. When the number 9999 is input, the algorithm stops more numbers being i
  140. November 2019, Paper 2, Q1(a) (6 marks): All variables, constants and other identifiers must have meaningful names. Name two variables that you could have used for Task 1. State the data type and purpo
  141. November 2019, Paper 2, Q2 (4 marks): For each of the four descriptions in the table, place a tick in the correct column to show whether it describes a Structure diagram, a Flowchart or Library rout
  142. November 2019, Paper 2, Q3(b) (3 marks): Describe how this pseudocode could be altered to allow any number of values to be input. [3]
  143. November 2019, Paper 2, Q3(c) (5 marks): Re-write the given pseudocode to allow any number of values to be input. [5]
  144. November 2019 (variant 2), Paper 2, Q1(a)(i) (5 marks): Describe the data structures that you have used to store the data for the concrete slabs in Task 1, include the name, data type and use for each data structure.
  145. November 2019 (variant 2), Paper 2, Q1(a)(ii) (3 marks): State one variable that you have used in Task 3. Give the data type for the variable. State what it is used for. Variable name Data type Use [3]
  146. November 2019 (variant 2), Paper 2, Q6 (6 marks): Explain why constants, variables and arrays are used in programming. Constants Variables Arrays [6]
  147. November 2019 (variant 3), Paper 2, Q1(b) (4 marks): Name a variable that you used for Task 2. State the data type and purpose of this variable. Explain why you chose to use a variable rather than a constant. Vari
  148. November 2019 (variant 3), Paper 2, Q2 (2 marks): Describe the use of a subroutine in a program. [2]
  149. November 2019 (variant 3), Paper 2, Q3 (3 marks): Name the three types of loop structure used in pseudocode. [3]
  150. November 2019 (variant 3), Paper 2, Q4(a) (1 mark): Name the type of statement demonstrated by the use of IF … THEN … ELSE … ENDIF [1]
  151. November 2019 (variant 3), Paper 2, Q4(b) (4 marks): Re-write the pseudocode algorithm using a CASE statement. [4]
  152. June 2019, Paper 2, Q1(a)(ii) (6 marks): State one variable you used for Task 2 and one variable you used for Task 3. In each case, state the data type and purpose of the variable. Task 2 variable name
  153. June 2019, Paper 2, Q2 (6 marks): Describe each of the following data types used in programming. In each case, give an example of a piece of data to illustrate your answer. Each example must be
  154. June 2019, Paper 2, Q3(a) (2 marks): Give an example of a conditional statement using pseudocode. [2]
  155. June 2019, Paper 2, Q3(b) (2 marks): Describe the purpose of a conditional statement. [2] 9 Question 4 starts on page 10.
  156. June 2019 (variant 2), Paper 2, Q2(b) (4 marks): Show how you would change the corrected algorithm to total the numbers and print the total. Use a variable Total. [4]
  157. June 2019 (variant 2), Paper 2, Q4 (4 marks): For each of the four groups of statements in the table, place a tick in the correct column to show whether it is an example of Selection or Repetition. Statemen
  158. June 2019 (variant 3), Paper 2, Q5 (6 marks): Identify and describe three loop structures that are available in pseudocode. Loop structure 1 Description Loop structure 2 Description Loop structure 3 Descrip
  159. March 2019, Paper 2, Q1(a) (6 marks): All variables, constants and other identifiers should have meaningful names. State one constant and one variable that you could have used for Task 1. Give the v
  160. March 2019, Paper 2, Q2(b) (2 marks): Show how you would change the corrected algorithm to only total numbers greater than 0 and less than 20. [2] 9 Question 3 starts on page 10.
  161. March 2019, Paper 2, Q4 (4 marks): For each of the four groups of statements in the table, place a tick in the correct column to show whether it is an example of Selection or Repetition. Statemen
  162. November 2018, Paper 2, Q1(a)(ii) (4 marks): State the name, data type and use of two variables you have created for Task 2. Variable 1 name Data type Use Variable 2 name Data type Use [4]
  163. November 2018, Paper 2, Q1(c) (4 marks): Explain how your program calculates the profit using your input (last part of Task 3) with variable profit percentage and outputs the results. Any programming s
  164. November 2018, Paper 2, Q2 (5 marks): Six terms associated with programming and six descriptions are listed. Draw a line to link each term with its most appropriate description. Term Description Pre
  165. November 2018, Paper 2, Q4(b) (3 marks): Re-write the algorithm in pseudocode using a different type of loop. [3]
  166. November 2018 (variant 2), Paper 2, Q1(a)(i) (3 marks): State the name of one variable you have used for Task 3. Give the data type for the variable. State what it is used for. Variable name Data type Use [3]
  167. November 2018 (variant 2), Paper 2, Q3 (3 marks): Four programming concepts and four descriptions are shown. Draw a line to connect each programming concept to the most appropriate description. Programming conc
  168. November 2018 (variant 2), Paper 2, Q4 (4 marks): A programmer wants to test that the readings from 2000 electricity meters are greater than 400 units and less than 900 units. The programmer uses selection and
  169. November 2018 (variant 3), Paper 2, Q1(a)(ii) (2 marks): State the name, data type and use for one variable you used in Task 2. Variable name Data type Use [2]
  170. November 2018 (variant 3), Paper 2, Q2 (4 marks): Describe, giving an example for each, the following data types used in programming. Integer Description Example String Description Example [4]
  171. November 2018 (variant 3), Paper 2, Q3 (3 marks): Give an example of a pseudocode statement or statements to perform each of the following functions. A condition controlled loop A conditional statement Totallin
  172. June 2018, Paper 2, Q1(a)(i) (4 marks): You recorded information for the estimate of the cost of building a computer in Task 1. Give a data structure that you created for Task 1, its name, data type a
  173. June 2018, Paper 2, Q5 (4 marks): Explain the difference between the programming concepts of counting and totalling. Include an example of a programming statement for each concept in your explan
  174. June 2018 (variant 2), Paper 2, Q1(a)(i) (2 marks): State the name, the data type and the use of two variables that you have used in Task 2. Variable 1 name Data type Use Variable 2 name Data type Use [2]
  175. June 2018 (variant 2), Paper 2, Q3(b) (3 marks): Show how you could improve the algorithm written in pseudocode by writing an alternative type of conditional statement in pseudocode. [3]
  176. June 2018 (variant 3), Paper 2, Q1(a)(ii) (4 marks): State the name, value and use of two constants you could have created for Task 3. Constant 1 name Value Use Constant 2 name Value Use [4]
  177. June 2018 (variant 3), Paper 2, Q4(b)(i) (1 mark): The algorithm only allows one attempt at inputting an acceptable value. State how you would change the algorithm so that it continues until a suitable input is
  178. June 2018 (variant 3), Paper 2, Q4(b)(ii) (3 marks): Re-write the algorithm in full, using pseudocode, to implement your answer to part (b)(i). [3]
  179. March 2018, Paper 2, Q1(a)(ii) (6 marks): State the name of one constant and the name of one variable that you could have used in your programmed solution. State the value that would be assigned to the
  180. March 2018, Paper 2, Q2(b) (2 marks): Show, using pseudocode, how you would change the corrected algorithm to print out any numbers between 100 and 200 inclusive. [2]
  181. March 2018, Paper 2, Q5 (4 marks): Explain the difference between the programming concepts of sequence and selection. Include an example of a programming statement for each concept in your explan
  182. November 2017, Paper 2, Q1(a)(ii) (4 marks): Name one variable and one constant you used for Task 1 and state the purpose of each one. Variable Purpose Constant Purpose [4]
  183. November 2017, Paper 2, Q3(c) (2 marks): Explain what is meant by the term library routine. [2]
  184. November 2017, Paper 2, Q4(a) (4 marks): Four pseudocode descriptions and five pseudocode statements are shown. Draw one line to link each pseudocode description to the correct pseudocode statement. No
  185. November 2017 (variant 2), Paper 2, Q1(a)(i) (3 marks): For one variable that you have used to record the information about a single boat in Task 1, state the name, data type and its use. Variable name Data type Use
  186. November 2017 (variant 2), Paper 2, Q1(a)(ii) (2 marks): State one constant and its value that you could have used for Task 1. Constant name Value [2]
  187. November 2017 (variant 2), Paper 2, Q3 (3 marks): The following diagram shows four data structures and four descriptions. Draw a line to connect each data structure to the correct description. Data structure De
  188. November 2017 (variant 2), Paper 2, Q4 (4 marks): IF … THEN … ELSE … ENDIF is one type of conditional statement used when writing pseudocode. Identify and describe another type of conditional statement that you
  189. November 2017 (variant 3), Paper 2, Q1(a)(ii) (4 marks): Name one variable and one constant you used for Task 1 and state the purpose of each one. Variable Purpose Constant Purpose [4]
  190. November 2017 (variant 3), Paper 2, Q3(c) (2 marks): Explain what is meant by the term library routine. [2]
  191. November 2017 (variant 3), Paper 2, Q4(a) (4 marks): Four pseudocode descriptions and five pseudocode statements are shown. Draw one line to link each pseudocode description to the correct pseudocode statement. No
  192. June 2017, Paper 2, Q1(a)(i) (2 marks): Name two constants you used for Task 1 and state the value of each one. Constant 1 Value Constant 2 Value [2]
  193. June 2017, Paper 2, Q1(d) (3 marks): Explain how your program calculates whether or not you have made a profit (Task 3). Any programming statements used in your answer must be fully explained. [3]
  194. June 2017, Paper 2, Q5(a) (2 marks): Describe the purpose of each statement in this algorithm. FOR I 1 TO 300 INPUT Name[I] NEXT I [2]
  195. June 2017, Paper 2, Q5(b) (1 mark): Identify, using pseudocode, another loop structure that the algorithm in part (a) could have used. [1]
  196. June 2017 (variant 2), Paper 2, Q1(a)(i) (3 marks): For a variable that you have used to record information about the cost of the outing in Task 1, state the name, data type and its use. Variable name Data type U
  197. June 2017 (variant 2), Paper 2, Q1(a)(ii) (6 marks): State two constants that you could have used for Task 1. Give the value that would be assigned to each one and explain what it is used for. Constant 1 name Valu
  198. June 2017 (variant 2), Paper 2, Q4(b) (3 marks): Rewrite the correct algorithm using a more suitable loop structure. [3]
  199. June 2017 (variant 3), Paper 2, Q1(a)(i) (2 marks): Name two constants you used for Task 1 and state the value of each one. Constant 1 Value Constant 2 Value [2]
  200. June 2017 (variant 3), Paper 2, Q1(d) (3 marks): Explain how your program calculates whether or not you have made a profit (Task 3). Any programming statements used in your answer must be fully explained. [3]
  201. June 2017 (variant 3), Paper 2, Q5(a) (2 marks): Describe the purpose of each statement in this algorithm. FOR I 1 TO 300 INPUT Name[I] NEXT I [2]
  202. June 2017 (variant 3), Paper 2, Q5(b) (1 mark): Identify, using pseudocode, another loop structure that the algorithm in part (a) could have used. [1]
  203. March 2017, Paper 2, Q3 (8 marks): There is a program that stores the following data: • EmployeeID, an employee ID which must be two letters followed by 4 numbers, e.g. TY4587 • Manager, whether
  204. March 2017, Paper 2, Q5(a) (4 marks): Rewrite the following pseudocode algorithm using a WHILE … DO … ENDWHILE loop. INPUT Num FOR Counter ← 1 TO 12 Num ← Num * Counter A[Counter] ← Num NEXT [4]
  205. March 2017, Paper 2, Q5(b) (4 marks): Explain the differences between a WHILE … DO … ENDWHILE and a REPEAT … UNTIL loop. [4]

Questions, mark schemes and examiner’s reports are © Cambridge University Press & Assessment, from their published past papers. Plumi isn’t affiliated with any exam board. Want whole papers? CAIE IGCSE Computer Science past papers.

The Plumi iPad app also offers exam-style questions with AI feedback on your handwritten working.