Skip to content
TMUATry on iPad
Get started

Style

Games

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

Algorithm design and problem-solving: CAIE IGCSE Computer Science questions

CAIE IGCSE Computer Science past-paper questions on 7 Algorithm design and problem-solving, 2017 to 2025, every variant, with mark schemes and examiner’s reports where available.

Getting your paper ready…

CAIE IGCSE Computer ScienceAlgorithm design and problem-solving2,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. Q2November 2025 · Paper 23 marksCore

    7 Algorithm design and problem-solving

    1
    Original question 2: Identify three different types of test data that can be used to test a program. 1 2 3 [3]

    Loading the question…

    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. Q5November 2025 · Paper 24 marksChallenge

    7 Algorithm design and problem-solving

    3
    Original question 5: A hotel booking system is an example of a computer system that is made up of sub-systems. The booking system: • allows the user to select the room type and the

    Loading the question…

    The whole paper ↗
  4. Q6(a)November 2025 · Paper 24 marksChallenge

    7 Algorithm design and problem-solving

    4
    Setup for original question 6(a)

    Loading the question setup…

    Original question 6(a): Identify the line numbers of the four errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Corre

    Loading the question…

    The whole paper ↗
  5. Q6(b)November 2025 · Paper 23 marksStretch

    7 Algorithm design and problem-solving

    5
    Original question 6(b): Explain how you could modify the pseudocode to validate that each input is a single digit. Any code must be fully explained. [3]

    Loading the question…

    The whole paper ↗
  6. Q6(c)November 2025 · Paper 22 marksCore

    7 Algorithm design and problem-solving

    6
    Original question 6(c): The 5-digit number needs to be entered as a single input. Describe one verification method that could be applied to the input of the 5-digit number. [2]

    Loading the question…

    The whole paper ↗
  7. Q7(a)November 2025 · Paper 24 marksChallenge

    7 Algorithm design and problem-solving

    7
    Setup for original question 7(a)

    Loading the question setup…

    Original question 7(a): Complete the tables, using the flowchart, for the given data: Input data: 20 Count Number Value Output Input data: 110 Count Number Value Output [4]

    Loading the question…

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

    7 Algorithm design and problem-solving

    8
    Original question 7(b): State the purpose of the algorithm on page 8. A copy of the algorithm is provided for you on page 11. [1]

    Loading the question…

    The whole paper ↗
  9. 9
    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 ↗
  10. Q11November 2025 · Paper 215 marksChallenge

    7 Algorithm design and problem-solving8.2 Arrays

    10
    Original question 11: The scores for each competitor in an archery competition are recorded. The one-dimensional (1D) array CompetitorName[] is used to store the names of the competi

    Loading the question…

    The whole paper ↗
  11. Q2(a)November 2025 (variant 2) · Paper 25 marksChallenge

    7 Algorithm design and problem-solving8.2 Arrays

    11
    Setup for original question 2(a)

    Loading the question setup…

    Original question 2(a): Identify the line numbers of five errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction 3 , , Error 2 lin

    Loading the question…

    The whole paper ↗
  12. Q2(c)(i)November 2025 (variant 2) · Paper 22 marksCore

    7 Algorithm design and problem-solving

    12
    Original question 2(c)(i): Explain why the given algorithm may not always give the expected results. [2]

    Loading the question…

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

    7 Algorithm design and problem-solving

    13
    Original question 2(c)(ii): Explain how you could improve the algorithm so that the search is more likely to find the required results. [2]

    Loading the question…

    The whole paper ↗
  14. Q3November 2025 (variant 2) · Paper 26 marksChallenge

    7 Algorithm design and problem-solving

    14
    Original question 3: A program is written that will only accept values between –99.99 and +99.99, inclusive. The program is to be tested. The table, when completed, shows appropriat

    Loading the question…

    The whole paper ↗
  15. Q4(a)November 2025 (variant 2) · Paper 21 markWarm-up

    7 Algorithm design and problem-solving

    15
    Original question 4(a): A length check is a type of validation check. State the purpose of a length check. [1]

    Loading the question…

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

    7 Algorithm design and problem-solving8.1 Programming concepts

    16
    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 ↗
  17. Q5(a)November 2025 (variant 2) · Paper 26 marksChallenge

    7 Algorithm design and problem-solving

    17
    Setup for original question 5(a)

    Loading the question setup…

    Original question 5(a): The first data row of the trace table shows the values currently stored in CodeStore[] Complete the trace table for the algorithm, using the input data: 7686, F

    Loading the question…

    The whole paper ↗
  18. Q5(b)November 2025 (variant 2) · Paper 23 marksStretch

    7 Algorithm design and problem-solving

    18
    Original question 5(b): Describe the processes in the algorithm on page 6. [3]

    Loading the question…

    The whole paper ↗
  19. Q8November 2025 (variant 2) · Paper 215 marksChallenge

    7 Algorithm design and problem-solving8.2 Arrays

    19
    Original question 8: A program is required to test the fairness of the random number generator. The one‑dimensional (1D) array RandomNumber[] is used to store 100 000 random integer

    Loading the question…

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

    7 Algorithm design and problem-solving8.1 Programming concepts

    20
    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 ↗
