Past-paper question · 2015 May-June · Paper 22 · Q3(b)(i)
Question 3(b)(i) 2015 · May-June · Paper 22 · 7 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (b)
(i)
Part (b)
(i)
✓
Identifier
✓
Data Type
✓
Description
✓
PersonalBestTime
✓
INTEGER/REAL
✓
Personal best time in seconds
✓
meaningful name + data type
[1]
Show text version of question
Question 3
Part (b)
(i)
Question 3
11053
[6]
Question 5
Question 2
A
program displays a menu with choices 1 to 4. The code to display the menu is written as the
procedure DisplayMenu.
Part (b)
The following pseudocode is a revised design.
CONSTANT i
Question 3
CALL DisplayMenu NoOfAttempts 0 REPEAT OUTPUT "Enter choice (1..4)" INPUT Choice NoOfAttempts NoOfAttempts + 1 UNTIL (Choice >= 1 AND Choice <= 4) OR NoOfAttempts = i
(i)
Give the maximum number of inputs the user could be prompted to make. .............................................
[1]
Topic relevance
Why this question appears here
92% 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 9608_s15_qp_22.pdf
