A processor takes a branch instead of continuing with the next sequential instruction. What happens to the program counter (PC)?
3 CPU Architecture Online Quiz Questions
Use this free practice quiz with 20 questions to review 3 CPU Architecture, test your knowledge, and prepare for your next test or exam.
Which description best explains how the control unit coordinates an instruction's execution?
- A
The register file performs the arithmetic and logical operations.
- B
The ALU decodes instructions and chooses the destination register.
- C
The control unit decodes instructions and issues signals to direct the datapath.
- D
The datapath stores the address of the next instruction.
A datapath has several possible values that could be sent to one destination. What role do multiplexers or other routing logic serve?
- A
They select which value is routed to a destination.
- B
They store the instruction currently being executed.
- C
They perform every arithmetic operation in place of the ALU.
- D
They update the PC whenever a result is zero.
A processor must signal that a memory operation is a write rather than a read. Which signal category communicates that action?
- A
Address signals carry values being transferred.
- B
Control signals can indicate whether a read or write action should occur.
- C
Data signals identify the memory location being accessed.
- D
Control signals always carry the operand to the ALU.
Select all statements that correctly describe general-purpose registers or a register file.
- A
General-purpose registers can hold operands used by instructions.
- B
General-purpose registers can hold addresses or intermediate results.
- C
A register file is the component that performs all ALU arithmetic.
- D
A register file can provide selected values to the datapath and accept results to store.
Select all statements that correctly describe system-level data, address, and control signals.
- A
Data signals carry values being transferred.
- B
Address signals identify a memory location or device.
- C
Every computer must use one shared bus for all data, address, and control signals.
- D
Control signals can indicate actions such as reading or writing.
An ALU can produce status information indicating that its result is zero.
- A
True
- B
False
Every processor completes each instruction in exactly one clock cycle.
- A
True
- B
False
Which special-purpose register holds the address of the next instruction to fetch?
Registers R1 and R2 contain 7 and 5. An instruction adds them and stores the result in R3. What value is written to R3?
What is the standard name for a group of general-purpose registers organized to provide selected values and accept results?
In the system-level signal categories, signals carry the values being transferred.
A records conditions such as whether a result is zero or negative.
Explain how the PC, control logic, datapath, and ALU work together to execute an instruction that adds the values in R1 and R2 and writes their sum to R3.
A processor must add two values held in registers. Which description correctly identifies the roles of the datapath and ALU?
- A
The control unit routes values between registers and the ALU, while the ALU chooses which instruction to decode.
- B
The datapath routes register values to the ALU, which performs the selected operation.
- C
The register file decodes instructions, while the datapath stores the program counter.
- D
The ALU fetches instructions from memory, while the control unit stores their results.
A CPU is writing a value to a specified memory location. Which signal type indicates that the write action should occur?
- A
An address signal identifies the memory location to access.
- B
A data signal carries the value being written to memory.
- C
A control signal indicates that a write action should occur.
- D
A data signal indicates the result of an ALU comparison.
Every processor’s ALU must perform shifting operations.
- A
True
- B
False
An instruction adds the values in R1 and R2 and writes the result to R3. Which sequence best describes the control logic’s role in this operation?
- A
Select the source registers, direct the ALU to add, and enable writing the result to the destination register.
- B
Add the values inside the PC, then direct the datapath to decode the result.
- C
Have the ALU select the registers and the control unit carry the result to the destination.
- D
Store the instruction in the status register, then use the ALU to fetch the operand values.
An instruction adds the value 7 in R1 to the value 5 in R2 and writes the result to R3. What integer value is written to R3?
A branch is taken, so execution continues at a different instruction than it otherwise would. What should the PC identify after the branch?
- A
The address of the instruction that was just decoded.
- B
The address of the destination register for the branch result.
- C
The value produced by the branch instruction’s ALU operation.
- D
The address of the instruction to fetch next, which may be at the branch target.