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 May-June · Paper 22 · Q6(a)

Constructs · 7 marks · official answer ready

(a) Up to 16 characters can be displayed. Track titles longer than 16 characters will need to be trimmed as follows: • Words must be removed from the end of the track title until …

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

Constructs · 8 marks · official answer ready

(c) Two modules are defined: Module Description DeleteComment() • called with a parameter of type string representing a line of (already written) pseudocode from a student’s proje…

2024 May-June · Paper 42 · Q1(b)

Constructs · 4 marks · official answer ready

(b) The main program asks the user to enter "easy", "medium" or "hard" and calls ReadWords()with the filename that matches the user’s input. For example, if the user enters "easy"…

2024 May-June · Paper 42 · Q2(b)(iii)

Constructs · 4 marks · official answer ready

(iii) The method OutputTree()outputs the left pointer, the data and the right pointer for each node that has been inserted into the tree. The outputs are in the order they are sav…

2023 October-November · Paper 11 · Q9(b)

Constructs · 3 marks · official answer ready

(b) Give one example of an embedded system and explain why it is an example of an embedded system. Example ........................................................................…

2023 October-November · Paper 12 · Q22

Constructs · 4 marks

22 END ... 100 0 101 0 ... 110 51 111 65 ASCII Character value 49 1 50 2 51 3 [4] 52 4 ... 65 A 66 B 67 C 68 D 16 reasonable effort has been made by the publisher (UCLES) to trace…

2023 October-November · Paper 13 · Q9(a)(ii)

Constructs · 2 marks · official answer ready

(ii) Identify two differences between special purpose registers and general purpose registers. 1 ..................................................................................…

2023 October-November · Paper 21 · Q2(a)

Constructs · 5 marks · official answer ready

2 (a) An algorithm is expressed as follows: • input 100 numbers, one at a time • keep a total of all numbers input that have a value between 30 and 70 inclusive and output this to…

2023 October-November · Paper 21 · Q2(b)

Constructs · 2 marks · official answer ready

(b) Sequence is one programming construct. Identify two other programming constructs that will be required when the algorithm is converted into pseudocode. Construct 1 ...........…

2023 October-November · Paper 21 · Q4(b)

Constructs · 11 marks · official answer ready

(b) The global array is changed to a 2D array, organised as 150 rows by 2 columns. It is declared in pseudocode as follows: DECLARE Data : ARRAY[1:150, 1:2] OF STRING The algorith…

2023 October-November · Paper 21 · Q5(a)

Constructs · 3 marks · official answer ready

(a) The pseudocode contains three errors due to the incorrect use of operators. Identify each error and state the correction required. 1 ..........................................…

2023 October-November · Paper 21 · Q5(b)(i)

Constructs · 2 marks · official answer ready

(i) Explain the problem with the algorithm. .......................................................................................................................................…

2023 October-November · Paper 22 · Q1(c)

Constructs · 3 marks · official answer ready

(c) The data that needs to be stored for each customer order in part (a) is not all of the same type. Describe an effective way of storing this data for many customer orders while…

2023 October-November · Paper 22 · Q8(a)

Constructs · 15 marks · official answer ready

(a) Write pseudocode for the procedure Count(). ...................................................................................................................................…

2023 October-November · Paper 22 · Q8(c)(i)

Constructs · 12 marks · official answer ready

(i) Describe the circumstances and explain the problem. Circumstances .............................................................................................................…

2023 October-November · Paper 23 · Q8(d)

Constructs · 12 marks · official answer ready

(d) Module GetData() returns the data field from a message that has been received. If no message is available, the module waits until one has been received. Explain the limitation…

2023 May-June · Paper 11 · Q6

Constructs · 5 marks · official answer ready

6 An interrupt is generated when a key is pressed on a computer keyboard. Explain how the computer handles this interrupt. ........................................................…

2023 May-June · Paper 21 · Q1(a)

Constructs · 4 marks · official answer ready

(a) Describe how a typical Integrated Development Environment (IDE) could be used to help debug the program to find the errors in the function Calculate(). .......................…

2023 May-June · Paper 21 · Q6

Constructs · 6 marks · official answer ready

6 A video-conferencing program supports up to six users. Speech from each user is sampled and digitised (converted from analogue to digital). Digitised values are stored in array …

2023 May-June · Paper 21 · Q8(b)

Constructs · 7 marks · official answer ready

(b) A new module has been defined: Module Description CheckNewItem() • called with a parameter of type string representing a line of item information • checks to see whether an it…