Past-paper question · 2019 October-November · Paper 22 · Q1(a)(i)

Question 1(a)(i) 2019 · October-November · Paper 22 · 3 marks

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

Official answer for Question 1

Part (a)

(i)

✓
Any three from:

Question 3

✓
1.
✓
Indentation
✓
2.
✓
Blank lines / white space
✓
3.
✓
Sensible identifier names / use of Camel Case for identifier names
✓
4.
✓
Capitalised keywords

Mark scheme 9608_w19_ms_22.pdf →

Show text version of question

Question 1

Part (a)

(i)

Question 1

Study the following pseudocode.

PROCEDURE FillTank()

DECLARE Tries : INTEGER DECLARE Full : BOOLEAN

Tries 1

Full ReadSensor("F1")

IF NOT Full THEN WHILE NOT Full AND Tries < 4 CALL TopUp() Full ReadSensor("F1") Tries Tries + 1 ENDWHILE IF Tries > 3 THEN OUTPUT "Too many attempts" ELSE OUTPUT "Tank now full" ENDIF ELSE OUTPUT "Already full" ENDIF

ENDPROCEDURE

(i)

The pseudocode includes features that make it easier to read and understand.

State three such features.

Feature 1 ...........................................................................................................................

Feature 2 ...........................................................................................................................

Feature 3 ...........................................................................................................................

[3]

Question 3

Topic relevance

Why this question appears here

99% 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_22.pdf

Keep practising this topic