Logic and computer systems · GCSE · OCR J277 1.2.1, AQA 8525 3.4.5, Edexcel 1CP2 3.1.1 · about 15 min
RAM, ROM, cache and virtual memory.
[1 mark]What does volatile mean?
[1 mark]What is ROM used for?
[1 mark]What is virtual memory?
[1 mark]Why does a computer slow down when it uses virtual memory a lot?
[1 mark]Put these in order from fastest to slowest.
Number the lines 1 to 4 to put them in the right order.
RegistersCacheSecondary storageRAMA computer has 4 GB of RAM, and the operating system always uses 1 GB. The apps in apps are opened in order. For each one, while it does not fit, move the app that has been in RAM longest to virtual memory and print moved <name> to virtual memory. Then load it and print <name> -> RAM. At the end, print RAM used: <n> GB and in virtual memory: <names>, the names joined with , .
# the two lines every program starts with: the commands, then the robot
from bugbot import *
connect()
ram_size = 4
os_size = 1
apps = [("browser", 1.5), ("game", 2.0), ("music", 0.5), ("editor", 1.0)]Plan your program here, then type it in and press Run.
ram_size to 8. How many moves to virtual memory are there now?