Computer Science 9608 · 10

Data types and structures

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

2018 October-November · Paper 31 · Q1(c)(i)

Data types and records · 1 mark

(i) Write a pseudocode statement to declare a variable, BestSeller, of type Book. .................................................................................................…

2018 October-November · Paper 31 · Q1(c)(ii)

Data types and records · 1 mark

(ii) Write a pseudocode statement to assign “John Williams” to the author of BestSeller. ..........................................................................................…

2018 October-November · Paper 33 · Q1(a)

Data types and records · 1 mark

(a) Name the data type of Book. ...............................................................................................................................................[1]

2018 October-November · Paper 33 · Q1(b)

Data types and records · 1 mark · official answer ready

(b) Name the non‑composite data type used in the Supplier declaration. ............................................................................................................…

2018 October-November · Paper 33 · Q1(c)(i)

Data types and records · 1 mark

(i) Write a pseudocode statement to declare a variable, BestSeller, of type Book. .................................................................................................…

2018 October-November · Paper 33 · Q1(c)(ii)

Data types and records · 1 mark

(ii) Write a pseudocode statement to assign “John Williams” to the author of BestSeller. ..........................................................................................…

2018 October-November · Paper 41 · Q2(a)

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. ....................................................................…

2018 October-November · Paper 42 · Q3(b)(i)

Arrays · 1 mark · official answer ready

(i) State the order of the sorted array. ...................................................................................................................................... [1]

2018 October-November · Paper 42 · Q3(b)(ii)

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 ..........................................…

2018 October-November · Paper 42 · Q6(a)(i)

Data types and records · 3 marks · official answer ready

(i) Use pseudocode to write a definition for the record type, ListElement. ........................................................................................................…

2018 October-November · Paper 42 · Q6(a)(ii)

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. ..................…

2018 October-November · Paper 43 · Q2(a)

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. ....................................................................…

2018 May-June · Paper 12 · Q1(a)(i)

Files · 3 marks · official answer ready

(i) State three file management tasks the OS performs. 1 ..........................................................................................................................…

2018 May-June · Paper 13 · Q7(c)

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…

2018 May-June · Paper 21 · Q1(b)(ii)

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 …

2018 May-June · Paper 21 · Q2(a)(i)

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 .............................................................…

2018 May-June · Paper 21 · Q2(a)(ii)

Data types and records · 1 mark · official answer ready

(ii) State one feature that could be added to make the pseudocode easier to understand. ...........................................................................................…

2018 May-June · Paper 21 · Q6(a)(i)

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. ...........................................................................................…

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

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…

2018 May-June · Paper 21 · Q7

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…