Past-paper question · 2015 October-November · Paper 23 · Q1(a)(i)

Question 1(a)(i) 2015 · October-November · Paper 23 · 4 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)

Part (a)

(i)

Any two variables with matching uses, one mark for the variable and one mark for the

✓
matching use. The variables and the matching uses must relate to the tasks on the exam
✓
paper. There are many possible correct answers these are examples only.
✓
Variable 1
  • Counter(: INTEGER)
✓
Use
  • to use as a loop counter when entering the temperatures
✓
Variable 2
  • HighestTemperature(: REAL)
✓
Use
  • to store the highest temperature recorded
[4]

Mark scheme 2210_w15_ms_23.pdf →

Show text version of question

Question 1

Part (a)

(i)

All variables, constants and other identifiers should have meaningful names.

(i)

When you performed the tasks, you used variables.

Write suitable declarations for two of these. State what you used each one for.

Variable 1 ..........................................................................................................................

Use ....................................................................................................................................

...........................................................................................................................................

Variable 2 ..........................................................................................................................

Use ....................................................................................................................................

.......................................................................................................................................[4]

Topic relevance

Why this question appears here

83% assigned-topic match · Programming › Programming concepts

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 2210_w15_qp_23.pdf

Keep practising this topic