Computer Science 9608 · 11

11.2 Constructs

259 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2021 October-November · Paper 11 · Q11(b)

Constructs · 3 marks · official answer ready

(b) Computers on the Internet have IP addresses. Describe the format of an IP address. ............................................................................................…

2021 May-June · Paper 11 · Q9(b)

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…

2021 May-June · Paper 12 · Q9(b)

Constructs · 4 marks · official answer ready

(b) Describe two drawbacks of using a wireless network compared to using a wired network. Drawback 1 ..............................................................................…

2021 May-June · Paper 21 · Q1(c)

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…

2021 May-June · Paper 21 · Q5(a)(i)

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

2021 May-June · Paper 21 · Q5(a)(ii)

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

2021 May-June · Paper 21 · Q5(b)(i)

Constructs · 1 mark

(i) Identify this type of testing. ..................................................................................................................................... [1]

2021 May-June · Paper 21 · Q5(b)(ii)

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 …

2021 May-June · Paper 21 · Q5(b)(iii)

Constructs · 1 mark · official answer ready

(iii) Alice compiles her program. Explain the function of the compiler. ...........................................................................................................…

2021 May-June · Paper 22 · Q1(d)

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…

2021 May-June · Paper 22 · Q3(a)(i)

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

2021 May-June · Paper 22 · Q4(b)

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 …

2021 May-June · Paper 23 · Q1(c)

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…

2021 May-June · Paper 23 · Q6(a)

Constructs · 18 marks · official answer ready

(a) Write pseudocode for the module CheckBackupFile(). ............................................................................................................................…

2021 May-June · Paper 41 · Q1(a)

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…

2021 May-June · Paper 41 · Q5(a)

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 …

2021 May-June · Paper 41 · Q7(b)

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

2021 May-June · Paper 42 · Q4(b)(ii)

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…

2021 May-June · Paper 42 · Q5

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…

2021 May-June · Paper 42 · Q6(a)

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…