• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

CSE 230 Final Questions with Correct Answers (Grade A+)

Document preview thumbnail
Preview 2 out of 8 pages

CSE 230 Final Questions with Correct Answers (Grade A+)

Content preview

CSE 230 Final Questions with Correct Answers (Grade A+)

Question 1: Select the hardware that is active during the Memory Access stage of the instruction cycle:
Data Memory Program Counter Instruction Memory Control Unit Register File ALU

Answer: Data Memory

Question 2: Stages of Instruction Cycle

Answer: Fetch Decode Execute Store

Question 3: Select the hardware that is active during the Fetch Stage of the instruction cycle: Register
File ALU Data Memory Program Counter Instruction Memory Control Unit

Answer: Program Counter Instruction Memory

Question 4: What is the maximum speedup (upper limit) of an N-stage pipelined processor? N/2 N N*N
4

Answer: N

Question 5: Which of the following are true about single cycle vs. pipelined processor designs? (Select
all that apply). Pipelined processors have decreased throughput compared to single-cycle designs. The
clock rate of single-cycle processors can be higher than that of pipelined designs. In a single cycle
design, a single instruction is executing in the processor during any single clock cycle. In a pipelined
design, the processor components are fully utilized, but by different instructions.

Answer: In a single cycle design, a single instruction is executing in the processor during any single clock
cycle. In a pipelined design, the processor components are fully utilized, but by different instructions.

Question 6: The speedup of a pipelined processor is due to the: Increased instruction count. Reduced
latency of executing each instruction. Reduced complexity of processor hardware. Increased
throughput.

Answer: Increased throughput.

Question 7: Which of the following must be added to a single-cycle processor in order to implement a
pipelined design? (Select all that apply) Modified Registers for simultaneous read/write. Hazard
Detection & Mitigation Hardware Additional RAM Additional Pipelining Instruction types. Pipeline
Registers

Answer: Modified Registers for simultaneous read/write. Hazard Detection & Mitigation Hardware Pipeline
Registers




Page 1

, Question 8: Where do we save the control signals for different instructions in a pipelined datapath? In
the 32 floating-point registers. In pipeline registers between the stages. In the 32 integer registers In the
stack.

Answer: In pipeline registers between the stages.

Question 9: Given the following code, what hazards occur? lw $s1, 0($s0) lw $s2, 4($s0) add $s3, $s1, $s2
sw $s3, 12($s0) lw $s4, 8($s0) add $s5, $s1, $s4 Structure Hazards Data Hazards None of these. Control
Hazards

Answer: Data Hazards

Question 10: A load instruction can cause a pipeline hazard because: It cannot cause a stall. The
memory write operation updates a memory location near the end of the pipeline The address of the next
instruction is unknown The memory read operation updates a register near the end of the pipeline Two
instructions use the same memory address

Answer: The memory read operation updates a register near the end of the pipeline

Question 11: Forwarding (bypassing) alone can completely avoid stall (bubble) caused by: Branching
Instructions All Instructions Store Instruction Load Instruction Arithmetic Instructions

Answer: Arithmetic Instructions

Question 12: Given the following code, what hazards occur? lw $s1, 0($s0) lw $s2, 4($s0) sw $s3, 12($s0)
lw $s4, 8($s0) add $s5, $s0, $s3 None of these. Data Hazards Structure Hazards Control Hazards

Answer: None of these.

Question 13: Which of the following techniques can reduce the effect of the hazards in this piece of code
(Select all that apply): lw $s1, 0($s0) lw $s2, 4($s0) add $s3, $s1, $s2 sw $s3, 12($s0) lw $s4, 8($s0) add
$s5, $s1, $s4 Overflow Handling Early Decision Forwarding Branch Prediction Answer Stall

Answer: Forwarding Answer Stall

Question 14: Which of the following describes static branch prediction? A history table is used to store
a single bit mapped to the branch instruction address, indicating that the branch was previously taken
or untaken. A history table is used to store multiple bits, mapped to the branch instruction address,
indicating the history of the branch behavior. A state machine is used to update the table. The next
instruction to load after a branch instruction is randomly chosen from instruction memory. Hardware
designer specifies to always predict a taken or untaken branch.

Answer: Hardware designer specifies to always predict a taken or untaken branch.




Page 2

Document information

Uploaded on
September 16, 2026
Number of pages
8
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
DrJon
3.8
(159)
Sold
600
Followers
188
Items
24731
Last sold
1 day ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions