Skip to content
Cambridge AS & A Level9626

Data processing

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Data processing notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Data processing notes as text: skim, search, and jump between subtopics.

~12 min read

1. Batch processing

In batch processing, data is collected and then processed all at once, as a single process, at a fixed time. Often this is at the end of the day, after the business has closed.

No action occurs until some time after the data was collected. Uses named by the syllabus include utility bills, credit card and debit card accounts, customer accounts, payroll and customer orders.

Examiner insight

“Therefore, any attempt to describe batch processing using the term ‘batch’ was unlikely to have achieved marks.” “‘Data is processed all at once’ was a popular response.”

Worked example 13 marks

A company works out the wages of all its employees once a month. Describe this method of processing. Do not use the word ‘batch’.

  1. 1

    All the processing is done at the same time, as a single process [1]

  2. 2

    It is done at a fixed time, for example at the end of the month [1]

  3. 3

    No action occurs until some time after the data was collected [1]

2. Updating a master file with a transaction file

The master file holds the permanent records. The transaction file holds the changes made since the last update. Each record is found by its key field, such as a product ID number.

The transactions are validated and sorted first. Then each record of each file is read, the IDs are compared, and a matching master record is updated.

The update is written as an algorithm below. It assumes both files are sorted on `ID` and every transaction ID exists in the master file. Master records with no transaction are copied to the new master file unchanged.

``` READ Master WHILE NOT EOF(TransactionFile) READ Transaction WHILE Master.ID < Transaction.ID WRITE Master TO NewMaster READ Master ENDWHILE Master.Stock ← Master.Stock - Transaction.Quantity ENDWHILE WRITE Master TO NewMaster WHILE NOT EOF(MasterFile) READ Master WRITE Master TO NewMaster ENDWHILE ```

Examiner insight

“Candidates tended to ignore Product ID numbers as the identifying factor for each record and tended to confuse the term file for record.” “Very few candidates appreciated the need for reading each record of each file before comparing these.”

Worked example 14 marks

A master file holds the stock of each product. The transaction file, sorted in the same order, lists items sold: product 102 sold 5, product 103 sold 3, product 103 sold 2. Describe how the master file is updated and give the new master file.

Product IDStock in master file
10120
10215
1038
  1. 1

    Read a record from each file and compare the product IDs [1]

  2. 2

    101 has no transaction, so it is written to the new master file unchanged: 101, 20 [1]

  3. 3

    102 matches: 15 - 5 = 10 [1]

  4. 4

    103 matches twice: 8 - 3 - 2 = 3. New master file: 101 with 20, 102 with 10, 103 with 3 [1]

3. Online processing

In online processing the user is in direct communication with a central computer. Each transaction is processed immediately.

In a seat-booking system, this stops double booking. The customer also knows at once whether the booking worked.

Examiner insight

“The most frequently awarded mark was for stating that trying to book a ticket using batch processing would lead to double booking.” “Many described the process of booking a ticket rather than describing the term interactive processing.”

Worked example 12 marks

A theatre sells seats through a website that uses online processing. Explain why batch processing would not suit this system.

  1. 1

    Trying to book a ticket using batch processing would lead to double booking [1]

  2. 2

    Customers would not know immediately whether they had booked a seat successfully [1]

4. Online processing in use

The syllabus names electronic funds transfer (EFT), automatic stock control, electronic data interchange (exchange), business-to-business buying and selling, and online shopping.

An automatic stock control system reorders automatically when the stock re-order level is reached. It recognises when a customer buys an item. Bar codes or RFID tags track items by automatic data capture.

For a chip and PIN reader, the reader communicates with its base station. The stored PIN is checked. The reader then communicates with the relevant bank account.

Examiner insight

“This question was not about how automatic stock control systems work but about how they are used by companies.” “While generic answers such as there being no need to carry money to retailers or financial institutions and the requirement for internet access and a suitable device were also accepted, responses should provide detailed descriptions rather than brief statements.”

Worked example 14 marks

Describe two benefits and two drawbacks of electronic funds transfer.

  1. 1

    Benefit: transactions can be carried out at any time [1]

  2. 2

    Benefit: there is no need to travel to purchase goods [1]

  3. 3

    Drawback: the amount of a transaction is limited by the funds available [1]

  4. 4

    Drawback: there is a risk of cyber-crime [1]

5. Real-time processing

In real-time processing the output affects the input. A microprocessor or computer controls the system, and the response is extremely fast. The system runs continuously and can run autonomously.

