A Level Computer Science 9618, topic 10.3

Files: past paper questions

32 Cambridge A Level Computer Science 9618 questions on Files (10.3) from 26 papers, 2023 to 2026. Open the paper or try a question free.

Practising builds a set from this topic, free with an account. One question opens straight away, with no account.

Questions
32
Papers
26
Years
2023 to 2026
Total marks
440
Average per question
13.8 marks
Largest question
22 marks

By type: Structured 32

How hard the questions are

  • Recall5
  • Apply14
  • Analyse13
  • Not banded0

Derived from the command word Cambridge prints in each question, banded by a fixed table beside the syllabus's own definitions. A question printing no command word is unbanded: unknown, not middling.

Command words

  • writeRecall20 questions

    write an answer in a specific way

  • completeApply15 questions

    add information to an incomplete diagram or table

  • explainAnalyse9 questions

    set out purposes or reasons / make the relationships between things clear / say why and/or how and support with relevant evidence

  • describeApply8 questions

    state the points of a topic / give characteristics and main features

  • stateRecall6 questions

    express in clear terms

  • nameRecall4 questions
  • commentAnalyse3 questions

    give an informed opinion

  • findApply2 questions
  • identifyRecall2 questions

    name/select/recognise

  • suggestAnalyse2 questions

    apply knowledge and understanding to situations where there are a range of valid responses in order to make proposals / put forward considerations

Where the questions come from

By year

  • 20263
  • 20258
  • 20249
  • 202312

By session

  • May/June21
  • Oct/Nov11

By paper

  • Paper 227
  • Paper 32
  • Paper 43

Questions on this topic

Showing 25 of 32, spread across the years. Open one to write your answer and have it marked.

  • Question 6May/June 2026, paper 21Structured12 marks

    Fence parts are manufactured by a number of similar machines. The length of the part must fall within a certain range. Parts not within the length range are rejected.

    Try this question
  • Question 4Oct/Nov 2025, paper 21Structured9 marks

    A program contains a global 1D array Number consisting of 20 elements of type REAL A procedure Store() will input a sequence of up to 20 real values, one value at a time.

    Try this question
  • Question 3Oct/Nov 2024, paper 21Structured9 marks

    3 An algorithm will output the last three lines from a text file Result.txt The lines need to be output in the same order as they appear in the file. Assume: • Three variables LineX, LineY and LineZ will store the three lines.

    Try this question
  • Question 8Oct/Nov 2023, paper 21Structured19 marks

    A class of students are developing a program to send data between computers. Many computers are connected together to form a wired network. Serial ports are used to connect one computer to another.

    Try this question
  • Question 3May/June 2026, paper 22Structured6 marks

    3 A computer game uses a text file named WordList.txt containing 10000 words, all in lower case. Each word is unique and is stored on a separate line of the text file. An efficient algorithm is needed to check that a word input by the user is stored in WordList.txt.

    Try this question
  • Question 3Oct/Nov 2025, paper 22Structured10 marks

    A text file OldFile.txt contains IDs, names and email addresses for members of a club. Three information items are stored for each member and each item is stored on a separate line.

    Try this question
  • Question 8Oct/Nov 2024, paper 21Structured15 marks

    8 An exam paper has a maximum of 75 marks. One of five pass grades (A to E) is assigned, depending on the mark obtained. The lowest mark for a given grade is known as the grade boundary.

    Try this question
  • Question 6Oct/Nov 2023, paper 22Structured9 marks

    A procedure CreateFiles() will take two parameters: • a string representing a file name • an integer representing the number of files to be created.

    Try this question
  • Question 5May/June 2026, paper 23Structured11 marks

    Data is stored about people who have attended a job interview. Each interview is held at one of three office locations.

    Try this question
  • Question 2Oct/Nov 2025, paper 23Structured8 marks

    A program contains a global 1D array of type STRING containing 65 elements. An existing text file is used to store the data in the array. Only non-blank elements (those that do not contain an empty string) are written to the text file.

    Try this question
  • Question 8Oct/Nov 2024, paper 22Structured18 marks

    A program is being developed to implement a game for up to six players. During the game, each player assembles a team of characters. At the start of the game there are 45 characters available.

    Try this question
  • Question 8Oct/Nov 2025, paper 23Structured20 marks

    A program is being developed to manage student book loans from a college library. The programmer has defined a record type to define each loan.

    Try this question
  • Question 8May/June 2023, paper 21Structured21 marks

    A computer shop assembles computers using items bought from several suppliers. A text file Stock.txt contains information about each item.

    Try this question
  • Question 7May/June 2025, paper 21Structured18 marks

    A program is being developed to implement a customer loyalty scheme for a coffee shop.

    Try this question
  • Question 8May/June 2024, paper 21Structured15 marks

    A teacher is designing a program to process pseudocode projects written by her students. Each student project is stored in a text file. The process is split into a number of stages.

    Try this question
  • Question 3May/June 2023, paper 22Structured10 marks

    A program stores data in a text file. When data is read from the file, it is placed in a queue. The diagram below represents an Abstract Data Type (ADT) implementation of the queue.

    Try this question
  • Question 5May/June 2025, paper 22Structured12 marksHas a diagram

    An automated digital camera system is used to take a sequence of pictures of animals in a garden. During the design of the system, a state-transition diagram is produced.

    Try this question
  • Question 6May/June 2024, paper 22Structured10 marks

    A music player stores music in a digital form and has a display which shows the track being played. Up to 16 characters can be displayed.

    Try this question
  • Question 4May/June 2025, paper 23Structured8 marks

    A programmer is developing a new stock control program for a shop owner to produce sales reports. A text file Sales.txt stores strings representing the number of items sold. The file contains 52 lines, each representing the number of items sold in each week of the year.

    Try this question
  • Question 3May/June 2023, paper 23Structured11 marks

    A program processes data using a stack. The data is copied to a text file before the program ends. The following diagram shows the current state of the stack.

    Try this question
  • Question 8May/June 2024, paper 23Structured15 marks

    A teacher is designing a program to process pseudocode projects written by her students. The program analyses a student project and extracts information about each module that is defined (each procedure or function).

    Try this question
  • Question 8May/June 2023, paper 23Structured19 marks

    A computer shop assembles desktop computers, using items bought from several suppliers. A text file Stock.txt contains information about each item.

    Try this question
  • Question 1May/June 2024, paper 42Structured22 marks

    A program outputs a main word. The program asks the user to enter the different words of 3 or more letters that can be made from the letters in the main word. These are called the answers.

    Try this question
  • Question 10May/June 2023, paper 31Structured5 marks

    The pseudocode algorithm shown copies an active accounts text file ActiveFile.txt to an archive accounts text file ArchiveFile.txt, one line at a time.

    Try this question
  • Question 1May/June 2023, paper 41Structured18 marks

    A program reads data from a file and searches for specific data. The main program needs to read 25 integer data items from the text file Data.txt into a local 1D array, DataArray Write program code to declare the local array DataArray Save your program as Question1_J2023.

    Try this question