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 | |
|---|---|---|
| 1defragmenter | Aif driveType == "SSD": skip defragmentation | |
| 2fragmented file | BA utility that rearranges the scattered pieces of files on a hard disk drive so each file is stored together, which speeds up reading | |
| 3A defragmenter joins the pieces of each file into one contiguous block, so the file is stored together | CA file whose pieces are stored in different places on the disk instead of next to each other | |
| 4Defragmenting is not needed for solid-state storage, because an SSD has no moving parts to jump around the disk | DDefragmenting is for hard disk drives, not SSDs. An SSD has no moving parts, so it gains no speed from this. | |
| 5Defragmenter: deletes old files to free up space on the disk | EBefore: A1 B1 A2 B2 A3 -> After: A1 A2 A3 B1 B2 | |
| 6Run the defragmenter on an SSD to make it faster | FA defragmenter does not delete files. It only rearranges the pieces of files so each file is stored together. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
defragmenter — A utility that rearranges the scattered pieces of files on a hard disk drive so each file is stored together, which speeds up reading. It is not needed for SSDs.IF drive = "HDD" THEN
defragment(drive)
ENDIFIF drive = "SSD" THEN
needsDefrag ← FALSE
ENDIFIF pieces > 1 THEN
fragmented ← TRUE
ENDIFdrive ← "HDD"
defragment(drive)
OUTPUT "Files are now contiguous"WHILE pieces > 1
pieces ← pieces - 1
ENDWHILE