Programming
468 questions. Open a question to solve it and check the official answer.
Programming basics · 4 marks
(ii) Identify the bit position that contains the incorrect bit. ...................................................................................................................…
Constructs · 4 marks · official answer ready
(b) The website contains pages showing photos of the products and product details. Name two types of software that could have been used in the development of the website. Give a r…
Programming basics · 1 mark · official answer ready
(ii) Study the output in your answer to part (a)(i). State what could replace this whole logic circuit. ...........................................................................…
Constructs · 4 marks · official answer ready
(d) Describe how the sensors and microprocessor are used to measure a runner’s time to cover the 20 km course. ....................................................................…
Constructs · 2 marks
(i) Describe two features of spreadsheet software which make it suitable for this task. Feature 1 .................................................................................…
Constructs · 4 marks · official answer ready
5 (a) A local area network has four computers. Star, ring and bus are network topologies. Complete the diagrams to show how the computers are connected in each of these topologies…
Constructs · 1 mark · official answer ready
(c) Describe what could happen if the handset transmits the following selection: 1 0 1 0 1 0 0 ....................................................................................…
Programming basics · 4 marks
(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
(iii) What is the error in the given pseudocode? ..................................................................................................................................…
Programming basics · 1 mark
(iv) State the type of error. ...................................................................................................................................... [1]
Programming basics · 3 marks
(b) Rewrite the pseudocode so that it works correctly. ............................................................................................................................…
Constructs · 7 marks · official answer ready
(iii) In a high-level programming language, write statements to: • declare the array Grid • assign the value for an empty cell to all cells Programming language ..................…
Constructs · 1 mark · official answer ready
(i) Identify one feature in the above pseudocode which indicates that top-down design has been used. ..............................................................................…
Constructs · 1 mark
(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
(iv) Ali has written the pseudocode with features that make it easier to understand. State two such features. Feature 1 ...........................................................…
Constructs · 5 marks
(v) Complete the identifier table below. Variable or Procedure Identifier Data type Description or Function or Array FALSE if game in progress GameEnd Variable BOOLEAN TRUE if the…
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 .........................................................…
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 …
