Computing 9691 · 10

Data types and structures

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

2013 May-June · Paper 32 · 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 32 · Q7(a)(i)

Arrays · 1 mark · official answer ready

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

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

Arrays · 1 mark · official answer ready

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

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

Arrays · 1 mark · official answer ready

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

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

Arrays · 1 mark · official answer ready

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

2013 May-June · Paper 32 · 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 33 · Q4(a)(i)

Data types and records · 2 marks · official answer ready

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

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

Data types and records · 1 mark · official answer ready

(ii) What benefit would be gained from using a dynamic data structure to implement a linked list? [1] 11 The linked list has the following items: BEAN, COURGETTE, APPLE, PEPPER Fo…

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

Data types and records · 5 marks · official answer ready

(b) What is the value of: MyList[HeadPointer].Data? [1] MyList[3].Pointer? [1]

2013 May-June · Paper 33 · Q4(c)

Data types and records · 4 marks · official answer ready

(c) Complete the linked list diagram by filling in the data and pointer values for each node. HeadPointer [4] 12

2013 May-June · Paper 33 · Q4(d)(iii)

Data types and records · 1 mark · official answer ready

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

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

Arrays · 1 mark · official answer ready

(i) FoundBigger(List3, 7, 50) [1]

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

Arrays · 1 mark · official answer ready

(ii) FoundBigger(List3, 7, 41) [1]

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

Arrays · 1 mark · official answer ready

(iii) FoundBigger(65, List1) [1]

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

Arrays · 1 mark · official answer ready

(iv) FoundBigger(List2, 10, “27”) [1] 20

2013 May-June · Paper 33 · Q7(b)

Data types and records · 3 marks · official answer ready

(b) A programmer writes pseudocode to calculate an employee’s net pay with a function For CalcNetPay. Examiner's Use The calculation is done using: • Employee’s pay grade (a singl…

2012 October-November · Paper 11 · Q4

Files · 6 marks · official answer ready

4 A teacher is responsible for the maintenance of the school network. For Examiner's Use Describe the following examples of utility software and state how they would be used by th…

2012 October-November · Paper 12 · Q7(b)(ii)

Files · 4 marks · official answer ready

(ii) The student file in a school administration system is implemented as a sequential file. If a new student begins at the school during the school year, describe how their recor…

2012 October-November · Paper 32 · Q8(a)(i)

Data types and records · 1 mark · official answer ready

(i) Explain what is meant by the term function identifier. [1]

2012 October-November · Paper 32 · Q8(a)(ii)

Data types and records · 1 mark · official answer ready

(ii) State the function identifier for the function given above. [1]