Past-paper question · 2019 May-June · Paper 22 · Q1(b)(i)

Question 1(b)(i) 2019 · May-June · Paper 22 · 5 marks

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

Official answer for Question 1

Part (b)

(i)

Question 5

✓
Expression
✓
Evaluates to
✓
STRING_TO_NUM(RIGHT(ID, 3))
✓
234.0 / 234
✓
INT(Height * Children)

Question 11

✓
IsMarried AND Married < 31/12/1999
✓
TRUE
✓
LENGTH(ID & NUM_TO_STRING(Height))

Question 8

✓
MID((ID, INT(Height) – Children, 2)
✓
"23"
✓
No quotes for row 1
✓
Quotes (single or double) for row 5

Mark scheme 9608_s19_ms_22.pdf →

Show text version of question

Question 1

Part (b)

(i)

Program variables have values as follows:

Variable Value Married 03/04/1982 ID "M1234" MiddleInitial 'J' Height 5.6 IsMarried TRUE Children 2

(i)

Evaluate each expression in the following table.

If an expression is invalid, write ERROR.

For the built-in functions list, refer to the Appendix on page 16.

Expression Evaluates to STRING_TO_NUM(RIGHT(ID, 3)) INT(Height * Children) IsMarried AND Married < 31/12/1999 LENGTH(ID & NUM_TO_STRING(Height)) MID(ID, INT(Height) – Children, 2)

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

Keep practising this topic