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.

Host this setFree Play

The 20 questions

  1. Which machine-code operation changes the flow of execution by loading a new address into the PC?

    • Load
    • Store
    • Compare
    • Branch
  2. Which operation copies a value from a register to a memory location?

    • Add
    • Store
    • Halt
    • Load
  3. What is the result of performing a logical shift left by one place on 0000 0011?

    • 0000 0001
    • 0000 0101
    • 1000 0001
    • 0000 0110
  4. What is the result of performing a logical shift right by one place on 0000 1000?

    • 0001 0000
    • 0000 0100
    • 0000 0010
    • 0000 1100
  5. What is the result of the bitwise AND of 1100 and 1010?

    • 1110
    • 1000
    • 0111
    • 0110
  6. 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
  7. Which operation changes the PC only if a stated condition is met?

    • Load
    • Halt
    • An unconditional branch
    • A conditional branch
  8. What is the result of the bitwise AND of 1011 0110 and 0000 1111?

    • 0000 0000
    • 1011 1111
    • 0000 0110
    • 1111 0000
  9. What tool translates assembly language mnemonics into binary machine code?

    • Interpreter
    • Linker
    • Compiler
    • Assembler
  10. 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
  11. Which of these is NOT a logical bitwise operator?

    • XOR
    • AND
    • ADD
    • OR
  12. Which assembly symbol indicates that an operand uses immediate addressing rather than direct addressing?

    • @
    • &
    • $
    • #
  13. What is the primary purpose of a compare instruction in assembly language?

    • Set status flags
    • Store accumulator
    • Load memory data
    • Increment the PC
  14. Which instruction stops the fetch-execute cycle?

    • Halt
    • Compare
    • Store
    • Branch
  15. A program needs 7 + 9 in a register. Which operation is required?

    • Compare
    • Add
    • Subtract
    • Logical shift right
  16. Which branch instruction always transfers control regardless of status flags?

    • Subroutine call
    • Loop return
    • Unconditional branch
    • Conditional branch
  17. A program contains LOAD #5, ADD #3 and STORE 100. What value is stored at address 100?

    • 5
    • 3
    • 8
    • 15
  18. What type of addressing is used in the assembly instruction ADD #3?

    • Direct addressing
    • Indexed addressing
    • Immediate addressing
    • Indirect addressing
  19. Performing a logical shift left by two places multiplies an unsigned binary integer by what value?

    • 2
    • 16
    • 8
    • 4
  20. 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

All AQA Computer Science quizzes