Lesson 1.2.4b

1.2.4b Assembly language, Little Man Computer and memory addressing modes Quiz: OCR Computer Science, Unit 2

20 questions

In partnership with Revision Ninja

Lesson 1.2.4b, Assembly language, Little Man Computer and memory addressing modes: 20 multiple choice questions for the OCR Computer Science (H446), Unit 2: Software and software development, 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 Little Man Computer instruction loads a value from memory into the accumulator?

    • ADD
    • INP
    • STA
    • LDA
  2. Which Little Man Computer instruction branch occurs only if the accumulator value is zero?

    • BRP
    • BRA
    • HLT
    • BRZ
  3. Which addressing mode uses the operand field directly as the data value itself?

    • Indirect addressing
    • Indexed addressing
    • Direct addressing
    • Immediate addressing
  4. Which addressing mode holds the memory address of the location containing the data?

    • Indexed addressing
    • Indirect addressing
    • Direct addressing
    • Immediate addressing
  5. Which addressing mode points to a memory location that holds the address of the operand?

    • Direct addressing
    • Indexed addressing
    • Immediate addressing
    • Indirect addressing
  6. Which addressing mode calculates the address by adding a displacement to an index register?

    • Indirect addressing
    • Direct addressing
    • Indexed addressing
    • Immediate addressing
  7. What is the primary purpose of the LMC instruction BRA?

    • Branch if zero
    • Store accumulator
    • Unconditional branch
    • Branch if positive
  8. In assembly language, what term describes the numeric or mnemonic operation code?

    • Opcode
    • Label
    • Operand
    • Comment
  9. In assembly language, what term describes the data or memory address used by an opcode?

    • Operand
    • Opcode
    • Register
    • Mnemonic
  10. Which LMC instruction stores the contents of the accumulator into a specified memory address?

    • LDA
    • OUT
    • STA
    • DAT
  11. Which LMC branch instruction triggers when the accumulator is zero or positive?

    • SUB
    • BRA
    • BRZ
    • BRP
  12. If location 50 holds 7, what is in the accumulator after running LDA 50 then ADD 50?

    • 50
    • 7
    • 14
    • 100
  13. If the index register holds 5, which address is accessed by an indexed instruction with base 100?

    • Address 95
    • Address 20
    • Address 500
    • Address 105
  14. How many memory accesses are required to fetch data using indirect addressing mode?

    • Two
    • Zero
    • Three
    • One
  15. Which Little Man Computer instruction outputs the value currently stored in the accumulator?

    • DAT
    • INP
    • STA
    • OUT
  16. What term describes human-readable character abbreviations for machine code instructions in assembly?

    • Opcodes
    • Mnemonics
    • Operands
    • Variables
  17. Which Little Man Computer instruction subtracts the contents of a memory address from the accumulator?

    • BRZ
    • STA
    • ADD
    • SUB
  18. Which Little Man Computer instruction prompts the user for a single numerical input?

    • DAT
    • HLT
    • INP
    • OUT
  19. What software utility translates assembly language code directly into executable machine code?

    • Assembler
    • Linker
    • Interpreter
    • Compiler
  20. Which Little Man Computer instruction reserves a memory location for storing data?

    • STA
    • HLT
    • DAT
    • INP

All OCR Computer Science quizzes