Computer Science 9608 · 20

20.1 Programming paradigms

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

Reset
2019 October-November · Paper 41 · Q2(e)(ii)

Programming paradigms · 11 marks

2 3 5 6 1 1 F 7 8 9 [6] 3 (ii) State what is meant by the critical path in a PERT chart. ..........................................................................................…

2019 October-November · Paper 41 · Q2(e)(iii)

Programming paradigms · 11 marks

2 3 5 6 1 1 F 7 8 9 [6] 3 (ii) State what is meant by the critical path in a PERT chart. ..........................................................................................…

2019 October-November · Paper 41 · Q2(e)(iv)

Programming paradigms · 15 marks

2 3 5 6 1 1 F 7 8 9 [6] 3 (ii) State what is meant by the critical path in a PERT chart. ..........................................................................................…

2019 October-November · Paper 41 · Q2(e)(v)

Programming paradigms · 11 marks

2 3 5 6 1 1 F 7 8 9 [6] 3 (ii) State what is meant by the critical path in a PERT chart. ..........................................................................................…

2019 October-November · Paper 41 · Q2(e)(vi)

Programming paradigms · 26 marks

2 3 5 6 1 1 F 7 8 9 [6] 3 (ii) State what is meant by the critical path in a PERT chart. ..........................................................................................…

2019 October-November · Paper 42 · Q1(c)(i)

Programming paradigms · 3 marks · official answer ready

(i) Complete the following class diagram for the program. Employee EmployeeID : STRING Name : STRING Address : STRING DateOfBirth : Date Constructor() GetEmployeeID() GetName() Ge…

2019 October-November · Paper 42 · Q1(c)(ii)

Programming paradigms · 4 marks · official answer ready

(ii) Write program code for the Constructor() in the Employee class. All properties are sent as parameters. Programming language ..................................................…

2019 October-November · Paper 42 · Q1(c)(iii)

Programming paradigms · 2 marks · official answer ready

(iii) Write program code for the GetEmployeeID()method in the Employee class. The get method returns the value of the EmployeeID property. Programming language ...................…

2019 October-November · Paper 42 · Q1(c)(iv)

Programming paradigms · 2 marks · official answer ready

(iv) Write program code for the SetEmployeeID()method in the Employee class. The set method takes the new value as its parameter. Programming language ............................…

2019 October-November · Paper 42 · Q1(c)(v)

Programming paradigms · 4 marks · official answer ready

(v) Write program code for the SetPension()method in the SalaryEmployee()class. • The method takes a new value for Pension as a parameter. • If the parameter’s value is valid (it …

2019 October-November · Paper 42 · Q1(c)(vi)

Programming paradigms · 8 marks · official answer ready

(vi) A SalaryEmployee is paid a fixed monthly payment. • If the employee has worked a public holiday, they receive a 3% bonus payment. This is calculated from their MonthlyPayment…

2019 October-November · Paper 42 · Q1(d)

Programming paradigms · 1 mark · official answer ready

(d) Noona describes an example of a feature of object-oriented programming (OOP). She says: “One method exists in the parent class but is overwritten in the child class, to behave…

2019 October-November · Paper 43 · Q1(e)(i)

Programming paradigms · 4 marks · official answer ready

(i) Write program code for the Constructor() method. Programming language ..................................................................................................... Pro…

2019 October-November · Paper 43 · Q1(e)(ii)

Programming paradigms · 2 marks · official answer ready

(ii) Write program code for the SetFirstName()method. Programming language ..................................................................................................... Pr…

2019 October-November · Paper 43 · Q1(e)(iii)

Programming paradigms · 2 marks · official answer ready

(iii) Write program code for the GetName()method. Programming language ..................................................................................................... Progra…

2019 October-November · Paper 43 · Q1(e)(iv)

Programming paradigms · 6 marks · official answer ready

(iv) The method AddCredits()calculates the number of printing credits a student buys and adds the printing credits to the student’s account. • Credits cost $1 for 25 credits. • If…

2019 October-November · Paper 43 · Q1(e)(v)

Programming paradigms · 2 marks · official answer ready

(v) A global array, StudentAccounts, stores 1000 instances of PrintAccount. Write pseudocode to declare the array StudentAccounts. ................................................…

2019 October-November · Paper 43 · Q1(e)(vi)

Programming paradigms · 8 marks · official answer ready

(vi) The main program has a procedure, CreateID(), that: • takes the first name and last name as parameters • creates PrintID that is a concatenation of: ◦ the first three letters…

2019 October-November · Paper 43 · Q2(e)(i)

Programming paradigms · 13 marks

2 3 5 6 1 1 F 7 8 9 [6] 3 (ii) State what is meant by the critical path in a PERT chart. ..........................................................................................…

2019 October-November · Paper 43 · Q2(e)(ii)

Programming paradigms · 11 marks

2 3 5 6 1 1 F 7 8 9 [6] 3 (ii) State what is meant by the critical path in a PERT chart. ..........................................................................................…