Computer Science 9608 · 20

Further programming

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

2019 October-November · Paper 43 · 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 43 · 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 43 · 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 43 · 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 May-June · Paper 41 · Q2(c)(i)

Programming paradigms · 3 marks

(i) Imperative .......................................................................................................................... .........................................…

2019 May-June · Paper 41 · Q2(c)(ii)

Programming paradigms · 3 marks

(ii) Object-oriented .................................................................................................................. ...........................................…

2019 May-June · Paper 41 · Q2(d)(i)

Programming paradigms · 5 marks

(i) The constructor receives the parameter InputPlayerID to create the PlayerID. Other properties are initialised as instructed in the class diagram. Write program code for the Cr…

2019 May-June · Paper 41 · Q2(d)(ii)

Programming paradigms · 4 marks

(ii) Write program code for the following three get methods. Programming language .................................................................................................…

2019 May-June · Paper 41 · Q2(d)(iii)

Programming paradigms · 4 marks

(iii) The method SetPlayerID()asks the user to input the new player ID and reads in this value. It checks that the length of the PlayerID is less than or equal to 15 characters an…

2019 May-June · Paper 41 · Q2(d)(iv)

Programming paradigms · 5 marks

(iv) The method SetScore()checks that its INTEGER parameter ScoreInput is valid. If it is valid, it is then set as Score. A valid ScoreInput is greater than or equal to 0 and less…

2019 May-June · Paper 41 · Q2(d)(v)

Programming paradigms · 4 marks

(v) Write program code for the method SetCategory(). Use the properties and methods in the original class definition. Players will be placed in one of the following categories. Ca…

2019 May-June · Paper 41 · Q2(d)(vi)

Programming paradigms · 8 marks

(vi) Joanne has played the first game to place her in a category for the competition. The procedure CreatePlayer()performs the following tasks. • allows the player ID and score to…

2019 May-June · Paper 42 · Q1(b)(i)

Programming paradigms · 5 marks · official answer ready

(i) The constructor receives the centre number and candidate number as parameter values to create PaperID. Other properties are initialised as instructed in the class diagram. Wri…

2019 May-June · Paper 42 · Q1(b)(ii)

Programming paradigms · 3 marks · official answer ready

(ii) Get and set methods are used to support the security and integrity of data in object-oriented programming. Explain how get and set methods are used to support security and in…

2019 May-June · Paper 42 · Q1(b)(iii)

Programming paradigms · 4 marks · official answer ready

(iii) Write program code for the following three get methods. Programming language ................................................................................................…

2019 May-June · Paper 42 · Q1(b)(iv)

Programming paradigms · 5 marks · official answer ready

(iv) The method SetFinalMark() checks that its INTEGER parameter Mark is valid. It is then set as the final mark if it is valid. A valid mark is greater than or equal to 0 and les…

2019 May-June · Paper 42 · Q1(b)(v)

Programming paradigms · 4 marks · official answer ready

(v) Write program code for the method: SetGrade(DistMark, MeritMark, PassMark : INTEGER) Use the properties in the original class definition. Grades are awarded as follows: Grade …

2019 May-June · Paper 42 · Q1(b)(vi)

Programming paradigms · 8 marks · official answer ready

(vi) Emily is a candidate who has taken the examination paper. The grades are awarded as follows: Grade Criteria Distinction >= 80 Merit >= 70 Pass >= 55 The procedure Main() perf…

2019 May-June · Paper 42 · Q1(c)

Programming paradigms · 4 marks · official answer ready

(c) The examination paper will be taken by many candidates in centres around the world. The program stores the objects of the ExaminationPaper class in a file. The company has dec…

2019 May-June · Paper 43 · Q2(c)(i)

Programming paradigms · 3 marks

(i) Imperative .......................................................................................................................... .........................................…