Computer Science 9608 · 20

20.1 Programming paradigms

22 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2015 October-November · Paper 41 · Q3(a)

Programming paradigms · 7 marks · official answer ready

(a) Complete the class diagram showing the appropriate properties and methods. StockItem Title: STRING ...................................................................... .....…

2015 October-November · Paper 41 · Q3(b)(i)

Programming paradigms · 3 marks · official answer ready

(i) for the class definition for the superclass StockItem. Programming language ...................................................................................................…

2015 October-November · Paper 41 · Q3(b)(ii)

Programming paradigms · 3 marks · official answer ready

(ii) for the class definition for the subclass Book. Programming language ..................................................................................................... ...…

2015 October-November · Paper 41 · Q3(b)(iii)

Programming paradigms · 3 marks · official answer ready

(iii) to create a new instance of Book with: • identifier NewBook • title “Computers” • author A.Nyone • ISBN 099111 • acquired on 12/11/2001 • not out on loan Programming languag…

2015 October-November · Paper 43 · Q3(a)

Programming paradigms · 7 marks · official answer ready

(a) Complete the class diagram showing the appropriate properties and methods. StockItem Title: STRING ...................................................................... .....…

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

Programming paradigms · 3 marks · official answer ready

(i) for the class definition for the superclass StockItem. Programming language ...................................................................................................…

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

Programming paradigms · 3 marks · official answer ready

(ii) for the class definition for the subclass Book. Programming language ..................................................................................................... ...…

2015 October-November · Paper 43 · Q3(b)(iii)

Programming paradigms · 3 marks · official answer ready

(iii) to create a new instance of Book with: • identifier NewBook • title “Computers” • author A.Nyone • ISBN 099111 • acquired on 12/11/2001 • not out on loan Programming languag…

2015 May-June · Paper 41 · Q4(a)

Programming paradigms · 3 marks · official answer ready

(a) Draw an inheritance diagram for these classes. [3]

2015 May-June · Paper 41 · Q4(b)

Programming paradigms · 5 marks · official answer ready

(b) The design for the Employee class consists of: • properties • EmployeeName • EmployeeID • AmountPaidThisMonth • methods • SetEmployeeName • SetEmployeeID • CalculatePay Write …

2015 May-June · Paper 41 · Q4(c)(i)

Programming paradigms · 4 marks · official answer ready

(i) State the properties and/or methods required for the subclass HourlyPaidEmployee. .............................................................................................…

2015 May-June · Paper 41 · Q4(c)(ii)

Programming paradigms · 2 marks · official answer ready

(ii) State the properties and/or methods required for the subclass SalariedEmployee. ..............................................................................................…

2015 May-June · Paper 41 · Q4(d)

Programming paradigms · 1 mark · official answer ready

(d) Name the feature of object-oriented program design that allows the method CalculatePay to be declared in the superclass Employee. .............................................…

2015 May-June · Paper 42 · Q4(a)

Programming paradigms · 3 marks · official answer ready

(a) Draw an inheritance diagram for these classes. [3]

2015 May-June · Paper 42 · Q4(b)

Programming paradigms · 5 marks · official answer ready

(b) The design for the Employee class consists of: • properties • EmployeeName • EmployeeID • AmountPaidThisMonth • methods • SetEmployeeName • SetEmployeeID • CalculatePay Write …

2015 May-June · Paper 42 · Q4(c)(i)

Programming paradigms · 4 marks · official answer ready

(i) State the properties and/or methods required for the subclass HourlyPaidEmployee. .............................................................................................…

2015 May-June · Paper 42 · Q4(c)(ii)

Programming paradigms · 2 marks · official answer ready

(ii) State the properties and/or methods required for the subclass SalariedEmployee. ..............................................................................................…

2015 May-June · Paper 42 · Q4(d)

Programming paradigms · 1 mark · official answer ready

(d) Name the feature of object-oriented program design that allows the method CalculatePay to be declared in the superclass Employee. .............................................…

2015 May-June · Paper 43 · Q4(a)

Programming paradigms · 3 marks · official answer ready

(a) Draw an inheritance diagram for these classes. [3]

2015 May-June · Paper 43 · Q4(b)

Programming paradigms · 5 marks · official answer ready

(b) The design for the Member class consists of • properties • MemberName • MemberID • SubscriptionPaid • methods • SetMemberName • SetMemberID • SetSubscriptionPaid 9 Write progr…