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.
The 20 questions
-
Which Little Man Computer instruction loads a value from memory into the accumulator?
- ADD
- INP
- STA
- LDA
-
Which Little Man Computer instruction branch occurs only if the accumulator value is zero?
- BRP
- BRA
- HLT
- BRZ
-
Which addressing mode uses the operand field directly as the data value itself?
- Indirect addressing
- Indexed addressing
- Direct addressing
- Immediate addressing
-
Which addressing mode holds the memory address of the location containing the data?
- Indexed addressing
- Indirect addressing
- Direct addressing
- Immediate addressing
-
Which addressing mode points to a memory location that holds the address of the operand?
- Direct addressing
- Indexed addressing
- Immediate addressing
- Indirect addressing
-
Which addressing mode calculates the address by adding a displacement to an index register?
- Indirect addressing
- Direct addressing
- Indexed addressing
- Immediate addressing
-
What is the primary purpose of the LMC instruction BRA?
- Branch if zero
- Store accumulator
- Unconditional branch
- Branch if positive
-
In assembly language, what term describes the numeric or mnemonic operation code?
- Opcode
- Label
- Operand
- Comment
-
In assembly language, what term describes the data or memory address used by an opcode?
- Operand
- Opcode
- Register
- Mnemonic
-
Which LMC instruction stores the contents of the accumulator into a specified memory address?
- LDA
- OUT
- STA
- DAT
-
Which LMC branch instruction triggers when the accumulator is zero or positive?
- SUB
- BRA
- BRZ
- BRP
-
If location 50 holds 7, what is in the accumulator after running LDA 50 then ADD 50?
- 50
- 7
- 14
- 100
-
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
-
How many memory accesses are required to fetch data using indirect addressing mode?
- Two
- Zero
- Three
- One
-
Which Little Man Computer instruction outputs the value currently stored in the accumulator?
- DAT
- INP
- STA
- OUT
-
What term describes human-readable character abbreviations for machine code instructions in assembly?
- Opcodes
- Mnemonics
- Operands
- Variables
-
Which Little Man Computer instruction subtracts the contents of a memory address from the accumulator?
- BRZ
- STA
- ADD
- SUB
-
Which Little Man Computer instruction prompts the user for a single numerical input?
- DAT
- HLT
- INP
- OUT
-
What software utility translates assembly language code directly into executable machine code?
- Assembler
- Linker
- Interpreter
- Compiler
-
Which Little Man Computer instruction reserves a memory location for storing data?
- STA
- HLT
- DAT
- INP
Related quizzes
- Operating systems and memory management Quiz · 1.2.1a · 20 questions
- Interrupts, scheduling, OS types, BIOS, device drivers and virtual machines Quiz · 1.2.1b · 20 questions
- Types of application, utilities and open vs closed source Quiz · 1.2.2a · 20 questions
- Translators, compilation stages, linkers and loaders Quiz · 1.2.2b · 20 questions
- Software development lifecycles and methodologies Quiz · 1.2.3 · 20 questions
- Programming paradigms, procedural and object-oriented languages Quiz · 1.2.4a · 20 questions
- Processor components: ALU, control unit, registers and buses Quiz · 1.1.1a · 20 questions
- Compression, encryption and hashing Quiz · 1.3.1 · 20 questions
- Primitive data types and binary number representation Quiz · 1.4.1a · 20 questions
- Data Protection Act 1998 and Computer Misuse Act 1990 Quiz · 1.5.1a · 20 questions