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.

2024 May-June · Paper 23 · Q7(a)(i)

Data types and records · 1 mark

(i) Identify the modules that would be implemented as functions. ..................................................................................................................…

2024 May-June · Paper 23 · Q7(b)

Data types and records · 6 marks · official answer ready

(b) Draw a structure chart to show the relationship between the seven modules and the parameters passed between them. [6] 18 , ,

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

Data types and records · 7 marks · official answer ready

(a) Write pseudocode for module Header(). .........................................................................................................................................…

2024 May-June · Paper 23 · Q8(b)

Data types and records · 8 marks · official answer ready

(b) A new module is required: Module Description FindModules() • called with a parameter of type string representing a student project file name • uses module Header() to check ea…

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

Data types and records · 4 marks · official answer ready

(b) Write pseudocode statements to declare the record data type FootballClub to hold data about football clubs in a league, to include: • name of team • date team joined the leagu…

2024 May-June · Paper 31 · Q4(b)

Files · 3 marks · official answer ready

(b) Explain how the sequential method of file access is applied to files with serial organisation and to files with sequential organisation. ......................................…

2024 May-June · Paper 31 · Q10(b)

Data types and records · 5 marks · official answer ready

(b) Complete the given pseudocode to find an item in a 1D array Names of type STRING using a binary search. DECLARE Names : ARRAY[1:100000] OF STRING DECLARE TopOfList : INTEGER D…

2024 May-June · Paper 32 · Q7

Files · 6 marks

7 (a) Outline what is meant by direct access as a method of file access. ..........................................................................................................…

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

Data types and records · 4 marks · official answer ready

8 (a) Complete the pseudocode to find an item in a 1D array Widgets of type STRING, using a linear search. DECLARE Widgets : ARRAY[1:50000] OF STRING DECLARE TopOfList : INTEGER D…

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

Data types and records · 4 marks · official answer ready

(b) Write pseudocode statements to declare the record data type FootballClub to hold data about football clubs in a league, to include: • name of team • date team joined the leagu…

2024 May-June · Paper 33 · Q4(b)

Files · 3 marks · official answer ready

(b) Explain how the sequential method of file access is applied to files with serial organisation and to files with sequential organisation. ......................................…

2024 May-June · Paper 33 · Q10(b)

Data types and records · 5 marks · official answer ready

(b) Complete the given pseudocode to find an item in a 1D array Names of type STRING using a binary search. DECLARE Names : ARRAY[1:100000] OF STRING DECLARE TopOfList : INTEGER D…

2024 May-June · Paper 42 · Q1(d)(ii)

Files · 1 mark · official answer ready

(ii) Test your program by inputting these words in the order shown: easy she out no Take a screenshot of the output(s). Save your program. Copy and paste the screenshot into part …

2024 May-June · Paper 42 · Q1(d)(iii)

Files · 1 mark · official answer ready

(iii) Test your program by inputting these words in the order shown: hard fine fined idea no Take a screenshot of the output(s). Save your program. Copy and paste the screenshot i…

2024 May-June · Paper 42 · Q3(a)

Data types and records · 1 mark · official answer ready

(a) The array of integers, NumberArray, stores the following data in the order given: The array is declared and initialised local to the main program. Write program code to declar…

2023 October-November · Paper 13 · Q5(b)(ii)

Files · 3 marks · official answer ready

(ii) The program files are stored on a new hard disk after they have been downloaded. Describe the reasons why a hard disk formatter is needed for the new hard disk. .............…

2023 October-November · Paper 21 · Q1(d)

Data types and records · 3 marks · official answer ready

(d) Give the appropriate data types for the variables ThisValue, Check and Level. ThisValue .......................................................................................…

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

Introduction to abstract data types · 0 marks · official answer ready

(a) The stack is implemented using two variables and a 1D array of 8 elements as shown. The variables are used to reference individual elements of the array, in such a way that: •…

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

Data types and records · 14 marks · official answer ready

(a) Write pseudocode for the function TooMany(). ..................................................................................................................................…

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

Data types and records · 2 marks · official answer ready

(ii) Give a sequence of four test data values that could be input to demonstrate the problem. Value 1 .............................................................................…