Past-paper question · 2013 October-November · Paper 23 · Q4

Question 4 2013 · October-November · Paper 23 · 14 marks

Original past-paper question for 4
Reveal official mark-scheme answer

Official answer for Question 4

Part (a)

–

✓
within the function
[1]

Mark scheme 9691_w13_ms_23.pdf →

Show text version of question

Question 4

[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).

[6]

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

[2]

(ii)

State what is meant by a run-time error and give an example.

Run-time error

Example

[2]

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

Topic relevance

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

Keep practising this topic