Past-paper question · 2019 May-June · Paper 21 · Q2(c)

Question 2(c) 2019 · May-June · Paper 21 · 3 marks

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

Official answer for Question 2

Part (c)

✓
One mark for:

Question 3

  • A CASE structure
✓
•
✓
Selecting on / using variable X
✓
•
✓
Calling ProcA if X = 15
✓
•
✓
Assigning a value of 0 to Y if X = 20 and assign 99 to Y if X = 25
✓
•
✓
Calling ProcError if no match (previous conditions not satisfied) // Call
✓
ProcError if x = NONE
✓
9608/21
✓
Cambridge International AS/A Level – Mark Scheme
✓
May/June 2019
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s19_ms_21.pdf →

Show text version of question

Question 2

Part (c)

Part (c)

The following lines of code are taken from a program in a high-level language.

ON x { 15: Call ProcA 20: y := 0 25: y := 99 NONE: Call ProcError }

Identify the type of control structure and describe the function of the code.

Control structure .......................................................................................................................

Description ................................................................................................................................

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

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

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

[3]

Question 5

Topic relevance

Why this question appears here

82% assigned-topic match · Programming › Constructs

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

Keep practising this topic