Past-paper question · 2015 October-November · Paper 21 · Q1

Question 1 2015 · October-November · Paper 21 · 4 marks

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

Official answer for Question 1

(i)

40

[1]

(ii)

314.2(0)

[1]

(iii)

16 // ERROR as identifier Z has not been declared

[1]

(iv)

TRUE

[1]

Mark scheme 9608_w15_ms_21.pdf →

Show text version of question

Question 1

Computer programs have to evaluate expressions.

Study the sequence of pseudocode statements.

Write down the value assigned to each variable.

DECLARE h, w, r, Perimeter, Area : REAL DECLARE A, B, C, D, E : BOOLEAN

h ← 13.6 w ← 6.4 Perimeter ← (h + w) * 2

(i)

Perimeter ……………………………………

[1]

r ← 10 Area 3.142 * r^2

(ii)

Area …………………………………………………

[1]

Z ← 11 + r / 5 + 3

(iii)

Z …………………………………………………………

[1]
A
← NOT(r > 10)

(iv)

A …………………………………………………………

[1]
Topic relevance

Why this question appears here

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

Keep practising this topic