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
(d) Line 17 in the pseudocode outputs the staff number and the task number. Staff number Staff name A new requirement is to display the name of the member of staff given in the ta…
Constructs · 3 marks · official answer ready
(ii) Describe three specification changes which will make the program more useful. 1 ..............................................................................................…
Constructs · 0 marks
4 The standard pack of playing cards has four suits – called Clubs, Diamonds, Hearts and Spades. Each card has a value shown by its number or a name: 1 (Ace), 2, 3, … 10, 11 (Jack…
Constructs · 1 mark · official answer ready
(i) A statement which marks the end of a count controlled loop. ...................................................................................................................…
Constructs · 1 mark · official answer ready
(ii) The declaration of a local variable. .......................................................................................................................................[1]
Constructs · 1 mark · official answer ready
(iv) A statement which uses a built-in function of the programming language. ......................................................................................................…
Constructs · 8 marks · official answer ready
(i) Trace the execution of the pseudocode for the value N = 5 and the given array of integers. Num N i j Temp 1 2 3 4 5 5 11 16 13 7 8 [8] 12
Constructs · 1 mark · official answer ready
(ii) State the purpose of the algorithm. ..........................................................................................................................................…
Constructs · 1 mark · official answer ready
(iii) Describe what evidence from the trace table suggests that the given pseudocode is inefficient. ..............................................................................…
Constructs · 5 marks · official answer ready
(b) Complete the identifier table documenting the use of each of the variables. Identifier Data type Description Num ARRAY[1:100] OF INTEGER The array of numbers. N i j Temp [5] 13
Constructs · 6 marks · official answer ready
(b) Complete the pseudocode for this design. OUTPUT "Enter purchase price" INPUT PurchasePrice CurrentValue ← .....................................................................…
Constructs · 1 mark · official answer ready
(ii) Copy the condition which is used to control a ‘pre-condition’ loop. ..........................................................................................................…
Constructs · 4 marks · official answer ready
(d) Line 17 in the pseudocode outputs the staff number and the task number. Staff number Staff name A new requirement is to display the name of the member of staff given in the ta…
Constructs · 3 marks · official answer ready
(ii) Describe three specification changes which will make the program more useful. 1 ..............................................................................................…
Constructs · 2 marks · official answer ready
(d) Explain the role of the high-level scheduler in a multiprogramming operating system. ..........................................................................................…
Constructs · 2 marks · official answer ready
(d) Explain the role of the low-level scheduler in a multiprogramming operating system. ...........................................................................................…
Constructs · 2 marks · official answer ready
(d) Explain the role of the high-level scheduler in a multiprogramming operating system. ..........................................................................................…
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 · 14 marks
(c) A stock report program uses a variable of type StockItem declared as follows: DECLARE ThisStockItem : Stockitem The program reads each record in the file StockFile in turn. Th…
