Question 4 2013 · October-November · Paper 23 · 14 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
–
Show text version of question
Question 4
Part (d)
Re-write the pseudocode using a REPEAT – UNTIL loop. Make use of the techniques
you used in your answer to part (c).
Question 16
Part (e)
Ashvin will perform dry runs on the pseudocode using a trace table and a variety of test For
data. He hopes to find any logic errors and avoid run-time errors occurring later. Examiner's Use
(i)
State what is meant by a logic error and give an example.
Logic error
Example
(ii)
State what is meant by a run-time error and give an example.
Run-time error
Example
Question 17
4 Ashvin is also learning about recursion. He writes the pseudocode for a recursive function. For Examiner's 1 FUNCTION Calc(X) Use 2 DECLARE Temp 3 IF X > 0 4 THEN
Why this question appears here
98% assigned-topic match · Computational thinking and problem-solving › Recursion
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_w13_qp_23.pdf