A control system has sensors (inputs) and actuators (outputs). A sensor sends its signal to the microprocessor via an ADC. The microprocessor compares the reading with pre-set values. It then signals an actuator to turn a device on or off.

The syllabus lists greenhouses, central heating, air conditioning, burglar alarms, traffic and car park systems, smart homes, guidance systems and autonomous vehicles.

Examiner insight

“Many candidates knew what was meant by real-time processing, but then failed to link this to the context of a rocket guidance system.” “A common incorrect answer arose from candidates thinking an actuator was an input device.”

Worked example 16 marks

A space rocket uses a guidance system. Describe how this guidance system uses real-time processing.

  1. 1

    It uses sensors and an output/actuator [1]

  2. 2

    A valid input, for example proximity sensors [1]

  3. 3

    A valid output, for example thrusters [1]

  4. 4

    The real-time processing occurs in a (micro-)processor [1]

  5. 5

    It uses feedback: the output affects the input, and the input from the sensors is used to alter the output [1]

  6. 6

    A valid action, for example trajectory correction: a sensor detects an object in the path of the rocket and fires thrusters to avoid it [1]

6. Comparing the methods

Batch processing is done at a fixed time, so the information is out of date until then. Data may be lost between the event and the processing, and errors are not identified at once.

Real-time processing is done as soon as the data arrives. Information is up to date, and a supermarket can order stock as soon as levels are low.

Use each where it fits: batch to pay wages, real-time to control rockets. In a comparison, write both sides.

Examiner insight

“Very few of the candidates seemed to have a clear idea of the distinction between real time and batch processing.” “Typically, candidates knew that batch processing collected data together and then dealt with groups of data, although some candidates attempted to describe this by referring to the term ‘batch’ which was not accepted.”

Worked example 14 marks

Compare the use of batch processing and real-time processing as methods of updating a record of daily sales in a supermarket that closes overnight.

  1. 1

    Batch: all the processing is done at the same time, at a fixed time such as the end of the day when the supermarket has closed [1]

  2. 2

    Batch: no action occurs until sometime after the sale [1]

  3. 3

    Real-time: processing is done immediately, as soon as an item is sold [1]

  4. 4

    Real-time: the supermarket can order as soon as stock levels become low (just in time stock control) [1]

