chapter 6 Flashcards
(20 cards)
Question: Which addressing mode uses the content of a register as the effective address?
- A) Immediate addressing
- B) Direct addressing
- C) Indirect addressing
- D) Register addressing
Indirect addressing
Question: In which addressing mode is the operand part of the instruction itself?
- A) Immediate addressing
- B) Direct addressing
- C) Register addressing
- D) Indexed addressing
Immediate addressing
Which of the following is NOT a characteristic of RISC architecture?
- A) Fixed instruction format
- B) Complex addressing modes
- C) Load/store architecture
- D) Large number of registers
Complex addressing modes
What is the primary advantage of register addressing mode?
- A) No memory reference needed
- B) Larger address space
- C) Simpler instruction format
- D) More flexible addressing
No memory reference needed
Which addressing mode is most suitable for accessing array elements?
- A) Direct addressing
- B) Indirect addressing
- C) Indexed addressing
- D) Register addressing
C) Indexed addressing
What does the term “orthogonal instruction set” mean?
- A) Instructions that operate at right angles
- B) Any operation can use any addressing mode
- C) Instructions that can be executed in parallel
- D) Instructions with fixed length encoding
- B) Any operation can use any addressing mode
- Question: Which of the following is a characteristic of CISC architecture?
- A) Fixed instruction length
- B) Few addressing modes
- C) Variable instruction length
- D) Load/store architecture
C) Variable instruction length
Question: In base register addressing, the effective address is calculated by:
- A) Adding an index to a base address
- B) Using the content of a register directly
- C) Adding a displacement to the content of a base register
- D) Using the address specified in the instruction
- C) Adding a displacement to the content of a base register
Question: Which addressing mode is most efficient for accessing local variables in a procedure?
- A) Direct addressing
- B) Base register addressing
- C) Indexed addressing
- D) Immediate addressing
- B) Base register addressing
Question: What is the main disadvantage of immediate addressing?
- A) It requires memory access - B) It limits the size of the operand - C) It is slower than register addressing - D) It requires complex address calculation
- B) It limits the size of the operand
. Question: Which addressing mode is typically used for implementing a stack?
- A) Direct addressing - B) Autoincrement/autodecrement addressing - C) Indexed addressing - D) Relative addressing
- B) Autoincrement/autodecrement addressing
Question: What is the purpose of PC-relative addressing?
- A) To access global variables - B) To implement position-independent code - C) To access array elements - D) To implement procedure calls
B) To implement position-independent code
Question: Which of the following is NOT a type of instruction in a typical instruction set?
- A) Data processing - B) Data storage - C) Data encryption - D) Program control
C) Data encryption
. Question: In which addressing mode is the effective address calculated by adding a displacement to the program counter?
- A) Indirect addressing - B) Indexed addressing - C) Relative addressing - D) Base register addressing
C) Relative addressing
Question: What is the primary advantage of displacement addressing?
- A) No memory reference needed - B) Flexibility in addressing different data structures - C) Simplicity of address calculation - D) Larger address space
Flexibility in addressing different data structures
Question: Which addressing mode is most suitable for accessing static global variables?
- A) Direct addressing - B) Indirect addressing - C) Register addressing - D) Immediate addressing
A) Direct addressing
Question: What is the main characteristic of a load/store architecture?
- A) All instructions can access memory - B) Only load and store instructions can access memory - C) All operations are performed in registers - D) Memory access is only allowed for data, not instructions
B) Only load and store instructions can access memory
Question: Which addressing mode requires the most bits in an instruction?
- A) Register addressing - B) Immediate addressing - C) Direct addressing - D) Indirect addressing
Direct addressing
Question: What is the purpose of autoincrement addressing mode?
- A) To simplify loop control - B) To access array elements sequentially - C) To implement recursive functions - D) To access memory-mapped I/O
- B) To access array elements sequentially
Which of the following is a benefit of RISC architecture?
- A) Reduced instruction count - B) Simplified compiler design - C) More efficient use of memory - D) Support for complex addressing modes
- B) Simplified compiler design