Past-paper question · 2015 May-June · Paper 21 · Q1(d)

Question 1(d) 2015 · May-June · Paper 21 · 6 marks

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

Official answer for Question 1

Part (d)

Part (d)

Maximum 6 marks in total for question part

✓
Explanation (max 6)
  • set variable called HighestMidday to a large minus number
  • loop (30 or 7) times to check each midday temperature in turn
  • check midday temperature against HighestMidday / midday temperature >
✓
HighestMidday
  • …replace value in HighestMidday by midday temperature
  • …store array index in MiddayMonthDay/MiddayWeekday
  • output HighestMidday outside the loop
  • output MiddayMonthDay/MiddayWeekday outside the loop
✓
Sample algorithm (max 4):
✓
HighestMidday ← -999
✓
FOR Count ← 1 TO 7
✓
IF MiddayTemperature [Count] > HighestMidday
✓
THEN HighestMidday ← MiddayTemperature[Count]
✓
MiddayMonthDay/MiddayWeekday ← Count
✓
ENDIF
✓
NEXT Count
✓
PRINT 'The highest midday temperature was ',HighestMidday, ' on
✓
day ', Count
✓
If pseudocode or programming only and no explanation, then maximum 4 marks
[6]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge O Level – May/June 2015
✓
2210

Question 21

✓
Section B

Mark scheme 2210_s15_ms_21.pdf →

Show text version of question

Question 1

Part (d)

Part (d)

Explain how you select the day with the highest midday temperature (part of Task 3). You may

include pseudocode or programming statements as part of your explanation.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

...............................................................................................................................................[6]

Question 6

Section B

Topic relevance

Why this question appears here

84% assigned-topic match · Programming

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

Keep practising this topic