Question 1(d) 2014 · May-June · Paper 22 · 10 marks
Reveal official mark-scheme answer

Official answer for Question 1
Part (d)
Part (d)
1 mark for each correctly labelled shape (accept full text instead of number)
Question 22
Show text version of question
Question 1
Part (d)
Question 1
A teacher wants to write a program to help young children learn their multiplication tables.
Part (d)
The function CheckAnswerCorrect gives the child three chances to type in the correct
answer. The function returns TRUE if the child typed the correct answer, and FALSE if all three attempts are incorrect.
Complete the flowchart opposite, using the given statements. Label each blank symbol with the correct statement number.
Question 5
FUNCTION CheckAnswerCorrect(Number1, Number2)
1 Output “Incorrect. Try again.” R Number1 * Number2 2 Output “Correct. Well done!” 3 Output “You need to practice more. The correct answer is ” R 4 Output “Type your answer.” 5 Return FALSE 6 Is NumberOfTries > 2 ? 7 Is AnswerNumber = R ? 8 Is AnswerString digits only ? 9 NumberOfTries 0 INPUT 10 NumberOfTries NumberOfTries + 1 AnswerString
No
Yes
Convert AnswerString to AnswerNumber
No
No
Yes Yes
Return TRUE
ENDFUNCTION
Question 6
Why this question appears here
71% assigned-topic match · Programming › Programming basics
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_s14_qp_22.pdf
