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 | |
|---|---|---|
| 1thrashing | ARAM speed >> HDD speed, so swapping = slow | |
| 2Upgrade RAM from 4 GB to 16 GB | BVirtual memory uses secondary storage, which is much slower than RAM, so it cannot replace RAM. | |
| 3Secondary storage is much slower than RAM, so using it as virtual memory slows the computer down | CHeavy swapping makes the computer slower, because the CPU must wait for slow secondary storage to move pages. | |
| 4Virtual memory is only a backup when RAM is full and is not a replacement for RAM | DGives the computer more space for running programs, so fewer pages are swapped to virtual memory and it runs faster | |
| 5Virtual memory is faster than RAM, so a computer with lots of virtual memory never needs more RAM | EThe computer spends most of its time swapping pages between RAM and secondary storage, so it becomes very slow | |
| 6Heavy swapping makes the computer faster because pages move to secondary storage more often | FIF RAM_full THEN use virtual_memory |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
thrashing — When RAM is full, the computer keeps swapping pages to slow secondary storage, so it becomes sluggish. Adding more RAM reduces swapping. Virtual memory is no replacement for RAM.IF ramFull THEN
swapPages()
ENDIFIF swapsPerSecond > 100 THEN
sluggish = TRUE
ENDIFramSize = ramSize + 8
swapping = swapping - 1IF virtualSpeed < ramSpeed THEN
OUTPUT "Not a RAM replacement"
ENDIFstate = thrashing
OUTPUT "Computer is sluggish"