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

Question 4(b) 2013 · October-November · Paper 31 · 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:

✓
BOOK + RECORDING subclasses
[1]
✓
FILM + MUSIC subclasses of RECORDING
[1]
✓
Recognised notation for inheritance
[1]
✓
RESOURCE class
✓
Title : STRING
✓
OnLoan : BOOLEAN
[1]
✓
BOOK class
✓
Author : STRING
[1]
✓
FILM class
✓
RunningTime : INTEGER
[1]
✓
MUSIC class
✓
NoOfTracks : INTEGER
[1]
✓
RECORDING class
✓
ReleaseDate : DATE
[1]
✓
Encapsulation

Mark scheme 9691_w13_ms_31.pdf →

Show text version of question

Question 4

Part (b)

Question 4

Object-oriented programming is one programming paradigm. For

Examiner's Use

Part (b)

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

Examiner's Use

A
library has resources (RESOURCE) available for lending out to borrowers. Resources

include books (BOOK), and recordings (RECORDING). Recordings are available for either films (FILM) or music (MUSIC) CDs.

Data stored will include:

  • library ID for every item
  • author for books
  • release date for music CDs and films
  • title for every available item
  • number of tracks for CDs
  • running time for films
  • whether or not on loan

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

RESOURCE LibraryID: 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_31.pdf

Keep practising this topic