Past-paper question · 2021 May-June · Paper 23 · Q3(c)

Question 3(c) 2021 · May-June · Paper 23 · 6 marks

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

Official answer for Question 3

Part (c)

✓
OnLine ← FALSE

Question 6

✓
WHILE Online = FALSE
✓
IF Active = TRUE
✓
THEN
✓
Call Sync()
✓
ELSE
✓
Call Reset()
✓
IF Active = FALSE
✓
THEN
✓
Call Error("No Signal")
✓
ELSE
✓
Online ← TRUE
✓
ENDIF
✓
ENDIF
✓
Call ReCheck()
✓
ENDWHILE
✓
1 mark for each of the following:

Question 1

✓
Initialise Online

Question 2

✓
WHILE .. ENDWHILE loop, terminated when Online = TRUE

Question 3

✓
IF Active = TRUE THEN .. ELSE .. ENDIF

Question 4

✓
Nested IF Active = FALSE THEN .. ELSE .. ENDIF

Question 5

✓
Call Sync() and Call Reset()and Call Error() and assignment to
✓
Online in appropriate place in pseudocode

Question 6

✓
Final call to ReCheck()in appropriate place
✓
9608/23
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s21_ms_23.pdf →

Show text version of question

Question 3

Part (c)

Part (c)

The program flowchart for part of an algorithm from a mobile phone program is shown.

Identifier Active is a global variable of type BOOLEAN.

START

Set Online to FALSE

Is Online = NO FALSE ?

YES END

Is Active = NO TRUE ?

YES CALL Reset() CALL Sync()

Is Active = YES FALSE ?

NO CALL Error("No Signal")

Set Online to TRUE

CALL ReCheck()

Question 7

Write pseudocode to implement the algorithm represented by the flowchart.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[6]

Question 8

Topic relevance

Why this question appears here

92% assigned-topic match · Algorithm design and problem-solving › Algorithms

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_s21_qp_23.pdf

Keep practising this topic