Computer Science 9608 · 10

Data types and structures

7 questions. Open a question to solve it and check the official answer.

Reset
2021 May-June · Paper 21 · Q6(c)

Data types and records · 16 marks · official answer ready

(c) The module description of Unpack() is repeated here for reference. Module Description • called with two parameters: o an array index Unpack() o a string value read from one li…

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

Data types and records · 17 marks · official answer ready

(c) Two additional modules are required: Module Description • called with a STRING representing a product group (for example, "ABLK") Lookup() • searches the Summary array for the…

2019 October-November · Paper 21 · Q6(d)(ii)

Data types and records · 2 marks · official answer ready

(ii) Write program code for a statement that calls the modified ClearArray() procedure to clear the array Duplicates to "Empty". Programming language .............................…

2019 October-November · Paper 22 · Q6(c)

Data types and records · 3 marks · official answer ready

(c) CountTimes() is to be used to count how many unused elements there are in the Leavers array. An unused element is one that contains an empty string. The module description is …

2019 May-June · Paper 22 · Q6(c)

Data types and records · 3 marks · official answer ready

(c) Write pseudocode for the module declaration of WriteInfo(). ...................................................................................................................…

2019 May-June · Paper 23 · Q6(c)

Data types and records · 3 marks · official answer ready

(c) ProcessArray() is modified to make it general purpose. It will now be called with two parameters as follows: • an array • a string representing the name of a class contact fil…

2018 October-November · Paper 22 · Q5

Data types and records · 11 marks · official answer ready

5 The procedure LineNumber() will: • read data from a text file • modify each line by adding a line number, and the string (": ") • output each modified line. For example, when th…