Programming
468 questions. Open a question to solve it and check the official answer.
Constructs · 1 mark
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
Constructs · 5 marks
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
Constructs · 2 marks
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
Constructs · 5 marks
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
Constructs · 2 marks
(h) When Ali has tested all individual modules he plans to do further testing. Give two types of testing Ali should do. 1 .........................................................…
Programming basics · 4 marks · official answer ready
(i) The sequence of numbers 3, 5, 2, 1 is input and terminated with −1. Complete the trace table. x Result x -1 0 0 Output ........................................................…
Programming basics · 1 mark
(ii) Give the expected result from the sum of the numbers 3, 5, 2, 1. .............................................................................................................…
Programming basics · 1 mark · official answer ready
(iii) What is the error in the given pseudocode? ..................................................................................................................................…
Programming basics · 1 mark · official answer ready
(iv) State the type of error. ...................................................................................................................................... [1]
Constructs · 1 mark
(i) Identify one feature in the above pseudocode which indicates that top-down design has been used. ..............................................................................…
Constructs · 1 mark · official answer ready
(ii) State one benefit of top-down design. ........................................................................................................................................…
Constructs · 5 marks · official answer ready
(iii) Give the line number of a statement which shows: Assignment .................................................................................................................…
Constructs · 2 marks · official answer ready
(iv) Ali has written the pseudocode with features that make it easier to understand. State two such features. Feature 1 ...........................................................…
Constructs · 10 marks · official answer ready
(e) The current player is a winner if they have placed their markers in each cell of a row or a column or a diagonal. Ali’s solution checks for a winner after every turn. Complete…
Constructs · 2 marks · official answer ready
(h) When Ali has tested all individual modules he plans to do further testing. Give two types of testing Ali should do. 1 .........................................................…
Constructs · 1 mark
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
Constructs · 1 mark
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
Constructs · 5 marks
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
Constructs · 2 marks
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
Constructs · 5 marks
(c) Ali uses the top-down design approach for his overall program solution. His design is as follows: 01 GameEnd ← FALSE 02 CurrentPlayer ← 'O' 03 CALL DisplayGrid() 04 05 REPEAT …
