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 | |
|---|---|---|
| 1PC = PC + 1 | AThe PC holds the address of the next instruction, not the instruction itself, so it cannot store ADD 5. | |
| 2MAR <- PC | BThe program counter increments so it holds the address of the next instruction | |
| 3The PC holds an address, not an instruction, so it stores the location of the next instruction in RAM | CJUMP 50 -> PC = 50 | |
| 4When the program jumps, the PC changes to the address of the jump target instead of just adding 1 | DThe address in the program counter is copied to the memory address register to start a fetch | |
| 5PC = "ADD 5" | EThe PC increments after each fetch so it points to the next instruction. If it stayed the same, the same instruction would be fetched again. | |
| 6After a fetch, the PC stays the same | FPC = 200 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Program counter (PC) — A register in the CPU that holds the address of the next instruction to be fetched. It increments after each fetch and changes when the program jumps.MAR ← PCPC ← PC + 1JMP 50
PC ← 50# PC holds an address, not an instructionMAR ← PC
PC ← PC + 1