Computer Science 9608 · 10

Data types and structures

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

2015 October-November · Paper 43 · Q4(a)

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

(a) Show the final state of the binary tree after the following operations are carried out. CreateTree Add("Dodi") Add("Farai") Add("Elli") Add("George") Add("Ben") Add("Celine") …

2015 October-November · Paper 43 · Q4(b)

Data types and records · 62 marks · official answer ready

(b) The binary tree ADT is to be implemented as an array of nodes. Each node consists of data and two pointers. Using pseudocode, a record type, Node, is declared as follows: TYPE…

2015 May-June · Paper 11 · Q2(a)(ii)

Files · 1 mark · official answer ready

(ii) Give one reason why 16-bit sampling is used in an audio compact disc (CD). ...................................................................................................…

2015 May-June · Paper 11 · Q2(b)

Files · 2 marks · official answer ready

(b) Describe two typical features found in software for editing sound files. 1 ....................................................................................................…

2015 May-June · Paper 12 · Q2(a)(ii)

Files · 1 mark · official answer ready

(ii) Give one reason why 16-bit sampling is used in an audio compact disc (CD). ...................................................................................................…

2015 May-June · Paper 12 · Q2(b)

Files · 2 marks · official answer ready

(b) Describe two typical features found in software for editing sound files. 1 ....................................................................................................…

2015 May-June · Paper 21 · Q1

Files · 0 marks

1 customer file purposes outputs the message “Read file code”

2015 May-June · Paper 21 · Q3(c)

Files · 6 marks · official answer ready

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (c) The pseudocode is in its initial stage of …

2015 May-June · Paper 22 · Q1

Files · 0 marks

1 customer file purposes outputs the message “Read file code”

2015 May-June · Paper 22 · Q3(c)

Files · 6 marks · official answer ready

3 11053 [6] 5 2 A program displays a menu with choices 1 to 4. The code to display the menu is written as the procedure DisplayMenu. (c) The pseudocode is in its initial stage of …

2015 May-June · Paper 32 · Q3(b)(i)

Data types and records · 5 marks · official answer ready

(i) Write the definition for the data type LocationRainfall. ......................................................................................................................…

2015 May-June · Paper 33 · Q2(b)(i)

Files · 2 marks · official answer ready

2 (b) A user downloads a file using the FTP protocol. Explain the function played by each of the following: (i) Server ............................................................…

2015 May-June · Paper 33 · Q2(b)(iii)

Files · 2 marks · official answer ready

2 (b) A user downloads a file using the FTP protocol. Explain the function played by each of the following: (iii) Anonymous .......................................................…

2015 May-June · Paper 33 · Q4(b)(i)

Data types and records · 5 marks · official answer ready

4 (b) Temperature data from a number of weather stations are to be processed by a program. The following data are to be stored: • weather station ID (a unique four-letter code) • …

2015 May-June · Paper 41 · Q6(a)

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

(a) The following operations are carried out: CreateQueue AddName("Ali") AddName("Jack") AddName("Ben") AddName("Ahmed") RemoveName AddName("Jatinder") RemoveName Add appropriate …

2015 May-June · Paper 41 · Q6(b)(i)

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

(i) The CreateQueue operation links all nodes and initialises the three pointers that need to be used: HeadPointer, TailPointer and FreePointer. Complete the diagram to show the v…

2015 May-June · Paper 41 · Q6(b)(ii)

Introduction to abstract data types · 6 marks

(ii) The algorithm for adding a name to the queue is written, using pseudocode, as a procedure with the header: PROCEDURE AddName(NewName) where NewName is the new name to be adde…

2015 May-June · Paper 42 · Q6(a)

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

(a) The following operations are carried out: CreateQueue AddName("Ali") AddName("Jack") AddName("Ben") AddName("Ahmed") RemoveName AddName("Jatinder") RemoveName Add appropriate …

2015 May-June · Paper 42 · Q6(b)(i)

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

(i) The CreateQueue operation links all nodes and initialises the three pointers that need to be used: HeadPointer, TailPointer and FreePointer. Complete the diagram to show the v…

2015 May-June · Paper 42 · Q6(b)(ii)

Introduction to abstract data types · 6 marks

(ii) The algorithm for adding a name to the queue is written, using pseudocode, as a procedure with the header: PROCEDURE AddName(NewName) where NewName is the new name to be adde…