11.2 Constructs
259 questions in this subtopic. Open a question to solve it and check the official answer.
Constructs · 3 marks · official answer ready
(b) Computers on the Internet have IP addresses. Describe the format of an IP address. ............................................................................................…
Constructs · 4 marks · official answer ready
(b) Complete the table by identifying the most appropriate term for each description. Each term must be different. Description Term Receives data packets from a network and forwar…
Constructs · 4 marks · official answer ready
(b) Describe two drawbacks of using a wireless network compared to using a wired network. Drawback 1 ..............................................................................…
Constructs · 5 marks · official answer ready
(c) Each pseudocode statement in the following table may contain an error due to the incorrect use of the function or operator. Describe the error in each case, or write ‘NO ERROR…
Constructs · 5 marks · official answer ready
(i) Write pseudocode for the procedure GuessNum(). Refer to the Appendix on pages 22–23 for the list of built-in pseudocode functions and operators. ..............................…
Constructs · 2 marks · official answer ready
(ii) Suggest two different validation checks that could be applied to the input of the procedure GuessNum() to ensure invalid guesses are not counted. 1 ..........................…
Constructs · 1 mark
(i) Identify this type of testing. ..................................................................................................................................... [1]
Constructs · 2 marks · official answer ready
(ii) Her program contains a function Status() that she has not yet written, but will be called from several places within the program. Explain what Alice needs to do to allow the …
Constructs · 1 mark · official answer ready
(iii) Alice compiles her program. Explain the function of the compiler. ...........................................................................................................…
Constructs · 5 marks · official answer ready
(d) Each pseudocode statement in the following table may contain an error due to the incorrect use of the function or operator. Describe the error in each case, or write ‘NO ERROR…
Constructs · 2 marks · official answer ready
(i) Module names and parameters are features that may be represented on a structure chart. State two other features than can be represented on a structure chart. Feature 1 .......…
Constructs · 7 marks · official answer ready
(b) A program contains a global 2D array XRef. The array consists of 100 rows and 3 columns. The array is of data type STRING. A function, Search(), takes two parameters Par1 and …
Constructs · 3 marks · official answer ready
(c) Each pseudocode statement in the following table may contain an error due to the incorrect use of the function or operator. Describe the error in each case, or write 'NO ERROR…
Constructs · 18 marks · official answer ready
(a) Write pseudocode for the module CheckBackupFile(). ............................................................................................................................…
Constructs · 5 marks · official answer ready
(a) The state-transition diagram shows the different states of the vending machine. Complete the state-transition diagram. .......................... Total the money Cancel insert…
Constructs · 4 marks · official answer ready
(a) The pseudocode function binarySearch()performs a binary search to find a given value in the global array, dataArray. If the value is found, the function returns its index. If …
Constructs · 3 marks · official answer ready
(b) The function pop() pops and returns the item from the top of the stack. If the stack is empty, it returns −1. Write pseudocode for the function pop(). ........................…
Constructs · 5 marks · official answer ready
(ii) The function Dequeue() returns the value at the head of the queue, or −1 if the queue is empty. Complete the pseudocode for the function Dequeue(). FUNCTION Dequeue() RETURNS…
Constructs · 5 marks · official answer ready
5 The following procedure performs an insertion sort on the global array TheArray that has 10 elements. Complete the pseudocode for the procedure InsertionSort(). PROCEDURE Insert…
Constructs · 4 marks · official answer ready
(a) Complete the decision table for the social networking website. Available username N Y N Y N Y N Y Conditions Suitable password N N Y Y N N Y Y Age > 16 N N N N Y Y Y Y “Too yo…
