Data types and structures
223 questions. Open a question to solve it and check the official answer.
Data types and records · 1 mark
(i) Identify the modules that would be implemented as functions. ..................................................................................................................…
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 , ,
Data types and records · 7 marks · official answer ready
(a) Write pseudocode for module Header(). .........................................................................................................................................…
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…
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…
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. ......................................…
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…
Files · 6 marks
7 (a) Outline what is meant by direct access as a method of file access. ..........................................................................................................…
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…
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…
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. ......................................…
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…
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 …
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…
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…
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. .............…
Data types and records · 3 marks · official answer ready
(d) Give the appropriate data types for the variables ThisValue, Check and Level. ThisValue .......................................................................................…
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: •…
Data types and records · 14 marks · official answer ready
(a) Write pseudocode for the function TooMany(). ..................................................................................................................................…
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 .............................................................................…
