Past-paper question · 2019 October-November · Paper 42 · Q1(c)(iv)

Question 1(c)(iv) 2019 · October-November · Paper 42 · 2 marks

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

Official answer for Question 1

Part (c)

(iv)

Question 1

mark per bullet point

Question 2

✓
•
✓
Set method/procedure header and close (where needed) with parameter
✓
•
✓
Sets EmployeeID to value of parameter
✓
Example code:
✓
Pascal
✓
procedure Employee.SetEmployeeID(NewID: String);
✓
EmployeeID := NewID
✓
end;
✓
Python
✓
def SetEmployeeID(self, NewID):
✓
self.__EmployeeID = NewID
✓
VB.NET
✓
Public Sub SetEmployeeID(NewID)
✓
EmployeeID = NewID
✓
End Sub
✓
9608/42
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November 2019
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w19_ms_42.pdf →

Show text version of question

Question 1

Part (c)

(iv)

Question 1

A technology company needs software to calculate how much each employee should be paid.

The company decides to implement a program for the software using object-oriented programming (OOP).

Each employee has a unique employee ID, name, address and date of birth. There are two types of employee: salary and apprenticeship.

Salaried employees are paid a fixed monthly payment. The hours a salary employee works in a month are recorded to calculate bonus payments. They may receive bonus payments and make pension payments (given in part(b)).

Apprenticeship employees are paid weekly. They receive an hourly rate of pay. Apprenticeship employees do not receive bonus payments or make pension payments.

(iv)

Write program code for the SetEmployeeID()method in the Employee class.

The set method takes the new value as its parameter.

Programming language .....................................................................................................

Program code

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

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

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

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

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

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

[2]
Topic relevance

Why this question appears here

98% assigned-topic match · Further programming › Programming paradigms

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

Keep practising this topic