Past-paper question · 2015 May-June · Paper 22 · Q3(b)(ii)

Question 3(b)(ii) 2015 · May-June · Paper 22 · 7 marks

Original past-paper question for 3(B)(II)
Original past-paper question for 3(B)(II)
Original past-paper question for 3(B)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 3(B)(II)

Official answer for Question 3

Part (b)

(ii)

(ii)

Mark as follows:

✓
•
✓
Declarations/comments for variables – at least 2
✓
•
✓
Input (+ prompts) for hours, minutes, seconds
✓
•
✓
Input (+ prompt) of personal best time
✓
•
✓
Correct calculation of RaceTimeInSeconds (don’t allow use of ‘x’ for ‘*’)
✓
•
✓
Output RaceTimeInSeconds
✓
•
✓
Correct logic and output message for < personal best
✓
•
✓
Correct logic and output message for > personal best
✓
•
✓
Correct logic and output message for = personal best
✓
[max 7]

Mark scheme 9608_s15_ms_22.pdf →

Show text version of question

Question 3

Part (b)

(ii)

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

(ii)

State why this algorithm is an improvement on the one given in part (a). ........................................................................................................................................... .......................................................................................................................................[1]

Question 6

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

Keep practising this topic