Computing 9691 · 11

Programming

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

Reset
2015 May-June · Paper 21 · Q4(c)(ii)

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 …

2015 May-June · Paper 21 · Q4(c)(iii)

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 …

2015 May-June · Paper 21 · Q4(c)(iv)

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 …

2015 May-June · Paper 21 · Q4(c)(v)

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 …

2015 May-June · Paper 21 · Q4(h)

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 .........................................................…

2015 May-June · Paper 22 · Q2(a)(i)

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 ........................................................…

2015 May-June · Paper 22 · Q2(a)(ii)

Programming basics · 1 mark

(ii) Give the expected result from the sum of the numbers 3, 5, 2, 1. .............................................................................................................…

2015 May-June · Paper 22 · Q2(a)(iii)

Programming basics · 1 mark · official answer ready

(iii) What is the error in the given pseudocode? ..................................................................................................................................…

2015 May-June · Paper 22 · Q2(a)(iv)

Programming basics · 1 mark · official answer ready

(iv) State the type of error. ...................................................................................................................................... [1]

2015 May-June · Paper 22 · Q3(c)(i)

Constructs · 1 mark

(i) Identify one feature in the above pseudocode which indicates that top-down design has been used. ..............................................................................…

2015 May-June · Paper 22 · Q3(c)(ii)

Constructs · 1 mark · official answer ready

(ii) State one benefit of top-down design. ........................................................................................................................................…

2015 May-June · Paper 22 · Q3(c)(iii)

Constructs · 5 marks · official answer ready

(iii) Give the line number of a statement which shows: Assignment .................................................................................................................…

2015 May-June · Paper 22 · Q3(c)(iv)

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 ...........................................................…

2015 May-June · Paper 22 · Q3(e)

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…

2015 May-June · Paper 22 · Q3(h)

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 .........................................................…

2015 May-June · Paper 22 · Q4(c)(i)

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 …

2015 May-June · Paper 22 · Q4(c)(ii)

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 …

2015 May-June · Paper 22 · Q4(c)(iii)

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 …

2015 May-June · Paper 22 · Q4(c)(iv)

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 …

2015 May-June · Paper 22 · Q4(c)(v)

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 …