Study · Pearson Edexcel 1CP2 · 3.2.1–3.2.3; 3.3.1–3.3.2
Explain how software manages hardware and how source code runs.
About 90 minutes. Predict each figure, then try the green checks before you open them. The Quiz tab is the chapter check. Resources holds the long written questions.
Your learning route
Hardware does not, by itself, decide which program runs next, who may open a file, or how a document reaches a printer. System software does that work. This chapter names the operating-system jobs, the utilities that maintain a machine, and the difference between a high-level language, a compiler and an interpreter.
Use the school-laptop story throughout. Several students share the devices, files need permissions, and a printer sits on the network. The figures ask you to match a student action to the operating-system job, and to follow one source-code change through a compiler and through an interpreter.
The references are Pearson Edexcel 1CP2, sections 3.2 and 3.3.
Learning objectives
By the end of the chapter you should be able to:
- Explain file, process, peripheral, user and memory management with a consequence for the user
- Match a utility to the problem it addresses, and name one limit
- Distinguish a high-level language from assembly and machine code
- Compare compilation and interpretation by when the translation happens
- Explain what a code review and an audit trail can show, and what they cannot
14.1 The operating system manages resources
Name the resource, not just the software
Pick what the student is trying to do. Then name the operating-system job that makes it possible.
The operating system records the file’s name and location and sends the bytes to storage. The file is not stored inside the CPU.
Definition: System software manages the computer and provides services to applications. An application does a task the user cares about, such as editing a document. The operating system makes that task possible by managing files, processes, devices, users and memory.
Key terms:
- File management: records names and locations and carries out open, save, rename and delete. Permissions can restrict which account may read or change a file. Saving a document is not "putting it in the CPU".
- Process management: shares processor time so several programs can make progress. Switching from a browser to an editor is scheduling. It is not a claim that every instruction of both programs happens at the same instant.
- Peripheral management: talks to input and output devices, often through a driver. A driver translates the operating system's requests into the device's own instructions. A print queue holds jobs while the printer works through them. The queue does not make one printer produce every page at once.
- User management: provides accounts and permissions. Authentication checks who the person is. Authorisation decides what that identity may do. An administrator may install software while a student account cannot.
- Memory management: allocates RAM to processes. Virtual memory can move some data between RAM and secondary storage when RAM is full. That can let more programs stay open. Frequent transfers are slow, because secondary storage is much slower than RAM. Virtual memory is not free extra RAM.
Use the figure. Pick "save a project", "switch programs", "print" and "too many programs open", and name the job before you read the explanation.
Why This Matters: "The operating system manages the computer" is the definition, not the answer. A question wants the resource, the action, and who benefits.
Common Misconception: "If several programs are open, the CPU executes all of their instructions at exactly the same moment." A core executes a sequence of instructions. The scheduler switches quickly enough that the user can treat the programs as simultaneous. Extra cores can truly run separate instruction streams at the same time, and even then a single sequence of steps may not split.
Examiner tip
Pair the function with the school scenario. "File management stores the student's project and can refuse another student permission to delete it" is an explanation. "File management manages files" is a restatement.
Check yourself: A student can see a shared handout but cannot delete it. Which two ideas are in that sentence?
Retrieval answer
Authentication has already identified the student account. Authorisation has allowed reading and refused deletion. Those are user-management decisions carried out when the file is accessed. They are not encryption, and they are not a backup.
14.2 Utilities do one maintenance job each
Definition: A utility is a program that maintains or protects the system. The names are not interchangeable.
| Utility | What it does | What it does not do |
|---|---|---|
| Backup | Makes a copy that can be restored | It does not help if the copy is destroyed by the same incident |
| Compression | Rewrites data so it takes less space, when the method can | It does not shrink every file, and lossy methods discard information |
| Anti-malware | Detects, blocks or quarantines malicious software | It cannot promise to recognise every new attack |
| Defragmentation | Rearranges scattered pieces of a file on a magnetic disk | It does not increase the disk's capacity, and the moving-head argument does not apply to an SSD |
| Encryption | Makes data unreadable without the key | It is sometimes listed with security tools rather than everyday tidy-up utilities. It does not stop deletion |
Fragmentation means the pieces of a file are stored apart. On a magnetic disk the read head may have to move between those places. Defragmentation puts the pieces somewhere more convenient. Solid-state storage has no read head, so routine defragmentation is not the same recommendation.
Choose the utility from the failure you fear. Accidental deletion needs a tested backup. A suspicious download needs anti-malware and updates. Compressing a file does not stop another person reading it.
Why This Matters: Utility questions are matching questions with a limit. The second mark is usually the limit.
Common Misconception: "Defragment the SSD to make it bigger and faster." Defragmentation does not add capacity on any drive. On a magnetic disk it can reduce head movement. On solid-state storage that reason is absent.
Examiner tip
Name the storage technology before you recommend defragmentation. The processor chapter's solid-state and magnetic comparison is the evidence.
Check yourself: The school computers feel slow, RAM is full, and the magnetic disks are fragmented. Why does installing a compression utility fail to fix either cause?
Retrieval answer
Compression rewrites data so that some files occupy fewer bytes. It does not add RAM, so the virtual-memory transfers can continue. It does not gather the scattered blocks of a file into a layout that reduces read-head movement. Those are different problems and need memory and, for the magnetic disk, defragmentation or a different disk.
14.3 Languages and translators
When does the translation happen?
Follow the same source change under both models. A successful translation does not prove the program meets the user’s requirements.
The programmer changes the high-level source.
The whole source is translated before the run. The old executable is out of date until this finishes.
The translated program can run without the original source. A new machine still needs a compatible executable.
Definition: A high-level language gives the programmer readable constructs so an algorithm can be written without specifying every hardware operation. Python is an example. It is generally easier to read and can be moved to another kind of computer when a suitable translator exists there. Machine code is the instructions a particular processor can execute directly. Assembly language uses symbolic names for those low-level instructions and is translated by an assembler. Low-level code can control hardware closely and is tied more tightly to that processor.
Key terms:
- Source code: the program text the programmer writes and edits.
- Compiler: translates source into another form, commonly machine code, before the program is run. After a successful compile, that result can be run again without translating the whole source every time. A change to the source needs another compilation before the executable includes it.
- Interpreter: translates and executes during the run. This suits quick experiments. The interpreter has to be on the machine that runs the program, and the translation work happens again at run time.
- Assembler: translates assembly language into machine code.
Use the translator figure. Change one line and watch when the translation happens. A real Python system often compiles source to bytecode and then interprets that bytecode. In an exam comparison, describe the two models the question names. Do not claim that every modern language is only one of them. A successful translation means the translator accepted the syntax. It does not mean the program meets the user's requirements. A logic error can be translated perfectly.
"High-level" does not mean "more powerful" in every sense. Choose readable high-level code for a data-processing task. Choose low-level code when the task is close control of particular hardware. Portability still depends on libraries, the operating system, and whether a translator exists.
Why This Matters: Translator questions ask when the translation happens and what must be present on the target computer. Those are two different facts.
Common Misconception: "A compiler finds every bug." It can reject syntax the language does not allow. An empty input that the programmer forgot to handle, or a formula that uses the wrong price, can compile and still be wrong.
Examiner tip
Use a two-column comparison: when translation happens, and what the target computer needs. Add one reason a programmer might prefer each model. Stop there unless the question asks for more.
Check yourself: A compiled booking program is copied onto a laptop that does not have the original source or the compiler. Can it run, and can the user edit the source there?
Retrieval answer
The translated executable can run if it is compatible with that laptop. The user cannot edit the original source on that laptop if the source was not copied, and a source change would need another compilation somewhere. An interpreted program would instead need the interpreter on the laptop.
14.4 Reviews, tests and audit trails
Definition: A code review reads the source for defects, unclear assumptions and weaknesses. A test runs the program on chosen inputs. An audit trail records events such as who changed a record and when. Each one sees something the others miss.
A review can notice a missing check for an empty file before anybody runs that case. A test produces evidence for the inputs that were actually tried. A log shows what happened in real use. A log does not stop the event. Recording a file deletion and the account that did it is useful. Recording the student's password is not. Logs should support an investigation without collecting secrets they do not need.
Why This Matters: The booking-system question in the homework is a comparison of review and audit, not a request to say that both are "good for security".
Common Misconception: "If the tests passed, the program is finished." The tests speak for the cases you ran. A review can ask about cases you did not run. Neither replaces the other.
Examiner tip
Give each method one thing it can detect and one thing it cannot. Four short sentences can be a full four-mark answer.
Check yourself: A booking was changed at 19:40. Which of a code review or an audit trail is the tool that can show which account did it?
Retrieval answer
The audit trail, if it recorded the account and the change. A code review looks at the source. It might show that the program allows a booking to be edited. It cannot, by itself, say which account edited yesterday's booking.
Independent practice
Original practice · 8 marks. A shared computer slows down when several applications are open. Its magnetic disk also contains fragmented files. Explain how memory pressure and fragmentation can cause delay, and explain why installing a compression utility alone does not solve either underlying problem.
Eight-mark feedback
Insufficient RAM can require virtual-memory transfers [1] between RAM and secondary storage [1], whose slower access adds delay [1]. Fragmentation separates a file's blocks [1], requiring additional movement of a magnetic read head [1]. Defragmentation can reduce that movement [1]. Compression changes data representation or storage size [1]; it does not add RAM or necessarily rearrange file blocks to remove the stated causes [1].
Homework
Original practice · 4 marks. Compare a code review with an audit trail in the development and operation of a booking system.
Four-mark feedback
A review examines source code [1] and can identify a missing validation check before release [1]. An audit trail records operational events [1] and can help investigate which account changed a booking [1]. Neither alone proves all behaviour is correct.
For each concern, recommend one operating-system function or one utility: students reading each other's files, a lost project, a printer the computer does not know how to drive, and a suspicious download. Give the mechanism and one limit. Finish with the compiler and interpreter columns from the figure, in your own words.
How the exam boards differ
Pearson Edexcel 1CP2 topics 3.2 and 3.3 expect operating-system functions, utility software, high-level and low-level languages, and translators.
OCR J277 section 1.5 expects the operating system, utility software, and the roles of encryption, defragmentation and compression utilities. Section 2.5 expects high-level and low-level languages, compilers, interpreters and IDEs. An IDE's tools, such as an editor, error diagnostics and a run-time environment, can be asked about. This chapter's review and audit discussion supports that programming-practice content.
AQA 8525 expects systems software, classification of software, and translators in section 3.4, including the high-level and low-level distinction. AQA also has a separate database and SQL topic. SQL is not part of Edexcel 1CP2 or OCR J277, so it is not taught here. If you sit AQA, revise SQL from the AQA specification as an extra topic. Do not import it into an Edexcel answer about files.
All three boards accept virtual memory as the movement of data between RAM and secondary storage when RAM is insufficient. All three expect you not to treat an SSD defragmentation as if a read head were involved.
Sources and further practice
Practice questions and point allocations on this page are original Proof Academy material unless a question is explicitly identified as a past-paper bridge.
- Pearson Edexcel 1CP2 specification, topics 3.2 and 3.3
- OCR GCSE Computer Science J277, sections 1.5 and 2.5
- AQA GCSE Computer Science 8525, sections 3.4 and, separately, 3.7 for SQL
- PMT papers and mark schemes
When you use an original paper, open its matching mark scheme. A short classroom exercise is not a substitute for a full official task.
Keep your evidence
Export your notes before changing devices.
Notes stay in this browser. The Quiz tab records the chapter check, and Resources holds the long-answer questions.