Past-paper question · 2014 May-June · Paper 33 · Q3(c)(i)
Question 3(c)(i) 2014 · May-June · Paper 33 · 8 marks
Reveal official mark-scheme answer
Official answer for Question 3
Part (c)
(i)
Part (c)
(i)
Recognised notation for inheritance
✓
(1)
✓
EVENTVENUE class Address : STRING
✓
(1)
✓
STADIUM + THEATRE class
✓
(and no other subclasses)
✓
(1)
✓
STADIUM class
✓
SportsPlayed : STRING
✓
(1)
✓
Declared as an ARRAY
✓
(1)
✓
Capacity : INTEGER
✓
(1)
✓
AllSeater : BOOLEAN
✓
(1)
✓
TeamName : STRING
✓
(1)
✓
Declared as an ARRAY
✓
(1)
✓
THEATRE class
✓
NoOfSeats :
✓
INTEGER
✓
(1)
✓
EventType :
✓
STRING
✓
Declared as
✓
an ARRAY
✓
(1)
✓
Restarant :
✓
BOOLEAN
✓
(1)
✓
[MAX 8]
✓
Note: No mention of use of arrays scores MAX 7
Show text version of question
Question 3
Part (c)
(i)
Question 3
An application is to be implemented. An object-oriented programming (OOP) language will be
used. All venues have the venue name and address recorded.
A
theatre has recorded:
- the number of seats
- a list of the types of event staged (such as play, rock concert)
- whether or not the theatre has a restaurant.
A
stadium has recorded:
- a list of the sports played (such as football, cricket and athletics)
- a list of the names of any teams that play their home fixtures here
- the capacity
- whether the stadium is ‘seating-only’.
(i)
Complete the class diagram showing the classes and properties given. Do not attempt
to include any methods on the class diagram.
EventVenue VenueName : STRING
[8]
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 9691_s14_qp_33.pdf
