The operating system keeps a record of where each program and its data are stored in main memory.
Identify why the operating system does this.
Mark scheme
- C To make sure existing programs and data are not overwritten (1)
- The only correct answer is C. The correct answer is to make sure existing programs and data are not overwritten.
- A is not correct because deciding which process runs next and for how long is not why the locations of programs in memory are recorded
- B is not correct because a program is only moved to secondary storage when virtual memory is used
- D is not correct because multi-tasking lets more than one process use the CPU in turn
Example answers and how they were marked
C To make sure existing programs and data are not overwritten
Why: Correct option: the OS keeps a record of where each program and its data are held so that new items are not stored over existing ones (1).
B To make sure each program is saved to secondary storage
Why: Saving to secondary storage is not why memory locations are recorded; that only happens when virtual memory is used. Near-miss, no mark.
A To make sure each program is given a higher priority than the others
Why: Confuses the record of memory locations with deciding the order in which processes run; no creditworthy point.