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 | |
|---|---|---|
| 1RAM = 4 GB, programs open = 6 GB | AVirtual memory is needed because RAM is limited in size, not because it is too fast. Virtual memory is actually slower than RAM. | |
| 2RAM full -> use virtual memory | BWhen RAM runs out of space, the computer uses part of secondary storage as extra RAM instead of failing | |
| 3RAM is limited in size, so it can only hold so much data at once | CIF dataNeeded > ramSize THEN useVirtualMemory | |
| 4Many programs open at once can use up all of the RAM | DWithout virtual memory programs might fail, but with it the computer uses secondary storage as extra RAM so programs keep running. | |
| 5Virtual memory is needed because RAM is too fast | EThe programs need more space than RAM has, so virtual memory is needed to hold the extra | |
| 6When RAM is full, programs must stop working | FtotalUsed ← browser + game + music + video |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
virtual memory — Part of secondary storage used as extra RAM, so a computer can run programs and data bigger than its RAM, with many programs open, without them failing when RAM is full.IF programsSize > ramSize THEN
useVirtualMemory()
ENDIFIF ramIsFull THEN
useVirtualMemory()
ENDIFIF manyProgramsOpen AND ramIsFull THEN
useVirtualMemory()
ENDIFuseVirtualMemory()
programFails ← FALSE
OUTPUT "Programs keep running"totalMemory ← ramSize + virtualSize
IF programsSize <= totalMemory THEN
runPrograms()