Past-paper question · 2015 October-November · Paper 43 · Q3(b)(ii)

Question 3(b)(ii) 2015 · October-November · Paper 43 · 3 marks

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

Official answer for Question 3

Part (b)

(ii)

(ii)

Mark as follows:

✓
Class header and showing superclass
✓
Methods
✓
Properties
✓
Pascal
✓
TYPE Book = CLASS (StockItem)
✓
PUBLIC
✓
Procedure ShowAuthor();
✓
Procedure ShowISBN();
✓
PRIVATE
✓
Author : STRING;
✓
ISBN : STRING;
✓
END;
✓
Python
✓
class Book(StockItem) :
✓
def __init__(self) :
✓
self.__Author = ""
✓
self.__ISBN = ""
✓
def ShowAuthor() :
✓
pass
✓
def ShowISBN() :
✓
pass
✓
VB.NET
✓
Class Book : Inherits StockItem
✓
Public Sub ShowAuthor()
✓
End Sub
✓
Public Sub ShowISBN()
✓
End Sub
✓
Private Author As String
✓
Private ISBN As String ‘ reject integer
✓
End Class
[3]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International A Level – October/November 2015
✓
9608

Question 43

Mark scheme 9608_w15_ms_43.pdf →

Show text version of question

Question 3

Part (b)

(ii)

Question 3

A lending library stocks two types of item for loan: books and CDs.

All stock items have a title, the date the item was acquired and whether the item is currently out on loan.

Books have an author and ISBN. CDs have an artist and play time in minutes.

The library needs a program to process data about the stock items. The program will use an object-oriented programming language. Write program code

(ii)

for the class definition for the subclass Book.

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

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

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

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

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

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

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

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

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

.......................................................................................................................................[3]

Question 8

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

Keep practising this topic