Computer Science 9608 · 10

10.4 Introduction to abstract data types

29 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2019 October-November · Paper 41 · Q1(b)(v)

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

(v) Explain why the circular queue could not be implemented as a stack. ...........................................................................................................…

2019 October-November · Paper 42 · Q2(c)

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

2019 October-November · Paper 43 · Q1(b)(v)

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

(v) Explain why the circular queue could not be implemented as a stack. ...........................................................................................................…

2019 May-June · Paper 41 · Q1(b)

Introduction to abstract data types · 3 marks

(b) A queue is an alternative Abstract Data Type (ADT). Describe a queue. .........................................................................................................…

2019 May-June · Paper 42 · Q2(a)

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]

2019 May-June · Paper 42 · Q2(b)(i)

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

2019 May-June · Paper 42 · Q2(b)(ii)

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

2019 May-June · Paper 43 · Q1(b)

Introduction to abstract data types · 3 marks

(b) A queue is an alternative Abstract Data Type (ADT). Describe a queue. .........................................................................................................…

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 · 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 41 · Q6(a)(ii)

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

2018 May-June · Paper 43 · Q6(a)(ii)

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

2017 May-June · Paper 42 · Q2(a)

Introduction to abstract data types · 1 mark

(a) A null pointer is shown as O. Explain the meaning of the term null pointer. ...................................................................................................…

2017 May-June · Paper 42 · Q2(b)

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…

2017 May-June · Paper 42 · Q2(c)(i)

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

2017 May-June · Paper 42 · Q2(c)(ii)

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

2015 October-November · Paper 41 · 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 42 · Q4(b)(iii)

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

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") …