Question 11(f)(ii) 2013 · October-November · Paper 22 · 4 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 11
Part (f)
(ii)
Question 11
ENDIF
Question 9
Part (f)
Having entered a correct password, Aisha wants to present a menu screen.
For The user is to enter a number between 1 and 4 to make a choice. Examiner's Use • Option 1 - email • Option 2 - social network • Option 3 - schoolwork • Option 4 - favourite websites The number entered is to be stored in a variable, Choice. Each option calls an appropriate procedure.
(ii)
Rewrite your IF statements using a CASE/SELECT statement to implement the
For menu options. Examiner's Use
Question 14
Question 4
Aisha writes the following pseudocode for a recursive function that works out the greatest For common divisor of two positive integers: Examiner's Use 0 FUNCTION Divisor(x, y)
Question 1
IF y = 0
Question 2
THEN
Question 3
RETURN x
Question 4
ELSE
Question 5
x ← x MOD y
Question 6
RETURN Divisor(y, x)
Question 7
ENDIF
Question 8
ENDFUNCTION
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_22.pdf
