11.2 Constructs
140 questions in this subtopic. Open a question to solve it and check the official answer.
Constructs · 7 marks · official answer ready
1 (a) The following table contains pseudocode examples. Each example may contain statements that relate to one or more of the following: • selection • iteration (repetition) • sub…
Constructs · 2 marks · official answer ready
(b) The algorithm requires the use of basic constructs. One of these is sequence. Identify one other basic construct required by the algorithm and describe how it is used. Constru…
Constructs · 2 marks
(i) The mark for a given paper is stored in variable Mark. Describe how an algorithm would use the Check array to determine whether this paper should be checked. .................…
Constructs · 2 marks · official answer ready
(c) The game can last for several days and users often find that they have to close and rerun the game program many times in order to complete it. Describe the benefit of using th…
Constructs · 4 marks · official answer ready
(c) The function CompareStrings(): • takes two strings as parameters • compares each string, one character at a time, to identify which string comes first alphabetically. If the f…
Constructs · 2 marks · official answer ready
(i) Write program code for OutputLinkedList(). Save your program. Copy and paste the program code into part 3(c)(i) in the evidence document. [2]
Constructs · 1 mark · official answer ready
(iii) Test your program with both sets of given test data: Test data set 1: 5 6 8 9 5 Test data set 2: 10 7 8 5 6 Take a screenshot of each output. Save your program. Copy and pas…
Constructs · 5 marks · official answer ready
(c) The pseudocode function Enqueue() inserts an integer value into the queue. The function is incomplete. There are three incomplete statements. FUNCTION Enqueue(BYREF AQueue : Q…
Constructs · 5 marks
(c) The pseudocode function Enqueue() inserts an integer value into the queue. The function is incomplete. There are three incomplete statements. FUNCTION Enqueue(BYREF AQueue : Q…
Constructs · 6 marks
7 SNQT 2 10 The function SortScores() uses a bubble sort to sort the data as described and returns the sorted array. Write program code for SortScores(). Save your program. Copy a…
Constructs · 4 marks · official answer ready
(c) The function CompareStrings(): • takes two strings as parameters • compares each string, one character at a time, to identify which string comes first alphabetically. If the f…
Constructs · 2 marks · official answer ready
(i) Write program code for OutputLinkedList(). Save your program. Copy and paste the program code into part 3(c)(i) in the evidence document. [2]
Constructs · 1 mark · official answer ready
(iii) Test your program with both sets of given test data: Test data set 1: 5 6 8 9 5 Test data set 2: 10 7 8 5 6 Take a screenshot of each output. Save your program. Copy and pas…
Constructs · 5 marks · official answer ready
(b) The bank wants to protect the integrity of its data while transferring the data to other banks. Parity check is one example of data verification. Complete the description of p…
Constructs · 5 marks · official answer ready
(a) The business is deciding which topology to use. Tick (✓) one or more boxes in each row to identify the topology, or topologies, each statement describes. Statement Bus Star Me…
Constructs · 2 marks · official answer ready
(ii) One difference between an IPv4 and IPv6 address is that the numbers in an IPv4 address are separated by full stops and in an IPv6 address they are separated by colons. Identi…
Constructs · 2 marks · official answer ready
(c) The programmer uses program libraries when developing the program. Describe two benefits to the programmer of using program libraries. 1 ......................................…
Constructs · 0 marks
7 6 5 B C 4 3 2 A 1 x A triangle is said to be right-angled if the following test is true (where A is the length of the longest side): A2 = B2 + C2 A2 means A multiplied by A, for…
Constructs · 4 marks · official answer ready
1 (a) The following table contains pseudocode examples. Each example may contain statements that relate to one or more of the following: • selection • iteration (repetition) • inp…
Constructs · 3 marks · official answer ready
(b) State three benefits of using an array of records to store the data for all items. 1 ..........................................................................................…
