Past-paper question · 2015 May-June · Paper 33 · Q4(b)(i)

Question 4(b)(i) 2015 · May-June · Paper 33 · 5 marks

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

Official answer for Question 4

Part (b)

(i)

Part (b)

(i)

✓
TYPE WeatherStation
✓
DECLARE StationID
✓
: STRING

Question 1

✓
DECLARE Latitude
✓
: REAL

Question 1

✓
DECLARE Temperature : ARRAY[1..15] OF INTEGER
✓
1 + 1
✓
ENDTYPE

Question 1

Mark scheme 9608_s15_ms_33.pdf →

Show text version of question

Question 4

Part (b)

(i)

Question 4

Part (b)

Temperature data from a number of weather stations are to be processed by a program.

The following data are to be stored: • weather station ID (a unique four-letter code) • latitude (to 2 decimal places) • average temperature (to the nearest whole number) for each year from 2001 to 2015 inclusive

A
programmer designs a composite data type WeatherStation. A variable of this type can

be used to store all the data for one particular station.

(i)

Write the definition for the user-defined data type WeatherStation. ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... .......................................................................................................................................[5]

Topic relevance

Why this question appears here

92% 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_s15_qp_33.pdf

Keep practising this topic