Past-paper question · 2015 October-November · Paper 22 · Q6(a)(ii)

Question 6(a)(ii) 2015 · October-November · Paper 22 · 1 mark

Original past-paper question for 6(A)(II)
Original past-paper question for 6(A)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 6(A)(II)

Official answer for Question 6

Part (a)

(ii)

(ii)

‘L’

[1]
✓
Note: quotes are optional – must be upper case L

Mark scheme 9608_w15_ms_22.pdf →

Show text version of question

Question 6

Part (a)

(ii)

Question 6

Some pseudocode statements follow which use the following built-in functions:

ONECHAR(ThisString : STRING, Position : INTEGER) RETURNS CHAR returns the single character at position Position (counting from the start of the string with value 1) from the string ThisString. For example: ONECHAR("Barcelona", 3) returns 'r'.

CHARACTERCOUNT(ThisString : STRING) RETURNS INTEGER returns the number of characters in the string ThisString. For example: CHARACTERCOUNT("South Africa") returns 12. Study the following pseudocode statements.

Give the values assigned to variables x and y.

(ii)

y ← ONECHAR("Sri Lanka", 5) y ..........................................

[1]
Topic relevance

Why this question appears here

82% assigned-topic match · Data types and structures › Data types and records

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

Keep practising this topic