11.2 Constructs
259 questions in this subtopic. Open a question to solve it and check the official answer.
Constructs · 4 marks · official answer ready
(v) Write pseudocode to implement the method you described in part (b)(iv). Choose line numbers to indicate where your pseudocode should be inserted in the pseudocode of part (b)(…
Constructs · 6 marks
8 : : 0 96 0 97 0 98 0 99 [2] 15 (v) Write pseudocode to implement the method you described in part (b)(iv). Choose line numbers to indicate where your pseudocode should be insert…
Constructs · 5 marks · official answer ready
6 (a) Name the most suitable input or output device for each of the following uses. Give a different device in each case. Description of use Input or output device input of credit…
Constructs · 2 marks · official answer ready
(iii) Write the table definitions to give the database in 3NF. ....................................................................................................................…
Constructs · 5 marks · official answer ready
6 (a) Name the most suitable input or output device for each of the following uses. Give a different device in each case. Description of use Input or output device input of credit…
Constructs · 2 marks · official answer ready
(iii) Write the table definitions to give the database in 3NF. ....................................................................................................................…
Constructs · 3 marks · official answer ready
(ii) Some of the following function calls may be invalid. Mark each call with: • a tick (✓), for a valid call • a cross (✗), for an invalid call For any function calls which are i…
Constructs · 3 marks · official answer ready
(ii) Some of the following function calls may be invalid. Mark each call with: • a tick (✓), for a valid call • a cross (✗), for an invalid call For any function calls which are i…
Constructs · 1 mark · official answer ready
(iii) The programmer coded this algorithm above and the user successfully entered 15 dispenser records into the text file. There is data for another 546 dispensers which needs to …
Constructs · 1 mark · official answer ready
(iii) Write the statement for a procedure call which processes data for 7 days for 13 workers. ....................................................................................…
Constructs · 3 marks · official answer ready
4 (b) Temperature data from a number of weather stations are to be processed by a program. The following data are to be stored: • weather station ID (a unique four-letter code) • …
Constructs · 5 marks · official answer ready
1 A turnstile is a gate which is in a locked state. To open it and pass through, a customer inserts a coin into a slot on the turnstile. The turnstile then unlocks and allows the …
Constructs · 3 marks
(ii) A special case is when NameList is already in order. The algorithm in part (a)(i) is applied to this special case. Explain how many iterations are carried out for each of the…
Constructs · 2 marks · official answer ready
(i) As in part (a)(ii), a special case is when NameList is already in order. The algorithm in part (b) is applied to this special case. Explain how many iterations are carried out…
Constructs · 5 marks · official answer ready
1 A turnstile is a gate which is in a locked state. To open it and pass through, a customer inserts a coin into a slot on the turnstile. The turnstile then unlocks and allows the …
Constructs · 3 marks
(ii) A special case is when NameList is already in order. The algorithm in part (a)(i) is applied to this special case. Explain how many iterations are carried out for each of the…
Constructs · 2 marks · official answer ready
(i) As in part (a)(ii), a special case is when NameList is already in order. The algorithm in part (b) is applied to this special case. Explain how many iterations are carried out…
Constructs · 9 marks · official answer ready
1 A petrol filling station has a single self-service petrol pump. A customer can use the petrol pump when it is ready to dispense petrol. The pump is in use when the customer take…
Constructs · 5 marks · official answer ready
(e) Write program code for procedure X. Programming language ............................................................................................................. ........…