Recap

  • Batch processing: data processed all at once, at a fixed time, with a delay after collection.
  • Master file = permanent records. Transaction file = the changes. Records are matched on the key field, such as a product ID.
  • Online processing: direct communication with a central computer and immediate processing, which prevents double booking.
  • Uses of online processing: EFT, automatic stock control, EDI, business-to-business buying and selling, online shopping.
  • Real-time processing: the output affects the input. Sensor, ADC, microprocessor, comparison with pre-set values, actuator.
  • Compare both sides: batch is delayed, real-time is up to date. Link every answer to the context in the question.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State one use of batch processing.1 mark
    Answer
    1. Payroll, or utility bills, or credit card accounts, or customer orders (any one) [1].

    Trap: Naming a real-time use such as a rocket guidance system.

  2. A company stores its employees' details. Each week it receives a file of the hours each employee worked. State which is the master file and which is the transaction file.2 marks
    Answer
    1. The employees' details are the master file [1].
    2. The hours worked this week are the transaction file [1].

    Trap: Swapping the two. The master file is the permanent record; the transaction file holds the changes.

  3. A theatre takes ticket bookings using online processing. Describe what is meant by online processing.2 marks
    Answer
    1. The user is in direct communication with a central computer [1].
    2. Each transaction is processed immediately [1].

    Trap: Describing the steps of booking a ticket instead of the term online processing, as examiners reported.

  4. A greenhouse uses a temperature sensor to switch a heater on and off. State the type of processing used and give a reason.2 marks
    Answer
    1. Real-time processing [1].
    2. The output (the heater) affects the input (the temperature the sensor reads) [1].

    Trap: Writing ‘online processing’ because the system is automatic.

  5. A master file holds product 201 with stock 12 and product 202 with stock 30. The transaction file lists items sold: product 201 sold 4, product 201 sold 3, product 202 sold 10. Give the new stock for each product.3 marks
    Answer
    1. Product 201 matches twice: 12 - 4 - 3 = 5 [2].
    2. Product 202 matches once: 30 - 10 = 20 [1].

    Trap: Applying only the first transaction for a product, which gives 8 instead of 5.

  6. A customer pays for goods online using electronic funds transfer. Give two benefits and one drawback to the customer.3 marks
    Answer
    1. Benefit: the payment can be made at any time [1].
    2. Benefit: there is no need to travel to purchase goods [1].
    3. Drawback: there is a risk of cyber-crime [1].

    Trap: A brief statement with no detail, such as ‘it is quick’, when a developed point is needed.

  7. A clothes shop uses an automatic stock control system. State three ways the shop uses it.3 marks
    Answer
    1. It reorders automatically when the stock re-order level is reached [1].
    2. It recognises when a customer buys an item, so shelves are always stocked with enough items [1].
    3. Bar codes or RFID tags on items track them by automatic data capture [1].

    Trap: Describing how the system works instead of how the shop uses it.

  8. Describe how a microprocessor-controlled oven keeps its temperature at a pre-set value.4 marks
    Answer
    1. A temperature sensor in the oven sends a signal to the microprocessor [1].
    2. The signal goes via an ADC [1].
    3. The microprocessor compares the reading with the pre-set value [1].
    4. It sends a signal to the actuator to turn the heater on or off [1].

    Trap: Saying the raw food is the input and the cooked food the output, or calling the sensor a ‘heat sensor’.

  9. A bakery keeps a master file of its products, sorted by product ID. During the day the tills write each sale to a transaction file in the order the sales happen: 330 sold 6, 310 sold 15, 330 sold 4, 340 sold 9. Overnight the master file is updated by batch processing. Describe the steps of the update and give the new master file. | Product ID | Stock in master file | | --- | --- | | 310 | 40 | | 320 | 25 | | 330 | 18 | | 340 | 9 |6 marks
    Answer
    1. Validate the transactions [1].
    2. Sort the transaction file on product ID into the same order as the master file: 310 sold 15, 330 sold 6, 330 sold 4, 340 sold 9 [1].
    3. Read a record from each file and compare the product IDs [1].
    4. 310 matches: 40 - 15 = 25 [1].
    5. 320 has no transaction, so it is written to the new master file unchanged: 25 [1].
    6. 330 matches twice: 18 - 6 - 4 = 8; 340 matches: 9 - 9 = 0. New master file: 310 with 25, 320 with 25, 330 with 8, 340 with 0 [1].

    Trap: Leaving out validation and sorting, or not comparing product IDs record by record, as examiners reported.

  10. An autonomous ship steers itself into a busy harbour. Describe how its guidance system uses real-time processing, and explain why batch processing could not be used.6 marks
    Answer
    1. It uses sensors and actuators [1].
    2. A valid input, for example a proximity sensor that detects another boat in its path [1].
    3. A valid output, for example thrusters that change the ship's direction [1].
    4. Processing occurs in a microprocessor, which compares the readings with pre-set values [1].
    5. Feedback: the ship turns, the sensors read the new distance, and this input alters the output again [1].
    6. Batch processing acts only some time after the data is collected, so the ship would hit the boat; real-time processing gives an extremely fast response [1].

    Trap: Defining real-time processing without linking it to the ship, or saying batch processing could control it.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
A ‘batch’ of data is processedData is collected and processed all at once
A heat sensor or thermometer in an ovenA temperature sensor
An actuator is an input deviceAn actuator is an output device that the microprocessor turns on or off
Real-time processing is used to pay wagesBatch processing pays wages; real-time processing controls rockets

Frequently asked questions

What is batch processing?
In batch processing, data is collected and then processed all at once, as a single process, at a fixed time, often at the end of the day after the business has closed. No action occurs until some time after the data was collected. Payroll is one use.
How is a master file updated with a transaction file?
The master file holds the permanent records, and the transaction file holds the changes made since the last update. Each record is found by its key field, such as a product ID. The transactions are validated and sorted first, then the IDs are compared and a matching master record is updated. Master records with no transaction are copied unchanged.
What is online processing?
In online processing the user is in direct communication with a central computer, and each transaction is processed immediately. In a seat-booking system this stops double booking, and the customer knows at once whether the booking worked. Electronic funds transfer is one example of its use.
How does real-time processing control a system such as a greenhouse heater?
In real-time processing the output affects the input. A sensor sends its signal to the microprocessor via an ADC, and the microprocessor compares the reading with pre-set values. It then signals an actuator to turn the heater on or off, which changes the temperature the sensor reads.
What are the uses of automatic stock control?
An automatic stock control system reorders automatically when the stock re-order level is reached. It recognises when a customer buys an item, and bar codes or RFID tags track items by automatic data capture. A supermarket can order stock as soon as levels are low.
Why do students lose marks when they describe batch processing?
Describing batch processing with the word batch earns no marks. Saying only that data is processed all at once is not enough. Add that it is done at a fixed time, and that no action occurs until some time after the data was collected. Real-time processing is not used to pay wages.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters