Past-paper question · 2013 October-November · Paper 32 · Q4(b)

Question 4(b) 2013 · October-November · Paper 32 · 8 marks

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

Official answer for Question 4

Part (b)

Part (b)

The class diagram includes:

✓
ADMIN + PROJECTSTAFF
✓
subclasses of EMPLOYEE
[1]
✓
PROGRAMMER + TECHAUTHOR
✓
subclasses of PROJECTSTAFF
[1]
✓
Recognised notation for inheritance
[1]
✓
EMPLOYEE class FullTimeIndicator : BOOLEAN // CHAR
[1]
✓
Salary(Grade) : any except DATE/BOOLEAN
[1]
✓
ADMIN class
✓
Department : STRING
[1]
✓
PROJECTSTAFF class ProjectTeam : STRING
[1]
✓
PROGRAMMER class
✓
ProgrammingLanguage : STRING
[1]
✓
TECHAUTHOR class
✓
SoftwareSpecialism : STRING
[1]
✓
NB: check for any attribute repeated in a child class. If present score 0.

Mark scheme 9691_w13_ms_32.pdf →

Show text version of question

Question 4

Part (b)

Question 4

Object-oriented programming is one programming paradigm.

Part (b)

The following scenario is to be implemented with object-oriented programming. For

Examiner's Use

A
software company stores data for all employees (EMPLOYEE). The company employs

admin staff (ADMIN) and project staff (PROJECTSTAFF). Project staff are either programmers (PROGRAMMER) or technical authors (TECHAUTHOR).

Data stored will include:

  • employee ID for employees
  • specialist programming language for programmers
  • software specialism for technical authors
  • full time or part time indicator
  • department for admin staff
  • salary grade
  • the project team that project staff are assigned to

Complete the class diagram showing the classes and properties only for the data given above.

EMPLOYEE EmployeeID: INTEGER

[8]

Question 11

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 9691_w13_qp_32.pdf

Keep practising this topic