Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1page | Apaging | |
| 2swap out | BThe page must be swapped back into RAM before the CPU can use it | |
| 3A page the CPU needs is in virtual memory, so it is copied back into RAM | CMove an idle page from RAM to virtual memory to free up space | |
| 4Data is split into equal-sized blocks so it can be moved easily | DA fixed-size block of data that can be moved between RAM and virtual memory | |
| 5Pages are different sizes so they fit any gap in RAM | EPages are all the same fixed size, not different sizes | |
| 6The CPU runs a page straight from virtual memory | Fswap in |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
paging — Data is split into fixed-size pages. Idle pages are moved out of RAM into virtual memory, then swapped back into RAM when the CPU needs them.SWAP idlePage FROM RAM TO virtualMemorySWAP page2 FROM virtualMemory TO RAMIF page3Needed = TRUE THEN
SWAP page3 FROM virtualMemory TO RAM
ENDIFnumPages ← dataSize DIV pageSizeWHILE ramFull = TRUE DO
SWAP idlePage FROM RAM TO virtualMemory
ENDWHILE