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

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

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

Official answer for Question 1

Part (c)

(iii)

Question 1

mark per bullet point

Question 2

✓
•
✓
Get method header and close (where needed) with no parameters
✓
•
✓
Returns the attribute/property EmployeeID
✓
Example code:
✓
Pascal
✓
Function Employee.GetEmployeeID() : String;
✓
result := EmployeeID;
✓
end;
✓
Python
✓
def GetEmployeeID(self):
✓
return self.__EmployeeID
✓
VB.NET
✓
Public Function GetEmployeeID() As String
✓
Return EmployeeID
✓
End Function
✓
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)

(iii)

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.

(iii)

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

The get method returns the value of the EmployeeID property.

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

Program code

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

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

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

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

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

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

[2]

Question 6

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