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 | |
|---|---|---|
| 110110001 00000101 | AThe CPU can only run machine code. Python code must be translated into machine code first. | |
| 2opcode | BA machine code instruction written as 0s and 1s, which the CPU can run directly | |
| 3Each machine code instruction is split into an opcode (the operation) and an operand (the data or address) | CThe opcode tells the CPU which operation to do. The operand is the data or address the operation uses. | |
| 4A program written in a high-level language must be translated into machine code before the CPU can run it | DThe part of a machine code instruction that tells the CPU which operation to perform | |
| 5The CPU can run Python code directly without any translation. | Esource code -> translator -> 01001101 | |
| 6In an instruction, the operand tells the CPU which operation to do. | Fopcode: 0001 operand: 0111 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
machine code — The binary (0s and 1s) form of instructions that the CPU can run directly. Each instruction has an opcode and an operand. Programs must be translated into it to run.instruction ← opcode + operandinstruction ← opcode + operandinstruction ← 00010101 // 8 bits1010 0011 // opcode: 1010 operand: 0011code ← TRANSLATE(source)