Computing 9691 · 10

Data types and structures

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

2013 May-June · Paper 11 · Q7(a)(i)

Arrays · 2 marks · official answer ready

(i) Describe how the Xs and Os would be stored in a two-dimensional array called Grid. [2]

2013 May-June · Paper 12 · Q7(a)(i)

Arrays · 2 marks · official answer ready

(i) Describe how the Xs and Os would be stored in a two-dimensional array called Grid. [2]

2013 May-June · Paper 23 · Q1(a)

Data types and records · 6 marks · official answer ready

(a) Complete the table. Use a single value for the size. Data Identifier Data Type Size (in bytes) subject Subject STRING examination title level Level 1 date sat DateSat mark Mar…

2013 May-June · Paper 23 · Q1(c)(ii)

Data types and records · 4 marks · official answer ready

(ii) In a programming language write the declaration for the record structure, giving it the identifier Exam. Programming language Declaration [4]

2013 May-June · Paper 31 · Q4(a)(i)

Arrays · 2 marks · official answer ready

(i) Explain the difference between a static and a dynamic data structure. [2]

2013 May-June · Paper 31 · Q4(a)(ii)

Arrays · 1 mark · official answer ready

(ii) What benefit would be gained from using a dynamic data structure to implement a binary tree? [1] 11 The initially empty tree has the following items added in this order: For …

2013 May-June · Paper 31 · Q4(b)

Arrays · 3 marks · official answer ready

(b) Draw the binary tree after these four items have been added. [3] 12

2013 May-June · Paper 31 · Q4(c)(ii)

Arrays · 4 marks · official answer ready

(ii) The diagram shows a trace of the execution of this algorithm for the given tree For data. Examiner's Use Fill in the missing lines of code. InOrder(PEPPER) LeftP[PEPPER] 0 is…

2013 May-June · Paper 31 · Q4(c)(iii)

Arrays · 1 mark · official answer ready

(iii) What do the arrows in the diagram represent? [1] 14

2013 May-June · Paper 31 · Q5(b)(i)

Data types and records · 2 marks · official answer ready

(i) Explain what is meant by code optimisation. [2]

2013 May-June · Paper 31 · Q7(a)(i)

Arrays · 1 mark · official answer ready

(i) CountCharacter(City1, 6, ‘O’) [1]

2013 May-June · Paper 31 · Q7(a)(ii)

Arrays · 1 mark · official answer ready

(ii) CountCharacter(City2, ‘R’, 8) [1]

2013 May-June · Paper 31 · Q7(a)(iii)

Arrays · 1 mark · official answer ready

(iii) CountCharacter(City3, 9, ‘t’) [1]

2013 May-June · Paper 31 · Q7(a)(iv)

Arrays · 1 mark · official answer ready

(iv) CountCharacter(City2, ’W’) [1] 19

2013 May-June · Paper 31 · Q7(b)(i)

Data types and records · 3 marks · official answer ready

(i) Show the function header for function StringFound. [3]

2013 May-June · Paper 32 · Q4(a)(i)

Arrays · 2 marks · official answer ready

(i) Explain the difference between a static and a dynamic data structure. [2]

2013 May-June · Paper 32 · Q4(a)(ii)

Arrays · 1 mark · official answer ready

(ii) What benefit would be gained from using a dynamic data structure to implement a binary tree? [1] 11 The initially empty tree has the following items added in this order: For …

2013 May-June · Paper 32 · Q4(b)

Arrays · 3 marks · official answer ready

(b) Draw the binary tree after these four items have been added. [3] 12

2013 May-June · Paper 32 · Q4(c)(ii)

Arrays · 4 marks · official answer ready

(ii) The diagram shows a trace of the execution of this algorithm for the given tree For data. Examiner's Use Fill in the missing lines of code. InOrder(PEPPER) LeftP[PEPPER] 0 is…

2013 May-June · Paper 32 · Q4(c)(iii)

Arrays · 1 mark · official answer ready

(iii) What do the arrows in the diagram represent? [1] 14