Past-paper question · 2019 October-November · Paper 21 · Q1(b)(ii)

Question 1(b)(ii) 2019 · October-November · Paper 21 · 4 marks

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

Official answer for Question 1

Part (b)

(ii)

✓
One mark per row

Question 4

✓
Expression
✓
Evaluates to
✓
LEFT("Start", 3) & RIGHT("Apple", 3)
✓
"Staple"
✓
MID("sample", 3, 5)
✓
ERROR
✓
NUM_TO_STRING(12.3 * 2)
✓
"24.6"
✓
INT(STRING_TO_NUM("53.4")) + 7

Question 60

✓
9608/21
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2019
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w19_ms_21.pdf →

Show text version of question

Question 1

Part (b)

(ii)

Question 1

Study the following pseudocode.

FUNCTION Search() RETURNS INTEGER DECLARE N, C : INTEGER DECLARE V, L : REAL V GetLevel() L V * 1.34

C
0

FOR N 1 TO 10 V GetLevel() IF V > L THEN

C
C + 1

ENDIF ENDFOR OUTPUT "Process complete" RETURN C ENDFUNCTION

(ii)

Evaluate each expression in the following table.

If an expression is invalid then write ‘ERROR’.

Refer to the Appendix on page 16–17 for the list of built-in functions and operators.

Expression Evaluates to

LEFT("Start", 3) & RIGHT("Apple", 3)

MID("sample", 3, 5)

NUM_TO_STRING(12.3 * 2)

INT(STRING_TO_NUM("53.4")) + 7

[4]

Question 5

Topic relevance

Why this question appears here

71% 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_w19_qp_21.pdf

Keep practising this topic