Quelpr

Testing Algorithms · CSEC Information Technology

6 past-paper questions on Testing Algorithms, part of Problem-Solving and Program Design, from every CSEC Information Technology paper on Quelpr.

  1. 4(f)4 marks· CSEC Information Technology · 2022 · Paper 2Complete the trace table by inserting the missing values for the variables in EACH row representing the first THREE times the pseudocode loops.
  2. 12(c)(i)1 mark· CSEC Information Technology · January 2010 · Paper 1Given that MARK is 50, state the line number corresponding to the code above that would print a result.
  3. 12(c)(ii)1 mark· CSEC Information Technology · January 2010 · Paper 1Write the result that would be printed when MARK is 50.
  4. 9(b)8 marks· CSEC Information Technology · May/June 2013 · Paper 2Complete the trace table using the code provided in (a).
  5. Q551 mark · multiple choice· CSEC Information Technology · May/June 2017 · Paper 1Item 55 refers to the following pseudocode. Read A, B If A < 2 C ← 2 Else C ← 6 End if D ← C*B+2 Write D What is printed by the pseudocode if the input values are 5 and 2 respectively?
  6. Q471 mark · multiple choice· CSEC Information Technology · May/June 2018 · Paper 1Item 47 refers to the following pseudocode and trace table. a \leftarrow 7 b \leftarrow 1 For n \leftarrow 1 to 3 do a \leftarrow b + 1 b \leftarrow a + b \begin{tabular}{|c|c|c|} \hline \textbf{n} &…