Lesson 4.7.3.5
4.7.3.5 Machine code and assembly language Quiz: AQA Computer Science, Unit 7
20 questions
In partnership with Revision Ninja
Lesson 4.7.3.5, Machine code and assembly language: 20 multiple choice questions for the AQA Computer Science (7517), Unit 7: Fundamentals of computer organisation and architecture, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
Which machine-code operation changes the flow of execution by loading a new address into the PC?
- Load
- Store
- Compare
- Branch
-
Which operation copies a value from a register to a memory location?
- Add
- Store
- Halt
- Load
-
What is the result of performing a logical shift left by one place on 0000 0011?
- 0000 0001
- 0000 0101
- 1000 0001
- 0000 0110
-
What is the result of performing a logical shift right by one place on 0000 1000?
- 0001 0000
- 0000 0100
- 0000 0010
- 0000 1100
-
What is the result of the bitwise AND of 1100 and 1010?
- 1110
- 1000
- 0111
- 0110
-
A program has LOAD #6, ADD #6 and then a logical shift left by one place, starting from an empty register. What value does the register hold at the end?
- 12
- 24
- 18
- 36
-
Which operation changes the PC only if a stated condition is met?
- Load
- Halt
- An unconditional branch
- A conditional branch
-
What is the result of the bitwise AND of 1011 0110 and 0000 1111?
- 0000 0000
- 1011 1111
- 0000 0110
- 1111 0000
-
What tool translates assembly language mnemonics into binary machine code?
- Interpreter
- Linker
- Compiler
- Assembler
-
A program adds two numbers stored at addresses 50 and 51 and stores the result at address 52, using direct addressing. Which sequence is correct?
- BRANCH 50, ADD 51, STORE 50
- STORE 50, SHIFT 51, LOAD 52
- LOAD 50, ADD 51, STORE 52
- LOAD #50, ADD #51, HALT
-
Which of these is NOT a logical bitwise operator?
- XOR
- AND
- ADD
- OR
-
Which assembly symbol indicates that an operand uses immediate addressing rather than direct addressing?
- @
- &
- $
- #
-
What is the primary purpose of a compare instruction in assembly language?
- Set status flags
- Store accumulator
- Load memory data
- Increment the PC
-
Which instruction stops the fetch-execute cycle?
- Halt
- Compare
- Store
- Branch
-
A program needs 7 + 9 in a register. Which operation is required?
- Compare
- Add
- Subtract
- Logical shift right
-
Which branch instruction always transfers control regardless of status flags?
- Subroutine call
- Loop return
- Unconditional branch
- Conditional branch
-
A program contains LOAD #5, ADD #3 and STORE 100. What value is stored at address 100?
- 5
- 3
- 8
- 15
-
What type of addressing is used in the assembly instruction ADD #3?
- Direct addressing
- Indexed addressing
- Immediate addressing
- Indirect addressing
-
Performing a logical shift left by two places multiplies an unsigned binary integer by what value?
- 2
- 16
- 8
- 4
-
A fragment performs LOAD 10 and then ADD 11. What is the value in the register at the end if location 10 holds 4 and location 11 holds 9?
- 36
- 4
- 9
- 13
Related quizzes
- Data types Quiz · 4.1.1.1 · 20 questions
- Entity relationship modelling Quiz · 4.10.1.1 · 20 questions
- Big Data Quiz · 4.11.1.1 · 20 questions
- Function types and first-class objects Quiz · 4.12.1.1 · 20 questions
- Analysis Quiz · 4.13.1.1 · 20 questions
- Data structures and abstract data types Quiz · 4.2.1.1 · 20 questions
- Breadth-first and depth-first search Quiz · 4.3.1.1 · 20 questions
- Problem-solving and algorithms Quiz · 4.4.1.1 · 20 questions
- Natural, rational, irrational and real numbers Quiz · 4.5.1.1 · 20 questions
- Programming concepts: sequence, selection and iteration Quiz · 4.1.1.2 · 20 questions