All 557 questions on Algorithm design and problem-solving, as a list
  1. November 2025, Paper 2, Q2 (3 marks): Identify three different types of test data that can be used to test a program. 1 2 3 [3]
  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, Q5 (4 marks): A hotel booking system is an example of a computer system that is made up of sub-systems. The booking system: • allows the user to select the room type and the
  4. November 2025, Paper 2, Q6(a) (4 marks): Identify the line numbers of the four errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Corre
  5. November 2025, Paper 2, Q6(b) (3 marks): Explain how you could modify the pseudocode to validate that each input is a single digit. Any code must be fully explained. [3]
  6. November 2025, Paper 2, Q6(c) (2 marks): The 5-digit number needs to be entered as a single input. Describe one verification method that could be applied to the input of the 5-digit number. [2]
  7. November 2025, Paper 2, Q7(a) (4 marks): Complete the tables, using the flowchart, for the given data: Input data: 20 Count Number Value Output Input data: 110 Count Number Value Output [4]
  8. November 2025, Paper 2, Q7(b) (1 mark): State the purpose of the algorithm on page 8. A copy of the algorithm is provided for you on page 11. [1]
  9. 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
  10. November 2025, Paper 2, Q11 (15 marks): The scores for each competitor in an archery competition are recorded. The one-dimensional (1D) array CompetitorName[] is used to store the names of the competi
  11. November 2025 (variant 2), Paper 2, Q2(a) (5 marks): Identify the line numbers of five errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction 3 , , Error 2 lin
  12. November 2025 (variant 2), Paper 2, Q2(c)(i) (2 marks): Explain why the given algorithm may not always give the expected results. [2]
  13. November 2025 (variant 2), Paper 2, Q2(c)(ii) (2 marks): Explain how you could improve the algorithm so that the search is more likely to find the required results. [2]
  14. November 2025 (variant 2), Paper 2, Q3 (6 marks): A program is written that will only accept values between –99.99 and +99.99, inclusive. The program is to be tested. The table, when completed, shows appropriat
  15. November 2025 (variant 2), Paper 2, Q4(a) (1 mark): A length check is a type of validation check. State the purpose of a length check. [1]
  16. 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
  17. November 2025 (variant 2), Paper 2, Q5(a) (6 marks): The first data row of the trace table shows the values currently stored in CodeStore[] Complete the trace table for the algorithm, using the input data: 7686, F
  18. November 2025 (variant 2), Paper 2, Q5(b) (3 marks): Describe the processes in the algorithm on page 6. [3]
  19. November 2025 (variant 2), Paper 2, Q8 (15 marks): A program is required to test the fairness of the random number generator. The one‑dimensional (1D) array RandomNumber[] is used to store 100 000 random integer
  20. 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
  21. November 2025 (variant 3), Paper 2, Q4(b) (4 marks): Each booking must have at least one adult ticket. Explain how the algorithm could be changed to repeatedly ask for the number of adult tickets if the number inp
  22. November 2025 (variant 3), Paper 2, Q5(a) (4 marks): Complete the trace table for the algorithm using the following numbers: 563, 21, 376, 99, 400 Count Number Lowest Highest [4]
  23. November 2025 (variant 3), Paper 2, Q5(b) (2 marks): The algorithm does not work correctly. State the reason why the algorithm does not work as expected and explain how the algorithm could be corrected. Any code u
  24. November 2025 (variant 3), Paper 2, Q6(a) (2 marks): The algorithm uses the one-dimensional (1D) array ClassList that contains the following data: ClassList 1 2 3 4 5 Henil Sven Ella Asia Ridwan Complete the table
  25. November 2025 (variant 3), Paper 2, Q6(b) (1 mark): Identify the standard method of solution used by the flowchart. [1]
  26. November 2025 (variant 3), Paper 2, Q6(c) (6 marks): Write the algorithm in pseudocode. [6]
  27. November 2025 (variant 3), Paper 2, Q7(a) (3 marks): Identify the line numbers of the three errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Corr
  28. November 2025 (variant 3), Paper 2, Q7(c)(i) (1 mark): The algorithm can accept a number between 1 and 255 inclusive as input. Two validation checks that could be applied to DenaryNumber are a presence check and a t
  29. November 2025 (variant 3), Paper 2, Q7(c)(ii) (3 marks): Write the pseudocode to implement the validation check you identified in (c)(i). You do not need to rewrite the whole algorithm. [3]
  30. November 2025 (variant 3), Paper 2, Q10 (15 marks): A number game has two players. Random whole numbers are generated for each player. The numbers are compared and players are given points based on the result of
  31. June 2025, Paper 2, Q1 (1 mark): Tick (ü) one box to identify the type of test to only check for the largest or smallest acceptable value. A normal test data B abnormal test data C extreme test
  32. June 2025, Paper 2, Q2(a) (4 marks): Draw one line from each requirement to the most appropriate validation check. Not all validation checks will be used. Requirement Validation check length check
  33. June 2025, Paper 2, Q2(b) (3 marks): Identify and describe one verification check that could be applied when a new password is input into a system. Verification check Description [3]
  34. 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
  35. June 2025, Paper 2, Q4(b) (3 marks): Explain how you could change the algorithm to repeatedly prompt for the telephone number until the number entered is 13 characters in length. Any code used must
  36. June 2025, Paper 2, Q6(a) (4 marks): Identify the line numbers of the four errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Corre
  37. June 2025, Paper 2, Q10(a) (3 marks): Complete the trace table for the algorithm, using the input data: 21, 46, 63, 91, 12 Score Grade OUTPUT [3]
  38. June 2025, Paper 2, Q10(b) (4 marks): Explain how the flowchart can be changed to produce the correct output. [4]
  39. June 2025, Paper 2, Q11 (15 marks): The one-dimensional (1D) array CompetitorName[] contains the names of 25 competitors in a tournament that includes five events. Another two-dimensional (2D) arr
  40. June 2025 (variant 2), Paper 2, Q1 (1 mark): Tick (✓) one box to complete the description of abstraction. Abstraction is part of the analysis stage of the development life cycle. Abstraction means A testin
  41. June 2025 (variant 2), Paper 2, Q2 (3 marks): A fence measuring 2 metres in height and 20 metres in length needs painting. The area of the fence needs to be calculated so that enough paint for the job is pu
  42. June 2025 (variant 2), Paper 2, Q3 (4 marks): A range check is used to validate that the input temperature is an integer between –100 and 0, inclusive. Suggest suitable normal, abnormal, extreme and boundar
  43. June 2025 (variant 2), Paper 2, Q4(a) (1 mark): State one reason for using a verification check when inputting data. [1]
  44. June 2025 (variant 2), Paper 2, Q4(b) (6 marks): Write the pseudocode for an algorithm to perform a double entry verification check, using the following criteria: • Input 10 numbers and store them in the array
  45. June 2025 (variant 2), Paper 2, Q5(a) (5 marks): Identify the line numbers of five errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Correctio
  46. June 2025 (variant 2), Paper 2, Q5(c) (4 marks): Explain how you could change the corrected algorithm so that it will also: • find the height of the tallest person. • output the height of the tallest person at
  47. June 2025 (variant 2), Paper 2, Q6(a) (6 marks): Complete the trace table for the algorithm, using the input data: 2, RACECAR, TREAT Number Index Word Continue V1 V2 L1 L2 OUTPUT [6]
  48. June 2025 (variant 2), Paper 2, Q6(b) (1 mark): State the purpose of the algorithm on page 6. [1]
  49. 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]
  50. June 2025 (variant 2), Paper 2, Q7(a) (6 marks): Complete the flowchart. START Count 0 Total 0 No Yes No Yes STOP [6]
  51. June 2025 (variant 2), Paper 2, Q7(b) (4 marks): Explain how you would alter the flowchart in 7(a) so that it will individually store each accepted value as it is entered and then output all the numbers, one a
  52. June 2025 (variant 3), Paper 2, Q1(a) (6 marks): Complete this flowchart. START PassCount 0 RejectCount 0 Yes No No Yes STOP [6]
  53. June 2025 (variant 3), Paper 2, Q1(b) (4 marks): Explain how you would alter the flowchart in 1(a) so that it calculates and outputs the average weight of only the biscuits that passed the weight check. You ma
  54. June 2025 (variant 3), Paper 2, Q3(a) (4 marks): Identify the line numbers of four errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Correctio
  55. June 2025 (variant 3), Paper 2, Q4(a)(i) (1 mark): State the type of validation check to test if the input meets this requirement. [1]
  56. June 2025 (variant 3), Paper 2, Q4(a)(ii) (4 marks): Suggest suitable abnormal and extreme test data for an integer between 10 and 95 inclusive, and give a reason for each of your choices. Abnormal test data Reaso
  57. June 2025 (variant 3), Paper 2, Q4(b)(i) (1 mark): State the type of validation check to test that the password meets this requirement. [1]
  58. 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
  59. June 2025 (variant 3), Paper 2, Q6(a) (5 marks): Complete the trace table for the algorithm, using input data: COMPUTER Store[] Word Index Letter [1] [2] [3] [4] [5] [6] [7] [8] OUTPUT [5]
  60. June 2025 (variant 3), Paper 2, Q6(b) (3 marks): Describe the processes in the algorithm. [3]
  61. June 2025 (variant 3), Paper 2, Q8 (15 marks): A collector needs a video library system for a collection of videos stored on 4K Blu-ray discs, standard Blu-ray discs, DVD, or as digital downloads. The two-di
  62. March 2025, Paper 2, Q1 (1 mark): Tick (✓) one box to complete this sentence. A standard method of solution used to find a piece of data in an array is a A bubble sort. B counting routine. C lin
  63. March 2025, Paper 2, Q3 (4 marks): Four development life cycle stages and five descriptions are shown. Draw one line from each stage to the most appropriate description. Not all descriptions will
  64. March 2025, Paper 2, Q4(a) (1 mark): A presence check is a type of validation check. State the purpose of a presence check. [1]
  65. March 2025, Paper 2, Q4(b)(i) (1 mark): Identify the validation check used to test whether the value input meets this requirement. [1]
  66. 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
  67. March 2025, Paper 2, Q5 (6 marks): A program is written to only accept data that contains more than 9 characters. The program needs to be tested. The table, when completed, shows appropriate test
  68. March 2025, Paper 2, Q6(a) (5 marks): Identify the line numbers of five errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction 5 , , Error 2 lin
  69. March 2025, Paper 2, Q6(c) (4 marks): Explain how you could change the corrected algorithm so that it also finds the smallest number that was input and outputs its value at the end. Any code used mu
  70. March 2025, Paper 2, Q7(a) (5 marks): Complete the trace table for the input data: Y, 7, S, 9, Y, 5, M, 12, Y, 25, D, 5, N, 10, A, 6 Answer Value1 Operator Value2 OUTPUT [5]
  71. March 2025, Paper 2, Q7(b) (1 mark): State the purpose of the algorithm on page 6. [1]
  72. March 2025, Paper 2, Q7(c)(i) (3 marks): Explain how you would change the algorithm to prevent the problems described. [3]
  73. March 2025, Paper 2, Q7(c)(ii) (1 mark): Identify one more error related to inputs when the algorithm is run. [1]
  74. March 2025, Paper 2, Q10 (15 marks): A sports club uses a six-character alphanumeric membership code to identify each member of the club. The one-dimensional (1D) array MemberID[] is used to store
  75. November 2024, Paper 2, Q1 (1 mark): Tick (✓) one box to show which check is used for verification when data is input. A length check B range check C type check D visual check [1]
  76. November 2024, Paper 2, Q4 (3 marks): Identify three stages of the program development life cycle from the following list of words. analysis decomposition design input pseudocode testing variable 1
  77. November 2024, Paper 2, Q5 (6 marks): Describe three methods that are used to design and construct a solution to a problem. Method 1 Method 2 Method 3 [6]
  78. November 2024, Paper 2, Q6(a) (3 marks): Complete the given pseudocode algorithm. [3]
  79. November 2024, Paper 2, Q8(a) (6 marks): Complete the flowchart for the program. START STOP [6]
  80. November 2024, Paper 2, Q9(a) (4 marks): Identify the line numbers of four errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Correctio
  81. November 2024, Paper 2, Q9(b) (2 marks): Identify the temperature range used. [2]
  82. November 2024, Paper 2, Q9(c) (2 marks): Complete the trace table for the corrected algorithm using this data: 34.22, 36.1, 37.4, 38.0, 999, –1 Temperature OUTPUT [2]
  83. November 2024, Paper 2, Q11 (15 marks): A running club has 200 members who compete in a 1-kilometre running competition every month. Members’ names are stored in the one-dimensional (1D) array MemberN
  84. November 2024 (variant 2), Paper 2, Q1 (1 mark): Tick (✓) one box to complete this sentence. A solution to a problem may be represented using pseudocode, flowcharts or A procedures. B processes. C structure di
  85. November 2024 (variant 2), Paper 2, Q3(a) (4 marks): Draw one line to link each flowchart symbol to its correct purpose. Not all purposes will be used. Flowchart symbol Purpose subroutine process flow decision ter
  86. November 2024 (variant 2), Paper 2, Q3(b) (6 marks): An algorithm needs to total 50 numbers between 1 and 100 inclusive. Draw a flowchart that: • uses a count-controlled loop from 1 to 50 • uses an appropriate pro
  87. November 2024 (variant 2), Paper 2, Q4(a) (5 marks): Identify the line numbers of five errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Correctio
  88. November 2024 (variant 2), Paper 2, Q4(b) (3 marks): A bubble sort algorithm can be written to include features that make it more efficient. Explain why the corrected bubble sort algorithm is efficient. [3]
  89. November 2024 (variant 2), Paper 2, Q5(a) (1 mark): State one other stage in the program development life cycle. [1]
  90. November 2024 (variant 2), Paper 2, Q5(b) (3 marks): Describe the analysis stage of the program development life cycle. [3]
  91. November 2024 (variant 2), Paper 2, Q6 (2 marks): Outline one type of verification check that could be used when inputting data. [2]
  92. November 2024 (variant 2), Paper 2, Q7(a) (5 marks): Complete the trace table for the input data: 5, 6, –1, 20, 9, 4 Value Count Answer OUTPUT [5]
  93. November 2024 (variant 2), Paper 2, Q7(b) (1 mark): State the purpose of this algorithm. [1]
  94. November 2024 (variant 2), Paper 2, Q7(c) (2 marks): Describe the problem that would be caused in this algorithm if a Value of 1, 0 or less than –1 was input. [2]
  95. November 2024 (variant 2), Paper 2, Q8 (4 marks): Different types of test data are used during program development to make sure a program works as intended. A program being developed takes as input whole number
  96. November 2024 (variant 2), Paper 2, Q12 (15 marks): A one-dimensional (1D) array Rooms[] contains the names of up to 20 rooms in a house. A two-dimensional (2D) array Dimensions[] is used to store the length, wid
  97. November 2024 (variant 3), Paper 2, Q1 (1 mark): Tick (✓) one box to show which of the following is used to validate data on input. A checksum B double entry check C type check D visual check [1]
  98. November 2024 (variant 3), Paper 2, Q2 (1 mark): Tick (✓) one box to show a method used to construct a solution to a problem. A abstraction B structure diagram C test data D variable [1]
  99. November 2024 (variant 3), Paper 2, Q5 (6 marks): One stage of the program development life cycle is the analysis stage. Identify and describe two other stages of the program development life cycle. Stage Descr
  100. November 2024 (variant 3), Paper 2, Q6(a) (3 marks): Complete the given pseudocode algorithm. [3]
  101. November 2024 (variant 3), Paper 2, Q7 (9 marks): A programmer is testing a program that requires a positive value between 1 and 100 inclusive to be entered. The range check in the program is to be tested. Iden
  102. November 2024 (variant 3), Paper 2, Q9 (4 marks): A flowchart checks that values stored in three variables are identical. If they are different, the highest value is stored in all three variables. START No Is A
  103. November 2024 (variant 3), Paper 2, Q10(a) (6 marks): Complete the three trace tables using the data shown for each one. Data: MYWORD Password Accept Index Found OUTPUT 9 ,  , Data: M!word Password Accep
  104. November 2024 (variant 3), Paper 2, Q10(b) (3 marks): State the rules that the password must meet. [3]
  105. November 2024 (variant 3), Paper 2, Q12 (15 marks): Members of a litter picking group complete a litter pick every month. Members’ names are stored in one-dimensional (1D) array PickerName[] Each member stores th
  106. June 2024, Paper 2, Q1 (1 mark): Tick (ü) one box to complete this sentence. A validation check to make sure that an email address contains an ‘@’ sign is a A range check. B visual check. C pre
  107. June 2024, Paper 2, Q4(a) (4 marks): Identify the line numbers of four errors in the pseudocode and suggest corrections. Error 1 line number Correction Error 2 line number Correction Error 3 line n
  108. June 2024, Paper 2, Q4(c) (4 marks): Explain how you should alter the original corrected algorithm to make sure that all the numbers entered are between 1 and 500 inclusive. If any numbers fall out
  109. June 2024, Paper 2, Q6(a) (7 marks): Complete the trace table for the input data: 7, 47, 50, 52, 60, 80, 63, 70 Numbers Limit Count [1] [2] [3] [4] [5] [6] [7] Flag Swap Result OUTPUT [7]
  110. June 2024, Paper 2, Q6(b) (3 marks): Outline the processes involved in the algorithm shown in the flowchart on page 6. [3]
  111. June 2024, Paper 2, Q10 (15 marks): The one-dimensional (1D) array Clubs[] is used to store the names of 12 cricket clubs in a local sports league. The two-dimensional (2D) array Statistics[] is u
  112. June 2024 (variant 2), Paper 2, Q1 (1 mark): Tick (✓) one box to identify a method used to design and construct a solution to a computing problem. A analysis B coding C flowchart D testing [1]
  113. June 2024 (variant 2), Paper 2, Q3 (3 marks): Identify three different tasks in the analysis stage of the program development life cycle. 1 2 3 [3]
  114. June 2024 (variant 2), Paper 2, Q4(a) (6 marks): Identify three validation checks and state how each check would make sure the product code met one of these rules. Check 1 Check 2 Check 3 [6]
  115. 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]
  116. 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]
  117. June 2024 (variant 2), Paper 2, Q6(a) (4 marks): Write an algorithm in pseudocode to total the numbers input and to output the total. You do not need to validate the input. [4]
  118. June 2024 (variant 2), Paper 2, Q6(b) (4 marks): Write an algorithm in pseudocode to count and output the number of input values that are greater than 100. You do not need to validate the input. [4]
  119. June 2024 (variant 2), Paper 2, Q7(b) (3 marks): Identify the line numbers of the three errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Corr
  120. June 2024 (variant 2), Paper 2, Q9(a) (5 marks): The array List[1:5] used in the flowchart contains this data: List[1] List[2] List[3] List[4] List[5] 15 17 20 5 9 9 ,  , Complete the trace table us
  121. June 2024 (variant 2), Paper 2, Q9(b) (2 marks): Describe what the algorithm represented by the flowchart is doing.
  122. June 2024 (variant 2), Paper 2, Q11 (15 marks): A one-player game uses the two-dimensional (2D) array Grid[] to store the location of a secret cell to be found by the player in 10 moves. Each row and column h
  123. June 2024 (variant 3), Paper 2, Q1 (1 mark): Tick (3) one box to complete this sentence. This flowchart symbol A represents a subroutine. B represents a decision. C represents an input/output. D represents
  124. June 2024 (variant 3), Paper 2, Q4(a) (4 marks): Identify the line numbers of the four errors in the pseudocode and suggest corrections. Error 1 line number Correction Error 2 line number Correction Error 3 li
  125. June 2024 (variant 3), Paper 2, Q4(c) (4 marks): Explain how you could alter the original corrected algorithm to make sure that the number of elements being added to the array does not exceed the maximum size
  126. June 2024 (variant 3), Paper 2, Q5(a) (6 marks): Complete the trace table for the input data: 10, 30, 18, 8, 25, 12, 17, 2, 50, 15, 5 L S T A Limit Count Value OUTPUT [6]
  127. June 2024 (variant 3), Paper 2, Q5(b) (2 marks): Outline the purpose of the algorithm. [2]
  128. June 2024 (variant 3), Paper 2, Q6(a) (3 marks): Give examples of normal, abnormal and extreme test data that could be used to make sure the program only accepts valid data. Normal test data Abnormal test data
  129. June 2024 (variant 3), Paper 2, Q6(b) (2 marks): Describe what is meant by extreme test data. [2]
  130. June 2024 (variant 3), Paper 2, Q9 (15 marks): A one-dimensional (1D) array Teams[] contains the names of 10 football teams in a local league. A two-dimensional (2D) array Results[] stores, for each team, th
  131. March 2024, Paper 2, Q1 (1 mark): Tick (✓) one box to show which task is part of the analysis stage of the program life cycle. A coding B decomposition C design D testing [1]
  132. March 2024, Paper 2, Q2(a) (4 marks): Four test data types and five descriptions are shown. Draw one line to link each test data type to its most appropriate description. Test data type Description
  133. March 2024, Paper 2, Q2(b) (4 marks): An algorithm has been written to test if an integer that is input is in the range 5 to 10 inclusive. Identify an example of suitable test data for each test dat
  134. March 2024, Paper 2, Q3(a) (4 marks): Write an algorithm in pseudocode to input a number, MyNumber, and use a linear search to test if that number is stored in the array. If the number is found in t
  135. March 2024, Paper 2, Q3(b) (4 marks): Write an algorithm in pseudocode to sort the array Values[1:50] into ascending order using a bubble sort. [4]
  136. March 2024, Paper 2, Q5(a) (3 marks): Identify the line numbers of three errors in the pseudocode and suggest corrections. Error 1 line number Correction Error 2 line number Correction Error 3 line
  137. March 2024, Paper 2, Q5(b)(i) (3 marks): Write pseudocode to reject the input of values less than zero for variables Cost and Sell [3]
  138. March 2024, Paper 2, Q5(b)(ii) (4 marks): Describe two other validation checks that should be included in this algorithm. Check 1 Check 2 [4]
  139. March 2024, Paper 2, Q8 (4 marks): This flowchart represents an algorithm to find the average size of groups of visitors to an attraction. START NumberGroups 0 Total 0 INPUT GroupSize IS Yes Grou
  140. March 2024, Paper 2, Q11 (15 marks): Students in a class are recording the amount of time in minutes spent in front of a screen for each day of the week. The one-dimensional (1D) array StudentName[
  141. November 2023, Paper 2, Q5(a) (2 marks): Describe what is meant by abstraction. [2]
  142. November 2023, Paper 2, Q5(b) (3 marks): Identify three of the component parts when a problem has been decomposed at the analysis stage. 1 2 3 [3]
  143. November 2023, Paper 2, Q5(c) (2 marks): Identify and describe one other stage of the program development life cycle. [2]
  144. November 2023, Paper 2, Q6(a) (1 mark): State the purpose of this pseudocode algorithm. [1]
  145. November 2023, Paper 2, Q6(b) (4 marks): State four processes in this algorithm. 1 2 3 4 [4]
  146. November 2023, Paper 2, Q8(a) (1 mark): State the name of the validation check. [1]
  147. November 2023, Paper 2, Q8(b) (6 marks): Complete the flowchart for this algorithm. START STOP [6]
  148. November 2023, Paper 2, Q8(c) (4 marks): Give two different sets of test data for this algorithm and state the purpose of each set. Set 1 Purpose Set 2 Purpose [4]
  149. November 2023, Paper 2, Q8(d) (3 marks): Complete the headings for the trace table to show a dry-run for this algorithm. You do not need to trace the algorithm. [3]
  150. November 2023, Paper 2, Q8(e) (2 marks): Describe an improvement that should be made to the requirements for this algorithm. [2]
  151. November 2023, Paper 2, Q10 (15 marks): Drama students put on a performance of a play for one evening. Seats in a small theatre can be booked for this performance. The theatre has 10 rows of 20 seats.
  152. November 2023 (variant 2), Paper 2, Q1 (1 mark): Tick (✓) one box to complete the sentence. Verification is used to make sure that a value entered A has not changed during input. B is an integer. C is correct.
  153. November 2023 (variant 2), Paper 2, Q2(a) (1 mark): State the type of validation check used. [1]
  154. November 2023 (variant 2), Paper 2, Q2(b) (4 marks): Give one example of normal test data and one example of abnormal test data you should use to make sure the check in part (a) is working properly. State a reason
  155. November 2023 (variant 2), Paper 2, Q2(c) (2 marks): Describe how a length check could be used with the date entered. [2]
  156. November 2023 (variant 2), Paper 2, Q3(b) (4 marks): A one‑dimensional (1D) array called Temperatures[] has 25 elements beginning at index 1. It holds values that range between –20 and 100 inclusive. Write a pseud
  157. November 2023 (variant 2), Paper 2, Q4(a) (4 marks): Identify the four errors in the pseudocode and suggest corrections. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction [4]
  158. November 2023 (variant 2), Paper 2, Q4(b) (5 marks): Describe the changes you should make to the corrected algorithm to allow the name of a country to be input and to display only the stored cities from that count
  159. November 2023 (variant 2), Paper 2, Q6(a) (5 marks): Complete the trace table for the input data: 25, 35, 3, 0, 57, 20, 25, 18, 0, –1, 307, 40, 0 Value Average Total Count OUTPUT [5]
  160. November 2023 (variant 2), Paper 2, Q6(b) (2 marks): Describe the purpose of the algorithm. [2]
  161. November 2023 (variant 2), Paper 2, Q11 (15 marks): A wood flooring company stores the names of up to 100 customers in a one‑dimensional (1D) array Customers[]. A two‑dimensional (2D) array Quotations[] stores de
  162. November 2023 (variant 3), Paper 2, Q1 (1 mark): Tick (3) one box to show which term is an example of a verification check. A Double entry check B Format check C Length check D Presence check [1]
  163. November 2023 (variant 3), Paper 2, Q4(a) (2 marks): Give the names of two validation checks that are required for this program. 1 2 [2]
  164. November 2023 (variant 3), Paper 2, Q4(b) (5 marks): Complete this pseudocode to perform your two validation checks, using your answers given in (a): OUTPUT "Please enter the number of seats you want to book " INP
  165. November 2023 (variant 3), Paper 2, Q4(c) (2 marks): Give one item of test data to use when testing this program. State the reason for your choice of test data. Test data Reason for choice [2]
  166. November 2023 (variant 3), Paper 2, Q5(a) (3 marks): Identify the three errors in the pseudocode and suggest corrections. Error 1 Correction Error 2 Correction Error 3 Correction [3]
  167. November 2023 (variant 3), Paper 2, Q5(b) (6 marks): Complete this flowchart for the corrected algorithm: START STOP [6]
  168. November 2023 (variant 3), Paper 2, Q8(a) (5 marks): Complete the trace table using this data: Y, Y, Y, N, Y, Y, Y, Y, N, Y, Y, Y, Y Accept Reject PartOK Error OUTPUT [5]
  169. November 2023 (variant 3), Paper 2, Q8(b) (3 marks): Describe how the algorithm should be changed to accept ‘Y’ or ‘y’ for a successfully manufactured part. [3]
  170. November 2023 (variant 3), Paper 2, Q10 (15 marks): A weather station takes temperature readings once an hour for a week. These temperatures are stored in a two-dimensional (2D) array Temperatures[] Each column c
  171. June 2023, Paper 2, Q1(a) (4 marks): Four descriptions of stages in the program development life cycle are shown. Draw one line to link each description to its most appropriate program development
  172. June 2023, Paper 2, Q1(b) (3 marks): Identify three of the component parts after a problem has been decomposed. 1 2 3 [3]
  173. June 2023, Paper 2, Q3(a) (2 marks): Describe what is meant by data validation. [2]
  174. June 2023, Paper 2, Q3(b) (6 marks): A validation check is used to make sure that any value that is input is an integer between 30 and 200 inclusive. Give one example of each type of test data to c
  175. June 2023, Paper 2, Q5(a) (4 marks): Identify the four errors in the pseudocode and suggest a correction for each error. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction
  176. 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
  177. June 2023, Paper 2, Q7(a) (4 marks): Complete the trace table for the algorithm by using the input data: F, Y, D, N Pointer Letter Choice OUTPUT [4]
  178. June 2023, Paper 2, Q7(b) (1 mark): Identify the type of algorithm used. [1]
  179. June 2023, Paper 2, Q7(c) (2 marks): Describe one problem that could occur with this algorithm if an invalid character was input. [2]
  180. June 2023, Paper 2, Q11 (15 marks): A one-dimensional (1D) array Days[] contains the names of the days of the week. A two-dimensional (2D) array Readings[] is used to store 24 temperature readings
  181. June 2023 (variant 2), Paper 2, Q1 (1 mark): Tick (✓) one box to identify the first stage of the program development life cycle. A Analysis B Coding C Design D Testing [1]
  182. June 2023 (variant 2), Paper 2, Q3 (3 marks): Identify three different ways that the design of a solution to a problem can be presented. 1 2 3 [3]
  183. June 2023 (variant 2), Paper 2, Q4(a) (3 marks): Describe the validation checks that the programmer would need to use. [3]
  184. June 2023 (variant 2), Paper 2, Q4(b)(i) (1 mark): State why this check needs to be included. [1]
  185. June 2023 (variant 2), Paper 2, Q4(b)(ii) (3 marks): The input value needs to be stored in the variable Measurement Write pseudocode to perform the double entry check until a successful input is made. [3]
  186. June 2023 (variant 2), Paper 2, Q7(b) (3 marks): Identify the three errors in the pseudocode and suggest a correction for each error. Error 1 Correction Error 2 Correction Error 3 Correction [3]
  187. June 2023 (variant 2), Paper 2, Q7(c) (4 marks): The algorithm does not check that each input is a single digit. Identify the place in the algorithm where this check should occur. Write pseudocode for this che
  188. June 2023 (variant 2), Paper 2, Q9(a) (5 marks): The array X[1:5] used in the flowchart contains this data: X[1] X[2] X[3] X[4] X[5] 10 1 5 7 11 Complete the trace table by using the data given in the array. F
  189. June 2023 (variant 2), Paper 2, Q9(b) (2 marks): Describe what the algorithm represented by the flowchart is doing. [2]
  190. June 2023 (variant 2), Paper 2, Q12 (15 marks): A two-dimensional (2D) array Account[] contains account holders’ names and passwords for a banking program. A 2D array AccDetails[] has three columns containing
  191. June 2023 (variant 3), Paper 2, Q4(a) (2 marks): Explain why verification checks are used when data is input. [2]
  192. June 2023 (variant 3), Paper 2, Q4(b) (4 marks): Give two types of verification check and state how each one can be used. Verification check 1 Use Verification check 2 Use [4]
  193. June 2023 (variant 3), Paper 2, Q5(a) (4 marks): Four descriptions of validation checks are shown. Draw one line to link each description to the most appropriate check. Not all checks will be used. Description
  194. June 2023 (variant 3), Paper 2, Q5(b) (3 marks): Write an algorithm in pseudocode to make sure that an input for the variable Length is between 15 and 35 inclusive. The code must iterate until a valid input ha
  195. June 2023 (variant 3), Paper 2, Q6(a) (4 marks): Identify the four errors in the pseudocode and suggest corrections. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction [4]
  196. 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
  197. June 2023 (variant 3), Paper 2, Q7(a) (6 marks): Complete the trace table for the input data: 5, 50, 52, 555, 57, 500, –1, 5500, 55 Total Value Five1 Five2 Ten1 Ten2 OUTPUT [6]
  198. June 2023 (variant 3), Paper 2, Q7(b) (2 marks): Describe the purpose of the algorithm. [2]
  199. June 2023 (variant 3), Paper 2, Q11 (15 marks): A two-dimensional (2D) array Contacts[] is used to store names and telephone numbers. All the data is stored as strings. The array must have the capacity to sto
  200. March 2023, Paper 2, Q2(b) (5 marks): Write an algorithm in pseudocode, using a single loop, to output the average of 50 numbers that have been stored in the array Number[] [5]
  201. March 2023, Paper 2, Q3 (3 marks): Describe the purpose of test data. Include an example of a type of test data in your answer. Description Example [3]
  202. March 2023, Paper 2, Q5 (4 marks): A food ordering system is an example of a computer system that is made up of sub-systems. The food ordering system: • allows the user to enter the details of th
  203. March 2023, Paper 2, Q6(a) (3 marks): Identify the three errors in the pseudocode and suggest corrections. Error 1 Correction Error 2 Correction Error 3 Correction [3]
  204. March 2023, Paper 2, Q8(a) (4 marks): Complete the trace table using this data: 5.50, 3.40, 6.25, 3.85, –11.00, 0 NumberSales Total SaleValue Average OUTPUT [4]
  205. March 2023, Paper 2, Q8(b) (3 marks): Identify the error in the algorithm and describe how to correct it. Error Correction [3]
  206. March 2023, Paper 2, Q11 (15 marks): The one-dimensional (1D) array TeamName[] contains the names of teams in a sports league. The two-dimensional (2D) array TeamPoints[] contains the points awarde
  207. November 2022, Paper 2, Q1(b) (2 marks): Explain how your program removed the members that have not paid their fees from the system in Task 3. [2]
  208. November 2022, Paper 2, Q1(c) (6 marks): Write an algorithm for the part of Task 3 that checks the age of all the members, and whether they are in a team, then updates the type of membership and the an
  209. November 2022, Paper 2, Q1(d) (5 marks): Explain how your program completes these parts of Task 2: • Count the number of members of each membership type who did not pay the annual fee. • Display these
  210. November 2022, Paper 2, Q2(a) (6 marks): Complete the pseudocode algorithm: 01 FOR Count 1 TO O2 Reading[Count] 0 03 NEXT Count 04 OUTPUT "Please enter next reading " 05 INPUT Value 06 WHILE Value <> -
  211. November 2022, Paper 2, Q2(b) (3 marks): Describe how the algorithm could be changed so that it does not output any counts of zero. [3]
  212. November 2022, Paper 2, Q3(a) (6 marks): A PIN (personal identification number) is input into a banking app by the user. Before the PIN is accepted, the following validation checks are performed: • che
  213. November 2022, Paper 2, Q3(b) (3 marks): The PIN can be changed by the user. Describe how the new PIN could be verified before use. [3] 11 Question 4 starts on page 12.
  214. November 2022, Paper 2, Q4(a) (4 marks): Complete the trace table for the algorithm using this input data: 24, 12, 6, 30, 12, 18, –1, 24 Sold Stock Total OUTPUT [4]
  215. November 2022, Paper 2, Q4(b) (3 marks): Identify the problem that will occur if the input data starts with a value of 70. Explain how you would correct this problem. [3]
  216. November 2022 (variant 2), Paper 2, Q1(b) (3 marks): Describe how your program could validate the input for the day number within the two-week period to make sure an appropriate value is entered (part of Task 1).
  217. November 2022 (variant 2), Paper 2, Q1(c) (6 marks): Write an algorithm to show how your program allocates a parking space if the visitor requires accessible parking (part of Task 2), including all relevant input
  218. November 2022 (variant 2), Paper 2, Q1(d) (3 marks): Explain how your program in Task 2 could be altered so that bookings can be made for any time over a four-week period instead of the current two-week period. An
  219. November 2022 (variant 2), Paper 2, Q1(e) (4 marks): Explain how your program records and outputs the number of accessible and general parking spaces used for the two-week period (part of Task 3). Any programming
  220. November 2022 (variant 2), Paper 2, Q3 (3 marks): Describe the use of verification on input of data when entering a list of items in stock into a database. Explain why verification is necessary. [3]
  221. November 2022 (variant 2), Paper 2, Q4 (2 marks): Describe one type of test data that must be used to test if a program accepts valid input data. [2]
  222. November 2022 (variant 2), Paper 2, Q5(a) (4 marks): Identify the four errors in the pseudocode and suggest a correction for each error. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction
  223. 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
  224. November 2022 (variant 2), Paper 2, Q6 (5 marks): This flowchart represents an algorithm to divide three-digit numbers into hundreds, tens and units. The pre-defined function DIV gives the value of the result o
  225. November 2022 (variant 3), Paper 2, Q1(b) (3 marks): Explain how your program allowed only two floors or three floors to be chosen but not both. [3]
  226. November 2022 (variant 3), Paper 2, Q1(c) (6 marks): Write an algorithm for the part of Task 2 that calculates the total cost of the bill. Assume that the customer details and services required have already been i
  227. November 2022 (variant 3), Paper 2, Q1(d) (5 marks): Explain how your program completed Task 3. Any programming statements that you include in your answer must be fully explained. [5]
  228. November 2022 (variant 3), Paper 2, Q2(a) (6 marks): Complete the pseudocode algorithm: 01 FOR Count 1 TO 02 Reading[Count] 0 03 NEXT Count 04 Count 1 05 OUTPUT "Please enter next reading " 06 INPUT Value 07 REPEA
  229. November 2022 (variant 3), Paper 2, Q2(b) (3 marks): Describe how the algorithm could be changed to output the number of times each value has been input, starting with the highest value. [3]
  230. November 2022 (variant 3), Paper 2, Q3(a)(i) (1 mark): Calculate the check digit for 69321 [1] Working space
  231. November 2022 (variant 3), Paper 2, Q3(a)(ii) (2 marks): State which of these identification numbers have incorrect check digits. A 123455 B 691400 C 722855 D 231200 [2] Working space
  232. November 2022 (variant 3), Paper 2, Q3(b)(i) (2 marks): Describe an input error that would not be found using this check digit. [2]
  233. November 2022 (variant 3), Paper 2, Q3(b)(ii) (2 marks): Describe a more suitable algorithm to calculate the check digit for this identification number. [2]
  234. November 2022 (variant 3), Paper 2, Q3(c) (2 marks): Identify two other validation checks that could be used when inputting this identification number. 1 2 [2]
  235. November 2022 (variant 3), Paper 2, Q4(a) (4 marks): Complete the trace table for the algorithm using this input data: “Y”, “Y”, “Y”, “Y”, “Y”, “Y”, “N” Stock Total Sale OUTPUT [4]
  236. November 2022 (variant 3), Paper 2, Q4(b) (3 marks): Explain how you could extend the algorithm to allow for the sale of more than one wheelbarrow at a time. [3]
  237. June 2022, Paper 2, Q1(b) (3 marks): Explain how you could change your program in Task 1 to total all the money collected from new members who have paid. [3]
  238. June 2022, Paper 2, Q1(c) (3 marks): Describe how data input in Task 1 could be validated to find out if a new member wants to work as a volunteer. [3]
  239. June 2022, Paper 2, Q1(d) (5 marks): Write an algorithm to show how your program completes Task 3 assuming the option to sponsor a wooden plank has been chosen, using pseudocode, programming statem
  240. June 2022, Paper 2, Q1(e) (4 marks): Explain how your program allows any one of the member or volunteer lists to be selected and displayed (part of Task 2). Any programming statements used in your
  241. June 2022, Paper 2, Q3 (4 marks): Give one piece of normal test data and one piece of erroneous test data that could be used to validate the input of an email address. State the reason for your
  242. June 2022, Paper 2, Q4(a) (6 marks): Complete this flowchart: START PassCount 0 FailCount 0 Count 0 Yes No Count Count + 1 No Yes END [6]
  243. June 2022, Paper 2, Q4(b) (4 marks): Write a pseudocode routine that will check that each test result entered into the algorithm is between 0 and 100 inclusive. [4]
  244. June 2022, Paper 2, Q5(a) (5 marks): Complete the trace table for the algorithm using this input data: 8, 66, 606, 6226, 8448, 642, 747, 77, 121 Counter Value First Last Limit OUTPUT [5]
  245. June 2022, Paper 2, Q5(b) (2 marks): Describe the purpose of the algorithm. [2]
  246. June 2022 (variant 2), Paper 2, Q1(b) (3 marks): Explain how your program showed the days available for booking in Task 1. [3]
  247. June 2022 (variant 2), Paper 2, Q1(c) (2 marks): Explain how your program made sure that each booking number allocated in Task 2 was unique. [2]
  248. June 2022 (variant 2), Paper 2, Q1(d) (6 marks): Write an algorithm for the part of Task 2 that inputs the tickets and extra attractions required then calculates the total cost of the booking. Assume that the
  249. June 2022 (variant 2), Paper 2, Q1(e) (3 marks): Explain how your program decides when a family ticket is better value in Task 3. Any programming statements that you include in your answer must be fully explai
  250. June 2022 (variant 2), Paper 2, Q2(a) (3 marks): Identify the three errors in the pseudocode and suggest a correction to remove each error. Error 1 Correction Error 2 Correction Error 3 Correction [3]
  251. June 2022 (variant 2), Paper 2, Q2(b) (4 marks): The algorithm includes two types of check on the data input. Identify and describe each type of check. Type of check 1 Description Type of check 2 Description [
  252. June 2022 (variant 2), Paper 2, Q2(c) (4 marks): Give two sets of test data for this algorithm and a reason for choosing each set. Each set of test data and its reason must be different. Set 1 Reason Set 2 Rea
  253. June 2022 (variant 2), Paper 2, Q3(b) (2 marks): Explain how indexing could be used to search for a value stored in a one-dimensional array. [2]
  254. June 2022 (variant 2), Paper 2, Q4(a) (7 marks): Complete the trace table for the algorithm using this input data: 75, 78, 84, 87, 91, 80, 75, 70, 65, 62, –1, 20 Counter Hot Cold Serve Temp Error OUTPUT [7]
  255. June 2022 (variant 2), Paper 2, Q4(b) (1 mark): State how the final output from the algorithm could be improved. [1]
  256. June 2022 (variant 2), Paper 2, Q4(c) (1 mark): Identify the process in the algorithm that is not required. [1]
  257. June 2022 (variant 3), Paper 2, Q1(b) (2 marks): Describe how you could test if the validation of the input to choose a meeting room works (Task 2). [2]
  258. June 2022 (variant 3), Paper 2, Q1(c) (4 marks): Explain how your program in Task 2 could be altered to allow a 30% discount on bookings for the same meeting room of two to six days, inclusive. [4]
  259. June 2022 (variant 3), Paper 2, Q1(d) (6 marks): Write an algorithm to show how your program completes the following parts of Task 2: • output the booking details and cost of the booking • take confirmation fr
  260. June 2022 (variant 3), Paper 2, Q1(e) (4 marks): Explain how your program selects a meeting room, finds and then outputs the days when it is available (part of Task 3). Any programming statements used in your
  261. June 2022 (variant 3), Paper 2, Q2 (4 marks): Tick (3) one or more boxes in each row to match the type(s) of test data to each description. Types of test data Description Erroneous / Boundary Extreme Normal
  262. June 2022 (variant 3), Paper 2, Q4(a) (7 marks): Complete the trace table for the algorithm using this input data: 5, 9, 5, 8, 10, 7 Store In Logic Test Number Count Limit Out OUTPUT [Count] [7]
  263. June 2022 (variant 3), Paper 2, Q4(b) (2 marks): State the purpose of this algorithm. [2]
  264. June 2022 (variant 3), Paper 2, Q4(c) (3 marks): This algorithm only works for numbers that are 3 or greater. Describe how you could change this algorithm to make sure that only numbers that are 3 or greater a
  265. June 2022 (variant 3), Paper 2, Q5 (6 marks): The flowchart shows an algorithm that should: • allow 100 numbers to be entered into the variable Number • total the numbers as they are entered • output the to
  266. March 2022, Paper 2, Q1(b) (4 marks): Describe how your program set the scores to zero before each round for Task 1. [4]
  267. March 2022, Paper 2, Q1(c) (6 marks): Write an algorithm for Task 2, using pseudocode, programming statements or a flowchart.
  268. March 2022, Paper 2, Q1(d) (4 marks): Explain how your program completed part of Task 3 to identify the winner and to display their name and the winning score relative to par. All programming statem
  269. March 2022, Paper 2, Q2(a) (4 marks): Complete the pseudocode algorithm: 01 Count7to12 ← 0 02 Count12to18 ← 0 03 CountOver18 ← 0 04 FOR Student ← 1 TO 05 OUTPUT "Please enter student's age in years
  270. 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
  271. March 2022, Paper 2, Q3 (4 marks): Four validation checks and five descriptions are shown. Draw a line from each validation check to the most appropriate description. Validation check Description
  272. March 2022, Paper 2, Q4(a) (6 marks): Complete the trace table for the given algorithm using this input data: 7, 6, 5, 4, –1, 12, 34 Number C D OUTPUT [6]
  273. March 2022, Paper 2, Q4(b) (2 marks): Describe the purpose of this algorithm. [2]
  274. March 2022, Paper 2, Q4(c)(i) (2 marks): Describe the problem that occurs if a whole number smaller than 4 and not equal to –1 is input. [2]
  275. March 2022, Paper 2, Q4(c)(ii) (2 marks): Explain how to change the flowchart to prevent this problem occurring. [2]
  276. November 2021, Paper 2, Q1(c) (3 marks): Explain how your program generates a unique 4-digit code for each booking. [3]
  277. November 2021, Paper 2, Q1(d) (6 marks): Write an algorithm for Task 2. You do not need to display updated court availability. Use either pseudocode, programming statements or a flowchart. Assume that
  278. November 2021, Paper 2, Q1(e) (4 marks): Explain how your program completed the part of Task 3 which calculates the total number of squash court bookings, finds the court(s) with the most bookings and
  279. November 2021, Paper 2, Q2(a) (4 marks): Find the four errors in the pseudocode and write a correction for each error. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction [4]
  280. November 2021, Paper 2, Q3(a)(i) (4 marks): State suitable examples of normal and erroneous test data that could be used to test this program. For each example give the reason for your choice of test data
  281. November 2021, Paper 2, Q3(a)(ii) (3 marks): Explain why two pieces of boundary test data are required for this program. Give an example of each piece of boundary test data. [3]
  282. November 2021, Paper 2, Q3(b) (3 marks): Explain why verification is needed and how verification could be performed by this program. [3] 11 Question 4 starts on Page 12
  283. November 2021, Paper 2, Q4 (5 marks): The algorithm shown by this flowchart allows the input of examination marks for a class of students. A mark of –1 ends the process. If a mark is 80 or over then
  284. November 2021 (variant 2), Paper 2, Q1(b) (3 marks): Describe how you could validate the data entry for the input of the codes for the different stages of the journey in Task 2. [3]
  285. November 2021 (variant 2), Paper 2, Q1(c) (6 marks): Write an algorithm to show how your program carries out Task 3, using either pseudocode, programming statements or a flowchart. Assume Tasks 1 and 2 have alread
  286. November 2021 (variant 2), Paper 2, Q1(d) (4 marks): Explain how your program could be changed to count and store the number of bookings made by each passenger. Then, after ten bookings have been made by a passeng
  287. November 2021 (variant 2), Paper 2, Q2 (3 marks): Tick (3) one box in each row to identify if the statement is about validation, verification or neither. Validation Verification Neither Statement (3) (3) (3) a
  288. November 2021 (variant 2), Paper 2, Q3 (6 marks): A program checks that the data entered is between 1 and 100 inclusive. Identify one piece of normal, extreme and erroneous test data for this program, and give
  289. November 2021 (variant 2), Paper 2, Q4(a) (5 marks): Find the five errors in the pseudocode and suggest a correction for each error. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction Erro
  290. November 2021 (variant 2), Paper 2, Q4(b) (5 marks): The algorithm needs changing to allow only the numbers 1, 2, 3, or 4 to be entered for the input variable Operator. Write the pseudocode to perform this task an
  291. November 2021 (variant 2), Paper 2, Q5 (5 marks): The flowchart represents an algorithm. The algorithm will terminate if –1 is entered at the List input. START List1 ← 0 List2 ← 0 INPUT List Yes IS List = –1 ?
  292. November 2021 (variant 3), Paper 2, Q1(c) (3 marks): Sometimes the restaurant has fewer tables available for a session. Explain how you would change your Task 1 program to allow input of the number of tables avail
  293. November 2021 (variant 3), Paper 2, Q1(d) (6 marks): Part of Task 2 is to check if a table is available. Write an algorithm to do this, using either pseudocode, programming statements or a flowchart. Assume that T
  294. November 2021 (variant 3), Paper 2, Q1(e) (4 marks): Explain how your program for Task 3 updated Task 2. Include any programming statements used and fully explain the purpose of each statement. [4]
  295. November 2021 (variant 3), Paper 2, Q2(a) (4 marks): Find the four errors in the pseudocode and write a correction for each error. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction [4]
  296. November 2021 (variant 3), Paper 2, Q3(a)(i) (4 marks): State suitable examples of normal and erroneous test data that could be used to test this program. For each example give the reason for your choice of test data
  297. November 2021 (variant 3), Paper 2, Q3(a)(ii) (3 marks): Explain why two pieces of boundary test data are required for this program. Give an example of each piece of boundary test data. [3]
  298. November 2021 (variant 3), Paper 2, Q3(b) (4 marks): Describe two methods of verification that could be used to verify this data as it is input. Method 1 Method 2 [4]
  299. November 2021 (variant 3), Paper 2, Q4 (5 marks): The algorithm, shown by this flowchart, allows the input of examination marks for a class of students. A mark of 999 ends the process. If a mark is 40 or over t
  300. June 2021, Paper 2, Q1(b) (4 marks): Explain how you should change your program in Task 1 to allow a tutor to enter up to eight candidates for the election. [4]
  301. June 2021, Paper 2, Q1(c) (5 marks): Write an algorithm using pseudocode, programming statements or a flowchart to show how your program completes these parts of Task 2: • Allows students to enter
  302. June 2021, Paper 2, Q1(d) (4 marks): Explain how your program completes these parts of Task 3: • Calculate the percentage of the votes that each candidate received from the number of votes cast, ex
  303. June 2021, Paper 2, Q2 (3 marks): Tick (ü) one box in each row to identify if the statement is about validation, verification or both. Validation Verification Both Statement (ü) (ü) (ü) Entering
  304. June 2021, Paper 2, Q4(a) (3 marks): Describe what happens in this algorithm. [3]
  305. June 2021, Paper 2, Q4(c) (3 marks): Describe how you could change the algorithm to allow teachers to use it with any size of class. [3]
  306. June 2021, Paper 2, Q5(a) (4 marks): Complete the trace table for the input data: 50, 75, 99, 28, 82, 150, –1, 672, 80 Value Diff1 Diff2 OUTPUT [4]
  307. June 2021, Paper 2, Q5(b) (2 marks): Describe the purpose of the algorithm. [2]
  308. June 2021 (variant 2), Paper 2, Q1(b) (6 marks): Describe two validation checks that could be used when inputting the number of tickets to buy for Task 2. For each validation check give one example of normal d
  309. June 2021 (variant 2), Paper 2, Q1(c) (6 marks): Write an algorithm for the part of Task 2 that inputs the tickets required, calculates the total price for the ticket(s) purchased by a passenger including a gr
  310. June 2021 (variant 2), Paper 2, Q1(d) (5 marks): Explain how your program completed Task 3. Include any programming statements that you have used and fully explain the purpose of each statement. [5]
  311. June 2021 (variant 2), Paper 2, Q2(a) (6 marks): Write an algorithm in pseudocode to input 500 positive whole numbers. Each number input must be less than 1000. Find and output the largest number input, the sm
  312. June 2021 (variant 2), Paper 2, Q2(b) (2 marks): Describe how the algorithm could be changed to make testing less time-consuming. [2]
  313. June 2021 (variant 2), Paper 2, Q3(a) (3 marks): Draw the most appropriate flowchart symbol for each pseudocode statement. Pseudocode statement Flowchart symbol IF Number = 20 PRINT Number Number ← Number + 1
  314. June 2021 (variant 2), Paper 2, Q4(a) (3 marks): Complete the trace table for the algorithm using this input data: Secret, Secret, VerySecret, VerySecret, Pa55word, Pa55word, 999, 888 Password PasswordRepeat O
  315. June 2021 (variant 2), Paper 2, Q4(b) (4 marks): Explain how the algorithm could be extended to allow three attempts at inputting the matching password. Any pseudocode statements used in your answer must be fu
  316. June 2021 (variant 3), Paper 2, Q1(b) (6 marks): Write an algorithm for Task 2, using pseudocode, programming statements or a flowchart. It is not necessary to show details completed in Task 1.
  317. June 2021 (variant 3), Paper 2, Q1(c) (2 marks): Explain how you could change your program in Task 1 to allow the number of options available to be increased to six. [2]
  318. June 2021 (variant 3), Paper 2, Q1(d) (3 marks): Explain how your program counts the number of times students enter preference 1 (‘strongly agree’) for each option (A to E), part of Task 3. Any programming sta
  319. June 2021 (variant 3), Paper 2, Q3 (6 marks): Identify a suitable validation check that could be used for each piece of normal test data and describe how it would be used. Each validation check must be diff
  320. June 2021 (variant 3), Paper 2, Q4(a) (4 marks): Identify the four errors in the pseudocode and suggest a correction for each error. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction
  321. June 2021 (variant 3), Paper 2, Q4(b) (4 marks): Show how you could change the algorithm to store the individual scores in the array ScoreArray[], then find and print the average score once the scores have all
  322. June 2021 (variant 3), Paper 2, Q5(a) (5 marks): Complete the trace table for the algorithm using this input data: 1, 87, 14, 3, 2, 30, 5, 10, 6, 4, 10, 2, 0, 2, 90, 6 Op Value1 Value2 Ans OUTPUT [5]
  323. June 2021 (variant 3), Paper 2, Q5(b) (1 mark): State the purpose of the algorithm. [1]
  324. June 2021 (variant 3), Paper 2, Q5(c) (1 mark): Suggest an addition that could be made to the algorithm to make it more useful. [1]
  325. 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
  326. March 2021, Paper 2, Q1(c) (6 marks): Write an algorithm for Task 1, using either pseudocode, programming statements or a flowchart.
  327. March 2021, Paper 2, Q1(d) (4 marks): Explain how your program completed Task 3. Include any programming statements that you have added to Task 1 and fully explain the purpose of each statement. [4]
  328. March 2021, Paper 2, Q1(e) (3 marks): Explain how you could alter Task 1 to change the quiz to: • display three alternative answers for each question • allow the student to choose one of these answe
  329. March 2021, Paper 2, Q2(a) (4 marks): Give the line number for the statements showing: Totalling Counting Range check Calculating the average [4]
  330. March 2021, Paper 2, Q2(b) (3 marks): State an example for each type of test data needed to test the input of the number: Normal test data example Erroneous/abnormal test data example Extreme test d
  331. March 2021, Paper 2, Q2(c) (4 marks): The algorithm needs to be changed to include finding and outputting the smallest number input. Describe how you would change the algorithm. [4]
  332. March 2021, Paper 2, Q3 (4 marks): Four pseudocode statements and three flowchart symbols are shown. Draw a line from each pseudocode statement to its correct flowchart symbol. Pseudocode stateme
  333. March 2021, Paper 2, Q4(a) (7 marks): Complete a trace table for the given algorithm using this input data: 1.05, 0.99, 1.2, 0.85, 1.1, 0.9, 1.5, 0.95, 1.05, 1.00, 1.07, 0.89, –10 BagWeight Accept O
  334. March 2021, Paper 2, Q4(b) (2 marks): There is an error in this algorithm. Identify the error and write the corrected pseudocode statement. Error Correction [2]
  335. November 2020, Paper 2, Q1(b) (4 marks): Data entered by a customer includes the age of the driver in Task 1. Identify two different validation checks you could use for the age of the driver. Justify y
  336. November 2020, Paper 2, Q1(c) (6 marks): Write an algorithm for Task 2, using either pseudocode, programming statements or a flowchart. Assume that Task 1 has been completed. [6]
  337. November 2020, Paper 2, Q1(d)(i) (4 marks): Explain how your program completed Task 3. Assume that Task 2 has been completed. Any programming statements used in your answer must be fully explained. [4]
  338. 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
  339. November 2020, Paper 2, Q3(b) (4 marks): Give the line numbers of the four errors in this pseudocode. Suggest a correction for each error. Error 1 line number Correction Error 2 line number Correction
  340. November 2020, Paper 2, Q3(c) (4 marks): Explain how you could extend the algorithm to calculate and display the average weight of a bag of firewood in the load. [4]
  341. November 2020, Paper 2, Q4(a) (4 marks): Complete the trace table for this set of input data: 5, 4, 6, 2, 1, 9, 3, 2, 1, 6, 7, 6, 1, 5, 1, 0, 0, 0, 0, 0 V W X Y Z A B OUTPUT [4]
  342. November 2020, Paper 2, Q4(b) (2 marks): Describe the purpose of this flowchart. [2]
  343. November 2020 (variant 2), Paper 2, Q1(c) (6 marks): Write an algorithm to show how you completed Task 1, using either pseudocode, programming statements or a flowchart. It is not necessary to show initialisation
  344. November 2020 (variant 2), Paper 2, Q1(d) (4 marks): Explain how your program completes Task 3. Any programming statements used in your answer must be fully explained. [4]
  345. November 2020 (variant 2), Paper 2, Q1(e) (2 marks): Describe how you could alter your program to allow more than one computer to be bought. [2]
  346. November 2020 (variant 2), Paper 2, Q3 (6 marks): This pseudocode algorithm is used as a validation check. PRINT "Input a number from 1 to 5000" REPEAT INPUT Number IF Number < 1 OR Number > 5000 THEN PRINT "In
  347. November 2020 (variant 2), Paper 2, Q4 (6 marks): This pseudocode algorithm allows 5000 numbers to be entered and stored in an array called Number. FOR Count 1 TO 5000 INPUT Number[Count] NEXT Count Extend and
  348. November 2020 (variant 2), Paper 2, Q5(a) (5 marks): The contents of the array at the start of the algorithm are: Num[0] Num[1] Num[2] Num[3] Num[4] 45 56 30 12 15 Complete the trace table for the algorithm using
  349. November 2020 (variant 2), Paper 2, Q5(b) (2 marks): Describe the purpose of the algorithm. [2]
  350. November 2020 (variant 2), Paper 2, Q6 (2 marks): Draw a flowchart symbol to represent each of the following: Input/Output Decision [2] Question 7 starts on Page 12.
  351. November 2020 (variant 3), Paper 2, Q1(b)(i) (5 marks): Write an algorithm to allow a customer to choose the filling and salad items for their baguette (part of Task 1), using either pseudocode, programming statement
  352. November 2020 (variant 3), Paper 2, Q1(b)(ii) (3 marks): Explain how your algorithm in part (b)(i) ensured that only valid choices were accepted for the filling. [3]
  353. November 2020 (variant 3), Paper 2, Q1(c) (2 marks): Explain how you would need to change your program for Task 1 if there were three sizes of baguette to choose from (15 cm, 20 cm and 30 cm). [2]
  354. November 2020 (variant 3), Paper 2, Q1(d) (4 marks): Explain how your program completed Task 3. Assume that Task 2 has been completed. Any programming statements used in your answer must be fully explained. [4]
  355. November 2020 (variant 3), Paper 2, Q2(b) (4 marks): Give line numbers where the four errors are to be found in the pseudocode. Suggest a correction for each error. Error 1 line number Correction Error 2 line numb
  356. November 2020 (variant 3), Paper 2, Q2(c) (4 marks): Explain how you could extend the algorithm to count the number of times the temperature readings are within the range –18 degrees to –25 degrees inclusive. [4]
  357. November 2020 (variant 3), Paper 2, Q4(a) (4 marks): Complete a trace table for this set of input data: 11, 4, 6, 2, 3, 9, 3, 2, 2, 6, 0, 0, 1, 1 Y Z A OUTPUT [4]
  358. November 2020 (variant 3), Paper 2, Q4(b) (2 marks): Explain the purpose of this algorithm. [2]
  359. June 2020, Paper 2, Q1(c) (5 marks): Write an algorithm to show how you input your choice of mobile device and SIM card (part of Task 1), using either pseudocode, programming statements or a flowch
  360. June 2020, Paper 2, Q1(d) (5 marks): Explain how your program completes Task 3. Any programming statements used in your answer must be fully explained. [5]
  361. June 2020, Paper 2, Q2 (2 marks): Tick (ü) one box in each row to identify if the statement about structure diagrams is true or false. True False Statement (ü) (ü) A structure diagram is a piece
  362. June 2020, Paper 2, Q3(a) (4 marks): Give the names of two different validation checks and state the purpose of each one. Check 1 Purpose Check 2 Purpose [4]
  363. June 2020, Paper 2, Q3(b) (1 mark): Give the name of one verification check. [1]
  364. June 2020, Paper 2, Q3(c) (2 marks): Describe the difference between validation and verification. [2]
  365. June 2020, Paper 2, Q4(a) (2 marks): Explain why the algorithm will never end. [2]
  366. June 2020, Paper 2, Q4(b) (4 marks): Re-write the original pseudocode so that it terminates correctly and also prevents numbers below 100 from being stored in the array Values[ ] [4]
  367. June 2020, Paper 2, Q4(c) (2 marks): Describe how you could change your pseudocode in part (b) so that it prevents numbers below 100 and above 200 from being stored in the array Values[ ] [2]
  368. June 2020, Paper 2, Q5(a) (4 marks): Complete the trace table for the input data: 50, 33, 18, 15, 30, –1, 45, 12, 90, 6 Value Calc1 Calc2 OUTPUT [4]
  369. June 2020, Paper 2, Q5(b) (2 marks): Describe the purpose of the algorithm. [2]
  370. June 2020 (variant 2), Paper 2, Q1(b) (4 marks): Data input by a customer for Task 1 includes the day and the hour of arrival. Identify one suitable validation check for each input and justify your choice. You
  371. June 2020 (variant 2), Paper 2, Q1(c) (4 marks): Explain how your program for Task 1 ensured that the frequent parking number entered by the customer had a valid check digit. [4]
  372. June 2020 (variant 2), Paper 2, Q1(d) (4 marks): Write an algorithm for part of Task 2 that simulates customer payment and calculating total payments using either pseudocode, programming statements or a flowch
  373. June 2020 (variant 2), Paper 2, Q1(e) (4 marks): Explain how your program completed Task 3. Assume that Task 2 has been completed. Any programming statements used in your answer must be fully explained. [4]
  374. June 2020 (variant 2), Paper 2, Q3(a) (4 marks): An algorithm has been written in pseudocode to input the names and marks of 35 students. The algorithm stores the names and marks in two arrays Name[ ] and Mark
  375. June 2020 (variant 2), Paper 2, Q3(b) (6 marks): Explain how you could extend the algorithm to also find the lowest mark awarded, count the number of students with that mark, and output both these values. [6]
  376. June 2020 (variant 2), Paper 2, Q4(a) (3 marks): Complete a trace table for this set of input data: 5000, 4474, 6055, 2000, 7900, 9800, 3000, 2150, –1, 6700, 7615 PointsWon PointsLost Difference OUTPUT [3]
  377. June 2020 (variant 2), Paper 2, Q4(b) (3 marks): The flowchart needs to be changed. When the difference is more than 5000 the output message is ‘Fantastic leap up two levels’. Describe the changes that will ne
  378. 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
  379. March 2020, Paper 2, Q1(c) (4 marks): Snazzy Autos has decided to add another model to the cars available in Task 1. The new model is a convertible, price Rs 6.75 lakh. Explain the changes required
  380. March 2020, Paper 2, Q1(d) (5 marks): Write an algorithm for Task 2, using either pseudocode, programming statements or a flowchart. Assume that Task 1 has been completed. [5]
  381. March 2020, Paper 2, Q1(e) (4 marks): Explain how your program completed Task 3. Assume that Task 2 has been completed. Any programming statements used in your answer must be fully explained. [4]
  382. March 2020, Paper 2, Q2(a) (4 marks): An algorithm has been written in pseudocode to input 50 numbers. Positive numbers are stored in the array PosNum[ ]. Negative numbers are stored in the array Ne
  383. 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
  384. March 2020, Paper 2, Q3(a) (5 marks): Complete a trace table for each set of input data: Set 1: 88, 74, 60 Mark1 Mark2 Mark3 Total Average OUTPUT Set 2: 20, 33, 67 Mark1 Mark2 Mark3 Total Average OU
  385. March 2020, Paper 2, Q3(b) (3 marks): It has been decided to include an extra grade of Merit when the average of the marks is 60% or more, and less than 80%. Describe the changes that will need to b
  386. March 2020, Paper 2, Q4 (4 marks): Explain why validation and verification checks are needed when data is input. Include an example of each type of check in your answer. [4] 13 Question 5 starts
  387. November 2019, Paper 2, Q1(c) (5 marks): Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. Assume Task 1 has been completed.
  388. November 2019, Paper 2, Q1(d) (3 marks): Explain how your program completes Task 3. Any programming statements you use in your answer must be fully explained. [3]
  389. November 2019, Paper 2, Q1(e) (4 marks): Name two validation checks that could be used when entering patio dimensions in Task 1 or Task 2 and describe their purpose. Validation check 1 Purpose Validati
  390. 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
  391. November 2019, Paper 2, Q3(a) (3 marks): Describe what happens in this pseudocode. [3]
  392. 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]
  393. November 2019, Paper 2, Q3(c) (5 marks): Re-write the given pseudocode to allow any number of values to be input. [5]
  394. November 2019, Paper 2, Q4(a) (6 marks): Complete the trace table for this algorithm using the given input data. Index 0 FOR Count 0 TO 7 INPUT Value IF Value > 50 THEN PassMarks[Index] Value Index Ind
  395. November 2019, Paper 2, Q4(b) (1 mark): Give the purpose of the algorithm shown in part (a). [1]
  396. November 2019 (variant 2), Paper 2, Q1(b) (3 marks): Explain how you calculated the volume of a concrete slab in Task 1. [3]
  397. November 2019 (variant 2), Paper 2, Q1(c) (5 marks): Write an algorithm for Task 2, using either pseudocode, programming statements or a flowchart. Assume that Task 1 has been completed.
  398. November 2019 (variant 2), Paper 2, Q1(d) (4 marks): Explain how you changed your program for Task 1 to meet the requirements for Task 3. Include and fully explain any altered or additional programming statements.
  399. November 2019 (variant 2), Paper 2, Q2 (4 marks): An algorithm has been written in pseudocode to select a random number using the function RandInt(n), which returns a whole number between 1 and the argument n.
  400. November 2019 (variant 2), Paper 2, Q3(a) (4 marks): The flowchart checks the lengths of a batch of 10 ropes. For the batch to be accepted 90% of the lengths need to be between 24.9 and 25.1 metres. START Reject 0
  401. November 2019 (variant 2), Paper 2, Q3(b)(i) (1 mark): It has been decided to only reject batches of rope that contain ropes that are too short. State the change required to the algorithm. [1]
  402. November 2019 (variant 2), Paper 2, Q3(b)(ii) (2 marks): Explain how the algorithm to reject batches could be improved to make it more effective. [2]
  403. November 2019 (variant 2), Paper 2, Q4 (3 marks): Four validation checks and four descriptions are shown. Draw a line to connect each validation check to the correct description. Validation Check Description Ra
  404. November 2019 (variant 2), Paper 2, Q5 (4 marks): A programmer writes a program to weigh baskets of fruit in grams, keeping a total of the weight and counting the number of baskets. The total weight is stored i
  405. November 2019 (variant 3), Paper 2, Q1(c) (6 marks): Write an algorithm for Task 1, using either pseudocode, programming statements or a flowchart. Assume that the first part of Task 1, the storage and display of
  406. November 2019 (variant 3), Paper 2, Q1(d) (3 marks): Explain how you extended your program to complete Task 2. Any programming statements you use in your answer must be fully explained. [3]
  407. November 2019 (variant 3), Paper 2, Q1(e) (3 marks): Explain how you could validate the input for percentage waste allowance in Task 3. [3]
  408. November 2019 (variant 3), Paper 2, Q5(a) (6 marks): Complete the trace table for the input data: 10 First Last UserIn Middle Found OUTPUT [6]
  409. November 2019 (variant 3), Paper 2, Q5(b) (2 marks): Describe the function being performed by the algorithm. [2]
  410. November 2019 (variant 3), Paper 2, Q6 (4 marks): Draw four different flowchart symbols and describe how they are used in a program flowchart. Flowchart symbol Description of use [4]
  411. June 2019, Paper 2, Q1(b) (6 marks): Write an algorithm to show how you calculated and output the number of late arrivals and the average number of minutes late for each bus route (part of Task 2),
  412. June 2019, Paper 2, Q1(c) (3 marks): Explain how your program uses the input in Task 3 to only find the data for that specific day (part of Task 3). Any programming statements used in your answer m
  413. June 2019, Paper 2, Q4(a) (1 mark): Give a name for this type of validation check. [1]
  414. June 2019, Paper 2, Q4(b) (2 marks): Describe what is happening in this validation check. [2]
  415. June 2019, Paper 2, Q4(c) (3 marks): Complete the trace table for this program code using the test data: 200, 300, –1, 50, 60 Value OUTPUT [3]
  416. June 2019, Paper 2, Q4(d) (5 marks): Draw a flowchart to represent this section of program code. [5]
  417. June 2019 (variant 2), Paper 2, Q1(b) (2 marks): Explain how your program for Task 1 ensures the item number is unique. [2]
  418. June 2019 (variant 2), Paper 2, Q1(c) (5 marks): Write an algorithm for the part of Task 2 that allows the buyer to add a new bid, using either pseudocode, programming statements or a flowchart. Assume that Ta
  419. June 2019 (variant 2), Paper 2, Q1(d) (3 marks): Explain how your program for Task 2 checks that a new bid is higher than previous bids for an item. [3]
  420. June 2019 (variant 2), Paper 2, Q1(e) (5 marks): Explain how your program identifies the items that have reached their reserve price, then calculates and displays the total auction company fee for all sold ite
  421. June 2019 (variant 2), Paper 2, Q2(a) (4 marks): An algorithm has been written in pseudocode to input 100 numbers, select and print the largest number and smallest number. Count 1 INPUT Number High Number Low
  422. 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]
  423. June 2019 (variant 2), Paper 2, Q3 (4 marks): This flowchart inputs the marks gained in an examination. An input of –1 ends the routine. START Total 0 Count 0 Distinction 0 INPUT Mark Yes Is Mark = –1 ? Tot
  424. June 2019 (variant 2), Paper 2, Q5 (6 marks): Explain what is meant by validation and verification. Give an example for each one. Validation Example Verification Example [6]
  425. June 2019 (variant 3), Paper 2, Q1(b) (2 marks): Explain how your program for Task 1 ensures all the item codes are different. [2]
  426. June 2019 (variant 3), Paper 2, Q1(c) (3 marks): Explain how your program for Task 2 highlights items where the stock level is low. [3]
  427. June 2019 (variant 3), Paper 2, Q1(d) (5 marks): Write an algorithm for Task 2 using either pseudocode, programming statements or a flowchart. Assume that Task 1 has been completed and the list of items curren
  428. June 2019 (variant 3), Paper 2, Q1(e) (5 marks): Explain how your program completes Task 3. Any programming statements used in your answer must be fully explained. [5] 7 Question 2 begins on page 8.
  429. June 2019 (variant 3), Paper 2, Q2(a) (4 marks): An algorithm has been written in pseudocode to input the weight of 500 items and reject any that are over-weight or under-weight, then print the percentage reje
  430. June 2019 (variant 3), Paper 2, Q2(b) (4 marks): Describe how you would change the corrected algorithm to calculate the number accepted instead of rejected, using a variable Accept, and print a warning if fewe
  431. June 2019 (variant 3), Paper 2, Q3 (4 marks): This flowchart inputs the tread depth of five tyres, four on the car and a spare tyre. Any tread depth of 1.6 mm or less is rejected. To be potentially roadwort
  432. June 2019 (variant 3), Paper 2, Q4 (4 marks): For each of the four checks in the table, place a tick in the correct column to show whether it is an example of a validation or verification check. Statements
  433. March 2019, Paper 2, Q1(b) (2 marks): Explain how you would need to change your program for Task 1 if there were three bases to choose from (thick, thin and extra crispy). [2]
  434. March 2019, Paper 2, Q1(c)(i) (5 marks): Write an algorithm for choosing the additional toppings in Task 1, using either pseudocode, programming statements or a flowchart. Your algorithm must only incl
  435. March 2019, Paper 2, Q1(c)(ii) (3 marks): Explain how your algorithm in part (c)(i) only allowed valid choices for the additional pizza toppings. [3]
  436. March 2019, Paper 2, Q1(d) (4 marks): Explain how your program completed Task 3. Any programming statements used in your answer must be fully explained. [4]
  437. March 2019, Paper 2, Q2(a) (4 marks): An algorithm has been written in pseudocode to input 50 numbers and total only the positive numbers. Count ← 1 Total ← Count REPEAT INPUT Number IF Number <> 0
  438. 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.
  439. March 2019, Paper 2, Q3 (5 marks): This flowchart inputs the type of passenger for a survey: S for Senior, A for Adult, C for Child. All other values are ignored, apart from Z which ends the proc
  440. March 2019, Paper 2, Q5(a) (2 marks): State whether this is called validation or verification. Name the check that needs to be used. [2]
  441. March 2019, Paper 2, Q5(b) (9 marks): State three different types of test data the programmer would need to use. Give an example of each type and the reason that the programmer chose that test data.
  442. November 2018, Paper 2, Q1(b) (5 marks): Write an algorithm to enter each item code and quantity. Then when the order is completely entered, generate a unique order code (part of Task 2), using either
  443. 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
  444. November 2018, Paper 2, Q1(d) (3 marks): State three items of test data you could use in Task 3 to test the input of the percentage profit value and explain why you chose them. Your reasons must be dif
  445. 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
  446. November 2018, Paper 2, Q3 (6 marks): Describe, giving a different example for each, the purpose of these validation checks used in programming. Range check Example Length check Example Type check E
  447. November 2018, Paper 2, Q4(a) (3 marks): Describe the purpose of the algorithm. [3]
  448. November 2018, Paper 2, Q4(c) (2 marks): Describe how you could modify the original algorithm shown at the start of question 4, to allow any number of inputs. [2] 11 Question 5 starts on page 12.
  449. November 2018, Paper 2, Q5(a) (2 marks): Complete the trace table for the input data: 7 Flag TestNum Num OUTPUT [2]
  450. November 2018, Paper 2, Q5(b) (2 marks): Complete the trace table for the input data: 6 Flag TestNum Num OUTPUT [2]
  451. November 2018, Paper 2, Q5(c) (1 mark): State the purpose of the algorithm in the flowchart. [1]
  452. November 2018 (variant 2), Paper 2, Q1(b) (4 marks): Explain how you ensured that each identification number entered in Task 1 was unique and included a correct check digit. [4]
  453. November 2018 (variant 2), Paper 2, Q1(c) (4 marks): Write an algorithm for Task 2, using either pseudocode, programming statements or a flowchart. You should assume that Task 1 has already been completed.
  454. November 2018 (variant 2), Paper 2, Q1(d) (4 marks): Explain how your program identifies and outputs the names and times of the fastest runner for each age range in Task 3. Any programming statements used in your
  455. November 2018 (variant 2), Paper 2, Q2(a) (5 marks): Write an algorithm, using pseudocode, to input three different numbers, multiply the two larger numbers together and output the result. Use the variables: Numbe
  456. November 2018 (variant 2), Paper 2, Q2(b) (4 marks): Give two sets of test data to use with your algorithm in part (a) and explain why you chose each set. Test data set 1 Reason Test data set 2 Reason [4]
  457. 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
  458. November 2018 (variant 2), Paper 2, Q5(a) (6 marks): Complete the trace tables for each set of input data. Input data: 6, 2.5, 2 Height Depth Chlorine OK OUTPUT Input data: 4, 3, 1.5 Height Depth Chlorine OK OUTPU
  459. November 2018 (variant 2), Paper 2, Q5(b) (1 mark): Identify a problem with the algorithm that the flowchart represents. [1]
  460. November 2018 (variant 3), Paper 2, Q1(b) (4 marks): Write an algorithm to show how your program finds and displays the weeks available for each log cabin and its capacity (part of Task 2), using either pseudocode
  461. November 2018 (variant 3), Paper 2, Q1(c) (4 marks): Describe how you could validate the input to identify a log cabin in Task 2. State one valid and one invalid item of data to test your validation method. Valida
  462. November 2018 (variant 3), Paper 2, Q1(d) (4 marks): Explain how your program performs Task 3. Any programming statements used in your answer must be fully explained. [4]
  463. November 2018 (variant 3), Paper 2, Q4(a) (3 marks): There are three errors in this code. State the line numbers that contain the errors and describe how to correct each error. Error 1 Error 2 Error 3 [3]
  464. November 2018 (variant 3), Paper 2, Q4(b) (1 mark): State the purpose of this program. [1]
  465. November 2018 (variant 3), Paper 2, Q5(a) (4 marks): Complete the trace table for the input data: 7 Fib Prev2 Prev1 Number OUTPUT [4]
  466. November 2018 (variant 3), Paper 2, Q5(b) (2 marks): Complete the trace table for the input data: 2 Fib Prev2 Prev1 Number OUTPUT [2]
  467. June 2018, Paper 2, Q1(b) (2 marks): Explain how your program for Task 1 produces a unique estimate number. [2]
  468. June 2018, Paper 2, Q1(c) (5 marks): Write an algorithm for part of Task 2 to check that the chosen processor and chosen RAM are in stock, using either pseudocode, programming statements or a flowc
  469. June 2018, Paper 2, Q1(d) (5 marks): Explain how your program completes Task 3. Any programming statements used in your answer must be fully explained. [5]
  470. June 2018, Paper 2, Q2(a) (6 marks): Write an algorithm to input 1000 numbers. Count how many numbers are positive and how many numbers are zero. Then output the results. Use either pseudocode or a
  471. June 2018, Paper 2, Q2(b) (1 mark): Give one change you could make to your algorithm to ensure initial testing is more manageable. [1] Question 3 starts on page 8.
  472. June 2018, Paper 2, Q3(a) (5 marks): Complete the trace table for the input data: 5, 7, 0, 1, 2, 3, 4 Digit(1) Digit(2) Digit(3) Digit(4) Digit(5) Digit(6) Digit(7) Digit(8) Sum OUTPUT Complete the
  473. June 2018, Paper 2, Q3(b) (3 marks): Explain how you would change the algorithm to input eight digits (seven digits and the check digit) and output if the check digit entered is correct or not. [3]
  474. June 2018, Paper 2, Q4 (3 marks): A programmer has written a routine to check that prices are below $10.00. These values are used as test data. 10.00 9.99 ten Explain why each value was chosen.
  475. 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
  476. June 2018, Paper 2, Q6(b) (2 marks): Give two validation checks that could be performed on the Show Number field. Validation check 1 Validation check 2 [2]
  477. June 2018 (variant 2), Paper 2, Q1(b) (2 marks): Explain how your program for Task 1 ensures that each 3-digit identity code is unique. [2]
  478. June 2018 (variant 2), Paper 2, Q1(c) (5 marks): Write an algorithm for Task 2, using either pseudocode, programming statements or a flowchart. Assume that Task 1 has been completed. [5]
  479. June 2018 (variant 2), Paper 2, Q1(d)(i) (5 marks): Explain how your program for Task 3 finds the cows with a daily yield of less than 12 litres of milk for four days or more in the week. Any programming statemen
  480. June 2018 (variant 2), Paper 2, Q2(a) (6 marks): Draw a flowchart for an algorithm to input numbers. Reject any numbers that are negative and count how many numbers are positive. When the number zero is input,
  481. June 2018 (variant 2), Paper 2, Q2(b) (2 marks): Explain the changes you will make to your algorithm to also count the negative numbers. [2] Question 3 starts on Page 8.
  482. June 2018 (variant 2), Paper 2, Q3(a) (3 marks): Complete the trace table for the input data: 5, 7, +, 6, 2, –, 4, 3, *, 7, 8, ?, 0, 0, / Number1 Number2 Sign Answer OUTPUT [3]
  483. June 2018 (variant 2), Paper 2, Q4(a) (4 marks): The programmer has chosen to verify the name, email address and password. Explain why verification was chosen and describe how the programmer would verify this
  484. June 2018 (variant 2), Paper 2, Q4(b) (2 marks): The programmer has also decided to validate the email address and the password. Describe validation checks that could be used. Email address Password [2]
  485. June 2018 (variant 2), Paper 2, Q5 (3 marks): A program checks that the weight of a basket of fruit is over 1.00 kilograms and under 1.10 kilograms. Weights are recorded to an accuracy of two decimal places
  486. June 2018 (variant 3), Paper 2, Q1(b) (6 marks): Write an algorithm to perform the set up and ‘On Entry’ part of Task 1, using either pseudocode, programming statements or a flowchart. [6]
  487. June 2018 (variant 3), Paper 2, Q1(c) (4 marks): Explain how your program calculates if a car has overstayed the permitted parking time and how the charge is calculated and output (part of Task 3). Any program
  488. June 2018 (variant 3), Paper 2, Q1(d) (2 marks): One of the inputs required ‘On Exit’ in Task 1 is ticket number. State two items of suitable test data you could use to test your input validation and state why
  489. June 2018 (variant 3), Paper 2, Q2(a) (2 marks): Validation check [2]
  490. June 2018 (variant 3), Paper 2, Q2(b) (2 marks): Verification check [2]
  491. June 2018 (variant 3), Paper 2, Q3 (4 marks): This section of program code reads the contents of the array, totals the numbers and prints out the sum and average of the numbers. Assume the array is full. Co
  492. June 2018 (variant 3), Paper 2, Q4(a) (2 marks): Describe the purpose of the algorithm. [2]
  493. 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
  494. 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]
  495. June 2018 (variant 3), Paper 2, Q5(a) (3 marks): Complete the trace table for the input data: 6.30, 18.62, 50.01, 3.13, 2.05, 50.10, 40.35, 30.69, 0.85, 17.30 Max Counter Num OUTPUT [3]
  496. June 2018 (variant 3), Paper 2, Q5(b) (2 marks): Describe two different changes you should make to the flowchart to find the smallest number instead of the largest number. Change 1 Change 2 [2]
  497. March 2018, Paper 2, Q1(b) (2 marks): Explain how you would change your program for Task 2 if the maximum group size for each subject is increased to 25. [2]
  498. March 2018, Paper 2, Q1(c) (5 marks): Write an algorithm to complete Task 1, using either pseudocode, programming statements or a flowchart.
  499. March 2018, Paper 2, Q1(d) (5 marks): Explain how your program calculates the total number of spare places in Task 3. Any programming statements shown in your answer must be fully explained. [5]
  500. March 2018, Paper 2, Q2(a) (4 marks): Find the four errors in the pseudocode and suggest corrections. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction [4]
  501. 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]
  502. March 2018, Paper 2, Q3 (4 marks): This flowchart inputs the weight in kilograms of a passenger stepping into a lift. The lift can take a maximum of eight passengers or a maximum weight of 640 ki
  503. March 2018, Paper 2, Q4 (4 marks): A program checks if the weight of a baby is at least 2 kilograms. Give, with reasons, two different values of test data that could be used for the baby’s weight
  504. November 2017, Paper 2, Q1(b) (5 marks): Write an algorithm to complete Task 1, using either pseudocode, programming statements or a flowchart.
  505. November 2017, Paper 2, Q1(c) (4 marks): Describe how you could validate and test the inputs for Task 1. [4]
  506. November 2017, Paper 2, Q1(d) (4 marks): Explain how your program checks and displays whether any of the planes are available at a given time of the day (Task 2). Any programming statements used must b
  507. November 2017, Paper 2, Q2 (4 marks): This section of program code asks for 80 numbers between 100 and 1000 to be entered. It checks that the numbers are in the correct range, and stores them in an
  508. November 2017, Paper 2, Q3(a) (2 marks): Explain the difference between a validation check and a verification check. [2]
  509. November 2017, Paper 2, Q3(b) (2 marks): Describe, using an example, how data could be verified on data entry. [2]
  510. November 2017, Paper 2, Q5(a) (5 marks): The array used in the flowchart contains the following data: Name[1] Name[2] Name[3] Name[4] Jamal Amir Eve Tara Complete the trace table using the data given i
  511. November 2017, Paper 2, Q5(b) (2 marks): Describe what the algorithm represented by the flowchart is doing. [2] Question 6 begins on Page 12.
  512. November 2017 (variant 2), Paper 2, Q1(b) (6 marks): Give two different validation checks you could have used for data entry in Task 1. For each check explain why it could be used and provide a set of data for tes
  513. November 2017 (variant 2), Paper 2, Q1(c) (5 marks): Write an algorithm to complete Task 3, using either pseudocode, programming statements or a flowchart. You may assume Task 2 has been completed. [5]
  514. November 2017 (variant 2), Paper 2, Q1(d) (4 marks): Explain how your program finds out how many boats are available for hire (Task 2). Any programming statements used must be fully explained. [4]
  515. November 2017 (variant 2), Paper 2, Q2 (6 marks): Write an algorithm using either pseudocode or a flowchart, to: • input a positive integer • use this value to set up how many other numbers are to be input • in
  516. November 2017 (variant 2), Paper 2, Q5(a) (5 marks): This flowchart checks a batch of 10 rice sacks for weight. Sacks should weigh 50 kilograms each. Sacks weighing over 50.5 kilograms or less than 49.5 kilograms
  517. November 2017 (variant 2), Paper 2, Q5(b) (2 marks): The size of the batch has increased to 50 sacks. It has been decided to only reject sacks that are underweight. State the changes that need to be made to the fl
  518. November 2017 (variant 3), Paper 2, Q1(b) (5 marks): Write an algorithm to complete Task 1, using either pseudocode, programming statements or a flowchart.
  519. November 2017 (variant 3), Paper 2, Q1(c) (4 marks): Describe how you could validate and test the inputs for Task 1. [4]
  520. November 2017 (variant 3), Paper 2, Q1(d) (4 marks): Explain how your program checks and displays whether any of the planes are available at a given time of the day (Task 2). Any programming statements used must b
  521. November 2017 (variant 3), Paper 2, Q2 (4 marks): This section of program code asks for 80 numbers between 100 and 1000 to be entered. It checks that the numbers are in the correct range, and stores them in an
  522. November 2017 (variant 3), Paper 2, Q3(a) (2 marks): Explain the difference between a validation check and a verification check. [2]
  523. November 2017 (variant 3), Paper 2, Q3(b) (2 marks): Describe, using an example, how data could be verified on data entry. [2]
  524. November 2017 (variant 3), Paper 2, Q5(a) (5 marks): The array used in the flowchart contains the following data: Name[1] Name[2] Name[3] Name[4] Jamal Amir Eve Tara Complete the trace table using the data given i
  525. November 2017 (variant 3), Paper 2, Q5(b) (2 marks): Describe what the algorithm represented by the flowchart is doing. [2] Question 6 begins on Page 12.
  526. June 2017, Paper 2, Q1(b) (5 marks): Write an algorithm to complete Task 1, using either pseudocode, programming statements or a flowchart.
  527. June 2017, Paper 2, Q1(c)(i) (4 marks): Name and describe one suitable validation check you used for Task 1, and one suitable validation check for Task 2. Each check MUST be different. Task 1 Name Des
  528. June 2017, Paper 2, Q1(c)(ii) (4 marks): For each validation check in part (c)(i), give an example of suitable test data and explain why you chose the test data. Test data for (c)(i) Task 1 Reason for
  529. 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]
  530. June 2017, Paper 2, Q2 (4 marks): This section of program code asks for 50 numbers to be entered. The total and average of the numbers are calculated. 1 Total = 0 2 Counter = 50 3 PRINT ′When pr
  531. June 2017, Paper 2, Q3 (2 marks): A satellite navigation system works using destination details entered by the user, either a new destination or chosen from previously saved destinations. The sa
  532. June 2017, Paper 2, Q4 (4 marks): For each of the four statements in the table, place a tick in the correct column to show whether it is an example of validation or verification. Statements Vali
  533. June 2017, Paper 2, Q5(c) (3 marks): Write an algorithm, using pseudocode, to input a number between 0 and 100 inclusive. The algorithm should prompt for the input and output an error message if th
  534. June 2017, Paper 2, Q6 (5 marks): This flowchart inputs a range of temperatures in degrees Fahrenheit. As each temperature is input, it is compared with the previous highest temperature. If it i
  535. June 2017 (variant 2), Paper 2, Q1(b) (2 marks): Explain how you would need to change your calculation in Task 1 if each carer were paid $20.00 for coming on the outing. [2]
  536. June 2017 (variant 2), Paper 2, Q1(c) (5 marks): Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. You can assume that Task 1 has been completed. You do not
  537. June 2017 (variant 2), Paper 2, Q1(d) (4 marks): Explain how your program completes Task 3. Any programming statements used in your answer must be fully explained. [4]
  538. June 2017 (variant 2), Paper 2, Q2(a) (4 marks): Write an algorithm to input three different numbers, and then output the largest number. Use either pseudocode or a flowchart. [4]
  539. June 2017 (variant 2), Paper 2, Q2(b) (4 marks): Give two sets of test data to use with your algorithm in part (a) and explain why you chose each set. Test data set 1 Reason Test data set 2 Reason [4]
  540. June 2017 (variant 2), Paper 2, Q3 (5 marks): This flowchart inputs the weight of items in kilograms to be loaded on a trailer. Any item over 25 kilograms is rejected. The trailer can take up to 100 kilogra
  541. June 2017 (variant 2), Paper 2, Q4(a) (2 marks): Find the error in the pseudocode and suggest a correction. Error Correction [2]
  542. June 2017 (variant 3), Paper 2, Q1(b) (5 marks): Write an algorithm to complete Task 1, using either pseudocode, programming statements or a flowchart.
  543. June 2017 (variant 3), Paper 2, Q1(c)(i) (4 marks): Name and describe one suitable validation check you used for Task 1, and one suitable validation check for Task 2. Each check MUST be different. Task 1 Name Des
  544. June 2017 (variant 3), Paper 2, Q1(c)(ii) (4 marks): For each validation check in part (c)(i), give an example of suitable test data and explain why you chose the test data. Test data for (c)(i) Task 1 Reason for
  545. 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]
  546. June 2017 (variant 3), Paper 2, Q2 (4 marks): This section of program code asks for 50 numbers to be entered. The total and average of the numbers are calculated. 1 Total = 0 2 Counter = 50 3 PRINT ′When pr
  547. June 2017 (variant 3), Paper 2, Q3 (2 marks): A satellite navigation system works using destination details entered by the user, either a new destination or chosen from previously saved destinations. The sa
  548. June 2017 (variant 3), Paper 2, Q4 (4 marks): For each of the four statements in the table, place a tick in the correct column to show whether it is an example of validation or verification. Statements Vali
  549. June 2017 (variant 3), Paper 2, Q5(c) (3 marks): Write an algorithm, using pseudocode, to input a number between 0 and 100 inclusive. The algorithm should prompt for the input and output an error message if th
  550. June 2017 (variant 3), Paper 2, Q6 (5 marks): This flowchart inputs a range of temperatures in degrees Fahrenheit. As each temperature is input, it is compared with the previous highest temperature. If it i
  551. March 2017, Paper 2, Q1(b) (3 marks): Write an algorithm to complete Task 1 for the whole school, using either pseudocode, programming statements or a flowchart. DO NOT include any validation routin
  552. March 2017, Paper 2, Q1(c) (6 marks): Identify three different types of test data you used to test the validation checks on the age input in Task 1. For each type, give an example of appropriate dat
  553. March 2017, Paper 2, Q1(d) (5 marks): Explain how you calculated and outputted the average reaction time based on the user inputs of age and school house, as part of Task 3. Any programming statemen
  554. March 2017, Paper 2, Q1(e) (2 marks): Explain how you would change your solution to Task 3 to output the age of the student with the fastest reaction time. [2]
  555. March 2017, Paper 2, Q2 (4 marks): Read this section of code that inputs the ages of people entering an event. The input sequence is ended by inputting a negative value for age. The code outputs
  556. 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
  557. March 2017, Paper 2, Q4 (4 marks): Study the flowchart. START INPUT A OUTPUT B IS Yes B A B B + A C C – 1 A > 0 ? C A No IS C <= 1 ? OUTPUT Yes 'Exit' No END Complete the trace table for the inpu

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.