Computer Science 9608 · 10

10.1 Data types and records

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

Reset
2021 May-June · Paper 21 · Q3(a)

Data types and records · 5 marks · official answer ready

3 (a) The following table contains information about five modules in a program. It describes the calls made and the parameters passed. Module Description • repeatedly calls Module…

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

Data types and records · 2 marks · official answer ready

(i) State whether Module_ZA() is a function or a procedure and justify your choice. ...............................................................................................…

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

Data types and records · 3 marks · official answer ready

(ii) Write the pseudocode header for Module_ZB(). .................................................................................................................................…

2021 May-June · Paper 21 · Q4(a)

Data types and records · 6 marks · official answer ready

(a) Write program code to implement this amended procedure ScanArray(). Visual Basic and Pascal: You should include the declaration statements for variables. Python: You should sh…

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

Data types and records · 2 marks · official answer ready

(b) Context-sensitive prompts are a feature of a typical Integrated Development Environment (IDE). Explain the term context‑sensitive prompt. .....................................…

2021 May-June · Paper 21 · Q4(c)(i)

Data types and records · 3 marks · official answer ready

(i) Identify the first stage in the program development cycle. State the tasks that are completed during this stage. First stage ..................................................…

2021 May-June · Paper 21 · Q4(c)(ii)

Data types and records · 1 mark · official answer ready

(ii) A program will be translated using a compiler. Identify the stage of the program development cycle where a syntax error may occur. ...........................................…

2021 May-June · Paper 21 · Q6(b)

Data types and records · 16 marks · official answer ready

(b) Write pseudocode for the module Backup(). .....................................................................................................................................…

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 22 · Q5(b)(ii)

Data types and records · 6 marks · official answer ready

(ii) The function, Verify(), is to be amended as follows: • if the UserID is "Guest", a password is not required and TRUE should be returned • output a message to try again if the…

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

Data types and records · 14 marks · official answer ready

(b) Write pseudocode for the module Restore(). ....................................................................................................................................…

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

Data types and records · 14 marks · official answer ready

(c) The module description of GetValidFilename() is as follows: Module Description • prompts and inputs a filename • validates the filename by checking that it: • is between 4 and…

2021 May-June · Paper 23 · Q4(a)(ii)

Data types and records · 1 mark · official answer ready

(ii) State the value returned by the function when it is called as shown in part (a)(i). ................................................ [1] 10

2021 May-June · Paper 23 · Q4(b)(i)

Data types and records · 2 marks · official answer ready

(i) Explain why this error can occur. ........................................................................................................................................... .…

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

Data types and records · 1 mark · official answer ready

(ii) Describe how the algorithm could be amended to correct the error. ............................................................................................................…

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…

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

Data types and records · 3 marks · official answer ready

(a) Write pseudocode to define the record type customer. ..........................................................................................................................…

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

Data types and records · 2 marks · official answer ready

(ii) Write pseudocode to declare the array binaryTree to store up to 100 objects of type node. ....................................................................................…

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

Data types and records · 2 marks · official answer ready

(a) Write the pseudocode record declaration for the data type Booking. ............................................................................................................…

2021 May-June · Paper 43 · Q2(a)

Data types and records · 3 marks · official answer ready

(a) Write pseudocode to define the record type customer. ..........................................................................................................................…