chapter 6 Flashcards

(20 cards)

1
Q

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

A

Indirect addressing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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
A

Immediate addressing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

Complex addressing modes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

No memory reference needed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which addressing mode is most suitable for accessing array elements?

  • A) Direct addressing
  • B) Indirect addressing
  • C) Indexed addressing
  • D) Register addressing
A

C) Indexed addressing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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
A
  • B) Any operation can use any addressing mode
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. 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
A

C) Variable instruction length

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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
A
  • C) Adding a displacement to the content of a base register
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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
A
  • B) Base register addressing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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
A
  • B) It limits the size of the operand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

. Question: Which addressing mode is typically used for implementing a stack?

- A) Direct addressing
- B) Autoincrement/autodecrement addressing
- C) Indexed addressing
- D) Relative addressing
A
  • B) Autoincrement/autodecrement addressing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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
A

B) To implement position-independent code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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
A

C) Data encryption

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

. 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
A

C) Relative addressing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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
A

Flexibility in addressing different data structures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A) Direct addressing

16
Q

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
A

B) Only load and store instructions can access memory

17
Q

Question: Which addressing mode requires the most bits in an instruction?

- A) Register addressing
- B) Immediate addressing
- C) Direct addressing
- D) Indirect addressing
A

Direct addressing

18
Q

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
A
  • B) To access array elements sequentially
19
Q

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
A
  • B) Simplified compiler design