Data types and structures
283 questions. Open a question to solve it and check the official answer.
Data types and records · 1 mark
(i) Write a pseudocode statement to declare a variable, BestSeller, of type Book. .................................................................................................…
Data types and records · 1 mark
(ii) Write a pseudocode statement to assign “John Williams” to the author of BestSeller. ..........................................................................................…
Data types and records · 1 mark
(a) Name the data type of Book. ...............................................................................................................................................[1]
Data types and records · 1 mark · official answer ready
(b) Name the non‑composite data type used in the Supplier declaration. ............................................................................................................…
Data types and records · 1 mark
(i) Write a pseudocode statement to declare a variable, BestSeller, of type Book. .................................................................................................…
Data types and records · 1 mark
(ii) Write a pseudocode statement to assign “John Williams” to the author of BestSeller. ..........................................................................................…
Introduction to abstract data types · 4 marks · official answer ready
(a) Write pseudocode to declare an Abstract Data Type (ADT) named Book, to store the information in the table. ....................................................................…
Arrays · 1 mark · official answer ready
(i) State the order of the sorted array. ...................................................................................................................................... [1]
Arrays · 1 mark · official answer ready
(ii) State which line of the algorithm you would change to sort the array into the opposite order. State the change you would make. Line ..........................................…
Data types and records · 3 marks · official answer ready
(i) Use pseudocode to write a definition for the record type, ListElement. ........................................................................................................…
Introduction to abstract data types · 2 marks · official answer ready
(ii) Use pseudocode to write an array declaration to reserve space for only 15 nodes of type ListElement in an array, CountryList. The lower bound element is 1. ..................…
Introduction to abstract data types · 4 marks · official answer ready
(a) Write pseudocode to declare an Abstract Data Type (ADT) named Book, to store the information in the table. ....................................................................…
Files · 3 marks · official answer ready
(i) State three file management tasks the OS performs. 1 ..........................................................................................................................…
Files · 5 marks · official answer ready
7 A zoo has a computer system for the visitors to access multimedia content about the zoo and its animals. (c) Give the most appropriate secondary storage device for this computer…
Data types and records · 9 marks · official answer ready
1 (a) A program stores data about hospital patients. Give a suitable identifier name for each of the data items. Description of data item Suitable identifier name The temperature …
Data types and records · 4 marks · official answer ready
(i) This pseudocode includes features that make it easier to read and understand. State four such features. Feature 1 .............................................................…
Data types and records · 1 mark · official answer ready
(ii) State one feature that could be added to make the pseudocode easier to understand. ...........................................................................................…
Data types and records · 2 marks · official answer ready
(i) Use the correct technical terms to explain the meaning of [1:5] in this pseudocode. ...........................................................................................…
Data types and records · 8 marks · official answer ready
(b) A 2D array, Picture, contains data representing a bitmap image. Each element of the array represents one pixel of the image. The image is grey-scale encoded where the value of…
Data types and records · 7 marks · official answer ready
7 A function, ProcessMarks(), is required to analyse test marks for a class of students. • There are 20 students in the class. • A mark is between 0 and 100. • The marks for the c…
