20.1 Programming paradigms
192 questions in this subtopic. Open a question to solve it and check the official answer.
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…
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…
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. ..........…
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…
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…
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. ..........…
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…
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…
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. ..........…
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…
Programming paradigms · 7 marks · official answer ready
(a) Complete the class diagram showing the appropriate properties and methods. StockItem Title: STRING ...................................................................... .....…
Programming paradigms · 3 marks · official answer ready
(i) for the class definition for the superclass StockItem. Programming language ...................................................................................................…
Programming paradigms · 3 marks · official answer ready
(ii) for the class definition for the subclass Book. Programming language ..................................................................................................... ...…
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…
Programming paradigms · 7 marks · official answer ready
(a) Complete the class diagram showing the appropriate properties and methods. StockItem Title: STRING ...................................................................... .....…
Programming paradigms · 3 marks · official answer ready
(i) for the class definition for the superclass StockItem. Programming language ...................................................................................................…
Programming paradigms · 3 marks · official answer ready
(ii) for the class definition for the subclass Book. Programming language ..................................................................................................... ...…
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…
Programming paradigms · 3 marks · official answer ready
(a) Draw an inheritance diagram for these classes. [3]
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 …
