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

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

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

Official answer for Question 3

Part (b)

(i)

Part (b)

(i)

Mark as follows:

✓
Class header
✓
Methods
✓
Properties
✓
Pascal
✓
StockItem = CLASS
✓
PUBLIC
✓
Procedure ShowTitle();
✓
Procedure ShowDateAcquired();
✓
Procedure ShowOnLoan();
✓
PRIVATE
✓
Title : STRING;
✓
DateAcquired : TDateTime;
✓
OnLoan : Boolean;
✓
END;
✓
Python
✓
class StockItem :
✓
def __int__(self) :
✓
self.__Title = ""
✓
self.__DateAquired = ""
✓
self.__OnLoan = False
✓
def ShowTitle() :
✓
pass
✓
def ShowDateAcquired() :
✓
pass
✓
def ShowOnLoan() :
✓
pass
✓
VB.NET
✓
Class StockItem
✓
Public Sub ShowTitle()
✓
End Sub
✓
Public Sub ShowDateAquired()
✓
End Sub
✓
Public Sub ShowOnLoan()
✓
End Sub
✓
Private Title As String
✓
Private DateAquired As Date
✓
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)

(i)

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

(i)

for the class definition for the superclass StockItem.

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

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

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

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

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

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

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

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

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

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

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

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