20.1 Programming paradigms
192 questions in this subtopic. Open a question to solve it and check the official answer.
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. ..........................................................................................…
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. ..........................................................................................…
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. ..........................................................................................…
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. ..........................................................................................…
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. ..........................................................................................…
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…
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 ..................................................…
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 ...................…
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 ............................…
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 …
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…
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…
Programming paradigms · 4 marks · official answer ready
(i) Write program code for the Constructor() method. Programming language ..................................................................................................... Pro…
Programming paradigms · 2 marks · official answer ready
(ii) Write program code for the SetFirstName()method. Programming language ..................................................................................................... Pr…
Programming paradigms · 2 marks · official answer ready
(iii) Write program code for the GetName()method. Programming language ..................................................................................................... Progra…
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…
Programming paradigms · 2 marks · official answer ready
(v) A global array, StudentAccounts, stores 1000 instances of PrintAccount. Write pseudocode to declare the array StudentAccounts. ................................................…
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…
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. ..........................................................................................…
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. ..........................................................................................…
