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 | |
|---|---|---|
| 1memory management | AON program.close: free(program.block) | |
| 2allocate(browser, 512MB) | BThe OS has not kept the programs' memory separate. Each program must get its own block so they do not overlap. | |
| 3The OS keeps each program's memory separate so one program cannot overwrite another program's data | CThe OS decides which part of RAM each running program uses, keeps programs apart and frees the space when a program closes | |
| 4When a program closes, the OS frees its RAM so other programs can use the space | DThe OS has not freed the memory when the program ended. It should release the RAM so it can be reused. | |
| 5Two programs are both given RAM addresses 100 to 200 and can overwrite each other's data | EThe OS gives the browser its own block of RAM to use while it runs | |
| 6A game is closed but the OS keeps its RAM reserved, so free RAM slowly runs out | FIF address NOT IN program.block THEN DENY |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
memory management — The OS decides which part of RAM each running program uses, keeps programs from overwriting each other's memory, and frees the space when a program closes.block ← allocate(browser)IF closed = TRUE THEN
free(block)IF address < start OR address > end THEN
DENY()IF freeRam < size THEN
WAIT()block ← allocate(editor)
RUN(editor, block)
free(block)