Data types and structures
283 questions. Open a question to solve it and check the official answer.
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") …
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…
Files · 1 mark · official answer ready
(ii) Give one reason why 16-bit sampling is used in an audio compact disc (CD). ...................................................................................................…
Files · 2 marks · official answer ready
(b) Describe two typical features found in software for editing sound files. 1 ....................................................................................................…
Files · 1 mark · official answer ready
(ii) Give one reason why 16-bit sampling is used in an audio compact disc (CD). ...................................................................................................…
Files · 2 marks · official answer ready
(b) Describe two typical features found in software for editing sound files. 1 ....................................................................................................…
Files · 0 marks
1 customer file purposes outputs the message “Read file code”
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 …
Files · 0 marks
1 customer file purposes outputs the message “Read file code”
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 …
Data types and records · 5 marks · official answer ready
(i) Write the definition for the data type LocationRainfall. ......................................................................................................................…
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 ............................................................…
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 .......................................................…
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) • …
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 …
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…
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…
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 …
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…
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…
