Past-paper question · 2021 May-June · Paper 21 · Q1(c)

Question 1(c) 2021 · May-June · Paper 21 · 5 marks

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

Official answer for Question 1

Part (c)

✓
One mark for each error

Question 5

✓
Statement
✓
Error
✓
Code ← LEFT("Cat", 4)
✓
Only 3 characters in string
✓
Status ← MID("Aardvark", 0, 5)
✓
Second parameter should start
✓
from 1
✓
Size ← LENGTH("Password)
✓
Missing closing quote /
✓
Opening quote should be
✓
removed
✓
Stock[n] ← Stock[n+1]
✓
NO ERROR / n may not be
✓
integer value / n out of bound
✓
Result ← 3 OR 4
✓
9608/21
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s21_ms_21.pdf →

Show text version of question

Question 1

Part (c)

Part (c)

Each pseudocode statement in the following table may contain an error due to the incorrect

use of the function or operator.

Describe the error in each case, or write ‘NO ERROR’ if the statement contains no error.

Refer to the Appendix on pages 22–23 for the list of built-in pseudocode functions and operators.

Statement Error

Code LEFT("Cat", 4)

Status MID("Aardvark", 0, 5)

Size LENGTH("Password)

Stock[n] Stock[n+1]

Result 3 OR 4

[5]

Question 4

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

Keep practising this topic