Computer Science 9608 · 20

Further programming

192 questions. Open a question to solve it and check the official answer.

2016 October-November · Paper 43 · Q1(b)(vii)

Programming paradigms · 4 marks · official answer ready

(vii) The company needs to write a program to simulate a safety deposit box. The program will create an object with identifier ThisSafe, which is an instance of the class SafetyDe…

2016 May-June · Paper 41 · Q8

Programming paradigms · 13 marks

8 15 The programmer decides to use a 2D array to represent the board. The index numbering to be used is as shown. Each square on the board is either occupied by one piece only, or…

2016 May-June · Paper 41 · Q8(c)(i)

Programming paradigms · 2 marks

(c) The problem is well suited to an object-oriented design followed by object-oriented programming. (i) Describe how classes and objects could be used in this problem. ..........…

2016 May-June · Paper 41 · Q8(c)(ii)

Programming paradigms · 2 marks

(c) The problem is well suited to an object-oriented design followed by object-oriented programming. (ii) For a class you identified in part(c)(i), state two properties and two me…

2016 May-June · Paper 42 · Q8

Programming paradigms · 13 marks

8 15 The programmer decides to use a 2D array to represent the board. The index numbering to be used is as shown. Each square on the board is either occupied by one piece only, or…

2016 May-June · Paper 42 · Q8(c)(i)

Programming paradigms · 2 marks

(c) The problem is well suited to an object-oriented design followed by object-oriented programming. (i) Describe how classes and objects could be used in this problem. ..........…

2016 May-June · Paper 42 · Q8(c)(ii)

Programming paradigms · 2 marks

(c) The problem is well suited to an object-oriented design followed by object-oriented programming. (ii) For a class you identified in part(c)(i), state two properties and two me…

2016 May-June · Paper 43 · Q8

Programming paradigms · 13 marks

8 15 The programmer decides to use a 2D array to represent the board. The index numbering to be used is as shown. Each square on the board is either occupied by one piece only, or…

2016 May-June · Paper 43 · Q8(c)(i)

Programming paradigms · 2 marks

(c) The problem is well suited to an object-oriented design followed by object-oriented programming. (i) Describe how classes and objects could be used in this problem. ..........…

2016 May-June · Paper 43 · Q8(c)(ii)

Programming paradigms · 2 marks

(c) The problem is well suited to an object-oriented design followed by object-oriented programming. (ii) For a class you identified in part(c)(i), state two properties and two me…

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 …