Past-paper question · 2021 May-June · Paper 22 · Q1(d)

Question 1(d) 2021 · May-June · Paper 22 · 5 marks

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

Official answer for Question 1

Part (d)

Question 5

✓
Statement
✓
Error
✓
Code ← RIGHT("Cap" &
✓
NO ERROR
✓
"art", 4)
✓
Status ← MID("Computer",
✓
7, 5)
✓
Size ← LENGTH("Password")
✓
NO ERROR
✓
* 2
✓
CHR() param should be integer //
✓
NextChar ← CHR('A')
✓
CHR() should be ASC()
✓
3 is not character (should be ‘3’) //
✓
Index ← Index & 3
✓
and is not an arithmetic operator
✓
One mark for each line
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s21_ms_22.pdf →

Show text version of question

Question 1

Part (d)

Part (d)

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 page 18 for the list of built-in pseudocode functions and operators.

Statement Error

Code RIGHT("Cap" & "art", 4)

Status MID("Computer", 7, 5)

Size LENGTH("Password") * 2

NextChar CHR('A')

Index Index & 3

[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_22.pdf

Keep practising this topic