10.3 Files
31 questions in this subtopic. Open a question to solve it and check the official answer.
Files · 5 marks · official answer ready
(e) Zara wants to save the contents of the data structure Puzzle to a sequential file Puzzle.TXT Write program code for the procedure SavePuzzleToFile(Puzzle). Programming languag…
Files · 6 marks · official answer ready
(ii) Write pseudocode to read the data from the file CourseData.DAT into the array Course. ........................................................................................…
Files · 6 marks · official answer ready
(ii) Write pseudocode to read the data from the file CourseData.DAT into the array Course. ........................................................................................…
Files · 5 marks · official answer ready
(a) The table below shows five applications. For each application, choose the most appropriate storage medium from the list. Application Storage medium A programming text book pro…
Files · 5 marks · official answer ready
(e) Ali intends to save his board design to a text file. In a high-level programming language write the procedure SaveBoardDesign to save to the file Design.txt: • the contents of…
Files · 3 marks
(c) At present when the program terminates all the ebook data are lost. How can these data be stored and made available every time the program is run? [3] 7
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…
Files · 1 mark · official answer ready
(ii) State why user files currently being used are stored in RAM. [1]
Files · 0 marks · official answer ready
(f) The records will be held in a serial file. Give three statements from a high-level language that may be used for the file handling and explain what each does. Language 1
Files · 0 marks · official answer ready
(f) The records will be held in a serial file. Give three statements from a high-level language that may be used for the file handling and explain what each does. Language 1
Files · 0 marks · official answer ready
(f) The records will be held in a direct access file. For Give four statements from a high-level programming language that may be used for Examiner's Use the file handling and exp…
Files · 4 marks · official answer ready
6 State an example of each of the following types of storage medium and give a use for each. For Examiner's Use (i) Magnetic Example Use [2] (ii) Solid state Example Use [2] 7
Files · 3 marks · official answer ready
(a) File allocation table (FAT) [3]
Files · 2 marks · official answer ready
(d) file handling [2]
Files · 5 marks · official answer ready
7 Backup files and archive files are taken from the STUDENT file. Explain the difference between backing up and archiving a file, making reference to the requirements of this appl…
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…
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]
