Data types and structures
185 questions. Open a question to solve it and check the official answer.
Data types and records · 2 marks · official answer ready
(i) Explain what is meant by code optimisation. [2]
Arrays · 1 mark · official answer ready
(i) CountCharacter(City1, 6, ‘O’) [1]
Arrays · 1 mark · official answer ready
(ii) CountCharacter(City2, ‘R’, 8) [1]
Arrays · 1 mark · official answer ready
(iii) CountCharacter(City3, 9, ‘t’) [1]
Arrays · 1 mark · official answer ready
(iv) CountCharacter(City2, ’W’) [1] 19
Data types and records · 3 marks · official answer ready
(i) Show the function header for function StringFound. [3]
Data types and records · 2 marks · official answer ready
(i) Explain the difference between a static and a dynamic data structure. [2]
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…
Data types and records · 5 marks · official answer ready
(b) What is the value of: MyList[HeadPointer].Data? [1] MyList[3].Pointer? [1]
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
Data types and records · 1 mark · official answer ready
(iii) What do the arrows in the diagram represent? [1] 14
Arrays · 1 mark · official answer ready
(i) FoundBigger(List3, 7, 50) [1]
Arrays · 1 mark · official answer ready
(ii) FoundBigger(List3, 7, 41) [1]
Arrays · 1 mark · official answer ready
(iii) FoundBigger(65, List1) [1]
Arrays · 1 mark · official answer ready
(iv) FoundBigger(List2, 10, “27”) [1] 20
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…
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…
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…
Data types and records · 1 mark · official answer ready
(i) Explain what is meant by the term function identifier. [1]
Data types and records · 1 mark · official answer ready
(ii) State the function identifier for the function given above. [1]
