Computer Science For First Examination In 2021 9618 · 11

11.2 Constructs

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

Reset
2024 October-November · Paper 23 · Q1(a)

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…

2024 October-November · Paper 23 · Q2(b)

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…

2024 October-November · Paper 23 · Q5(b)(i)

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

2024 October-November · Paper 23 · Q8(c)

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…

2024 October-November · Paper 41 · Q1(c)

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…

2024 October-November · Paper 41 · Q3(c)(i)

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]

2024 October-November · Paper 41 · Q3(d)(iii)

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…

2024 October-November · Paper 42 · Q2(c)

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…

2024 October-November · Paper 42 · Q4(c)

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…

2024 October-November · Paper 42 · Q7(e)(ii)

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…

2024 October-November · Paper 43 · Q1(c)

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…

2024 October-November · Paper 43 · Q3(c)(i)

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]

2024 October-November · Paper 43 · Q3(d)(iii)

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…

2024 May-June · Paper 11 · Q5(b)

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…

2024 May-June · Paper 11 · Q8(a)

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…

2024 May-June · Paper 11 · Q8(b)(ii)

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…

2024 May-June · Paper 12 · Q8(c)

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

2024 May-June · Paper 21 · Q7

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…

2024 May-June · Paper 22 · Q1(a)

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…

2024 May-June · Paper 22 · Q3(b)

Constructs · 3 marks · official answer ready

(b) State three benefits of using an array of records to store the data for all items. 1 ..........................................................................................…