Past-paper question · 2019 October-November · Paper 31 · Q5(b)(i)

Question 5(b)(i) 2019 · October-November · Paper 31 · 4 marks

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

Official answer for Question 5

Part (b)

(i)

Question 1

mark per bullet point

Question 4

✓
•
✓
EmployeeID declared as STRING
✓
•
✓
Sales, Technical and CustomerServices
✓
•
✓
… with commas in-between
✓
•
✓
ENDTYPE
✓
TYPE Employee
✓
DECLARE EmployeeID
✓
: STRING
✓
DECLARE EmployeeName : STRING
✓
DECLARE Department
✓
: (Sales, Technical,
✓
CustomerServices)
✓
DECLARE Salary
✓
: 25000..150000
✓
ENDTYPE

Mark scheme 9608_w19_ms_31.pdf →

Show text version of question

Question 5

Part (b)

(i)

An organisation stores data about its employees.

  • Employee ID is a five-digit number, for example, 01234.
  • Employee name is a string, for example, ‘Kiri Moana’.
  • Department is one of three values: Sales, Technical, Customer services.
  • Salary is an integer value in the range 25 000 to 150 000.

(i)

Complete the following pseudocode definition of a user-defined data type to store the

employee data.

TYPE Employee

DECLARE EmployeeID : ....................................................................................

DECLARE EmployeeName : STRING

DECLARE Department : ( .................................................................................

..................................................................................)

DECLARE Salary : 25000..150000

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

[4]
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_w19_qp_31.pdf

Keep practising this topic