10.4 Introduction to abstract data types
29 questions in this subtopic. Open a question to solve it and check the official answer.
Introduction to abstract data types · 2 marks · official answer ready
(v) Explain why the circular queue could not be implemented as a stack. ...........................................................................................................…
Introduction to abstract data types · 3 marks · official answer ready
(c) A queue is one example of an Abstract Data Type (ADT). Identify three other Abstract Data Types. 1 ............................................................................…
Introduction to abstract data types · 2 marks · official answer ready
(v) Explain why the circular queue could not be implemented as a stack. ...........................................................................................................…
Introduction to abstract data types · 3 marks
(b) A queue is an alternative Abstract Data Type (ADT). Describe a queue. .........................................................................................................…
Introduction to abstract data types · 1 mark · official answer ready
(a) Tick (3) one box to show the statement that describes a stack data structure. Statement Tick (3) Last in first out First in first out Last in last out [1]
Introduction to abstract data types · 1 mark · official answer ready
(i) Show the contents of the stack in part (b) after the following operations. POP() POP() PUSH(10) [1] 13
Introduction to abstract data types · 1 mark · official answer ready
(ii) Show the contents of the stack from part (b)(i) after these further operations: POP() PUSH(50) PUSH(55) POP() PUSH(65) [1] 14
Introduction to abstract data types · 3 marks
(b) A queue is an alternative Abstract Data Type (ADT). Describe a queue. .........................................................................................................…
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. ....................................................................…
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. ....................................................................…
Introduction to abstract data types · 2 marks · official answer ready
(ii) An array, Scorers, will hold 10 nodes of type ListNode. Use pseudocode to write an array declaration for this array. The lower bound subscript is 0. .........................…
Introduction to abstract data types · 2 marks · official answer ready
(ii) An array, Scorers, will hold 10 nodes of type ListNode. Use pseudocode to write an array declaration for this array. The lower bound subscript is 0. .........................…
Introduction to abstract data types · 1 mark
(a) A null pointer is shown as O. Explain the meaning of the term null pointer. ...................................................................................................…
Introduction to abstract data types · 2 marks · official answer ready
(b) The following diagram shows an ordered binary tree after the following data have been added: Dublin, London, Berlin, Paris, Madrid, Copenhagen RootPointer Dublin Ø Berlin Ø Lo…
Introduction to abstract data types · 50 marks · official answer ready
(i) Add the relevant pointer values to complete the diagram. RootPointer LeftPointer Tree data RightPointer 0 [0] Dublin [1] London [2] Berlin [3] Paris [4] Madrid FreePointer [5]…
Introduction to abstract data types · 2 marks · official answer ready
(ii) Give an appropriate numerical value to represent the null pointer for this design. Justify your 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") …
Introduction to abstract data types · 6 marks · official answer ready
4 5 6 7 8 9 3 (i) Complete the GANTT chart by adding activities M and N. [2] (ii) State the earliest completion date. Week number .................................................…
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") …
