Data types and structures
185 questions. Open a question to solve it and check the official answer.
Files · 5 marks · official answer ready
(ii) Information about students which is stored in the STUDENT file is sensitive and needs to be protected. State a piece of information that would be sensitive and describe steps…
Data types and records · 4 marks
(c) Draw a syntax diagram of REAL. You may use NZDIGIT, DIGIT, POINT and ZERO in your diagram but no other values. [4] reasonable effort has been made by the publisher (UCLES) to …
Data types and records · 4 marks · official answer ready
(c) Draw a syntax diagram of REAL. You may use NZDIGIT, DIGIT, POINT and ZERO in your diagram but no other values. [4] reasonable effort has been made by the publisher (UCLES) to …
Files · 1 mark · official answer ready
(i) State why it is necessary to create the transaction files in serial form. [1]
Files · 1 mark · official answer ready
(ii) State why it is necessary to turn the transaction files into a sequential file. [1]
Files · 3 marks · official answer ready
(a) By using file A to illustrate your answer, describe how an insertion sort can be used to sort data into alphabetical order. [3]
Files · 3 marks · official answer ready
(b) By using your sorted file A and file B to illustrate your answer, describe how a merge sort can be used to sort two files into one file in alphabetical order. [3]
Files · 0 marks · official answer ready
(i) Draw a binary tree using the data in file C and HEL as the root node.
Files · 0 marks · official answer ready
(ii) Explain the rules which you used to draw the tree.
Files · 7 marks · official answer ready
(iii) Describe how your tree can be used to output the file in alphabetical order. [7]
Files · 6 marks · official answer ready
10 Explain the importance of standardisation when developing computer solutions. [6] reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if an…
Data types and records · 2 marks · official answer ready
(i) State a suitable data type for each field. [2]
Files · 4 marks · official answer ready
(b) Give one advantage and one disadvantage of storing files in the form of fixed length records. Relate each of your answers to the example of the stock file. [4]
Files · 4 marks · official answer ready
(b) Describe a sensible procedure to be followed to back up the data. [4]
Introduction to abstract data types · 2 marks · official answer ready
(ii) Give one advantage and one disadvantage of using a linked list structure to store a queue rather than using an array structure. [2]
Introduction to abstract data types · 3 marks · official answer ready
(iii) Explain why a linked list is a more sensible structure than an array for storing a stack. [3] The remaining questions refer to the following information. A large store has a…
Files · 6 marks · official answer ready
5 (a) Explain why standardisation across computer systems is important. In your answer you should include comments about standardisation of hardware and software, file formats and…
Files · 3 marks
(a) Explain the relationship between files, fields and records, using examples from the car file. [3]
Introduction to abstract data types · 2 marks · official answer ready
(a) State two reasons why it would be preferable to store the queue in a linked list rather than an array. [2]
Data types and records · 4 marks · official answer ready
(a) State a suitable data type for each of the four fields. [4]
