0% found this document useful (0 votes)
52 views4 pages

Quiz 2 - EUI - ComputerArchitecture - Updated

Uploaded by

Ayman Alahwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views4 pages

Quiz 2 - EUI - ComputerArchitecture - Updated

Uploaded by

Ayman Alahwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Faculty: Egypt University of Informatics – Faculty of Engineering

Department: Computer Engineering Level: Four

Quiz 2
9/12/2024
Course: Computer Architecture

Course Code: CSE 231

Quiz (2)
Question 1: Choose the correct answer.

1. What are the five classic components of a computer?


a) Memory, Input, Output, Processor, Control
b) Memory, Processor, Output, Input, Datapath
c) Memory, Input, Output, Datapath, Control
d) Memory, Processor, Datapath, Input, Output

2. Which instruction type in RISC-V performs operations between registers?


a) I-type
b) S-type
c) R-type
d) B-type

3. What does the program counter (PC) hold?


a) The current instruction being executed
b) The address of the next instruction to be executed
c) The memory address of data
d) The ALU operation result

4. In Flynn's taxonomy, which category is most commonly used in modern multi-core


processors?
a) SIMD
b) SISD
c) MISD
d) MIMD

5. Why is pipelining used in computer architecture?


a) To reduce latency
b) To improve throughput
c) To simplify the datapath design
d) To allow single-cycle execution
6. What is the main purpose of a multiplexer in the datapath?
a) Perform arithmetic operations
b) Write data to memory
c) Select between multiple inputs
d) Store instruction results

7. What ended the Dennard Scaling principle?


a) Increasing clock speeds
b) Heat dissipation and voltage limits
c) Parallelism challenges
d) Lack of transistor miniaturization

8. What is the key advantage of SIMD architecture?


a) Executes different instructions on different data
b) High parallelism for data-level tasks
c) Fault-tolerant operations
d) Handles single-threaded tasks effectively

9. What is the main role of the ALU in the datapath?


a) Store data temporarily
b) Perform arithmetic and logical operations
c) Fetch instructions from memory
d) Control the flow of data

10. In a pipelined architecture, what is the main reason for using registers between pipeline
stages?
a) To execute instructions faster
b) To prevent data hazards
c) To hold intermediate results for each stage
d) To reduce memory access time

11. Which instruction type in RISC-V updates the program counter based on a condition?
a) J-type
b) I-type
c) B-type
d) S-type
12. What does SIMD stand for in parallel processing?
a) Single Instruction, Multiple Data
b) Single Input, Multiple Data
c) Simple Instruction, Multi-core Design
d) Serial Instruction, Multiplexed Data

Question 2: Compare between

a) Scalar Processing and Vector Processing.

b) Single-Cycle Datapath and Pipelined Datapath.


Question 3: Given the following RISC-V instruction: LW x5, 8(x10)

o Base register x10=0x1000x10 = 0x1000

o Memory content at 0x1008=0x123456780x1008 = 0x12345678

Explain the steps for instruction execution, including datapath elements involved. What value
will register x5x5 hold after execution?

You might also like