Computer Science For First Examination In 2021 9618 · 10

Data types and structures

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

2025 October-November · Paper 12 · Q8(b)(ii)

Files · 2 marks · official answer ready

(ii) The image files that are displayed on the touchscreen have been corrupted. Identify two examples of utility software that could be used to recover the images. 1 .............…

2025 October-November · Paper 13 · Q5(b)

Data types and records · 4 marks · official answer ready

(b) Some example data from the STAFF table is shown. StaffID StaffFirstName StaffLastName Department RemoteWorker 1 Ralph Jura E Yes 2 Luca Emcee A Yes 3 Darwin Acula F No Write a…

2025 October-November · Paper 21 · Q1(a)

Data types and records · 4 marks · official answer ready

(a) The program contains these variables: Variable Data type MyChar CHAR MyString STRING MyInt INTEGER MyDOB DATE Complete the table by filling in the gaps using functions and/or …

2025 October-November · Paper 21 · Q3(a)(i)

Data types and records · 4 marks · official answer ready

(i) Write pseudocode to declare the record structure for type RentalRecord ........................................................................................................…

2025 October-November · Paper 21 · Q3(a)(ii)

Arrays · 2 marks · official answer ready

(ii) A 1D array Rental containing 500 elements is used to store the data for all rental records. Write pseudocode to declare the Rental array. ....................................…

2025 October-November · Paper 21 · Q7(b)

Data types and records · 5 marks · official answer ready

(b) A structure chart is used to document a different part of the program. This part of the program contains six modules: Pseudocode module header PROCEDURE Setup() PROCEDURE Rest…

2025 October-November · Paper 21 · Q8(a)

Data types and records · 7 marks · official answer ready

(a) Write efficient pseudocode for the module OKToBorrow() ........................................................................................................................…

2025 October-November · Paper 22 · Q1(b)

Data types and records · 3 marks · official answer ready

(b) Complete the table by giving the appropriate data type. Variable Example data value Data type Result 5.42 MonthLetter "JFMAMJJASOND" Birthday 15/11/2009 [3]

2025 October-November · Paper 22 · Q6(a)

Files · 6 marks

(a) The algorithm to create the new file is expressed in steps. Complete the following numbered steps: Step 1 : open the file ..................................... in ............…

2025 October-November · Paper 23 · Q1(b)(ii)

Data types and records · 2 marks · official answer ready

(ii) A function header in pseudocode is defined as: FUNCTION Pass2(Count : INTEGER) RETURNS BOOLEAN Complete the table by describing the terms used in the function header. The fir…

2025 October-November · Paper 23 · Q6(b)

Data types and records · 7 marks · official answer ready

(b) A function CheckNumber() will take an integer value and return the Boolean value TRUE if the check digit is correct, otherwise return FALSE Write pseudocode for the function C…

2025 October-November · Paper 23 · Q7(b)

Data types and records · 4 marks · official answer ready

(b) A structure chart is used to document a different part of the program, made up of five modules. Program notes: • module Setup calls either module Restart, or module Confirm • …

2025 October-November · Paper 23 · Q8(a)

Data types and records · 8 marks · official answer ready

(a) Write efficient pseudocode for the module LoanStatus() Assume that each combination of StudentID and BookID can occur only once. ..............................................…

2025 October-November · Paper 23 · Q8(b)

Data types and records · 7 marks · official answer ready

(b) A second module is defined: Module Description • called with a parameter of type STRING representing a tutor ID (as a reminder, the first three characters of a StudentID repre…

2025 October-November · Paper 23 · Q8(c)(ii)

Data types and records · 1 mark · official answer ready

(ii) There is a problem that will need to be overcome before the data items can be written to a text file. As a reminder, the data items are: Data item Data type Comment the uniqu…

2025 October-November · Paper 31 · Q1(a)(i)

Data types and records · 1 mark

(i) Write the pseudocode statement to set up a variable for one record of the composite data type, ClubMember. ....................................................................…

2025 October-November · Paper 31 · Q1(a)(ii)

Data types and records · 2 marks · official answer ready

(ii) Write the pseudocode statements to assign the following values to the variable set up in part (a)(i): • 984632 to Code • TRUE to FeesPaid ....................................…

2025 October-November · Paper 31 · Q1(b)(i)

Data types and records · 2 marks · official answer ready

(i) Write the pseudocode statement for the type declaration of Activity to hold the names of the available activities: Badminton, Football, Golf, Snooker, Swimming, Tennis. ......…

2025 October-November · Paper 31 · Q1(b)(ii)

Data types and records · 1 mark · official answer ready

(ii) Write the new pseudocode statement required to update the declaration of Choice in the definition of ClubMember. .............................................................…

2025 October-November · Paper 31 · Q9(a)(ii)

Data types and records · 1 mark

(ii) Write the pseudocode to output the data item removed from the stack with an appropriate message. .............................................................................…