Computer Architecture Questions Review
Computer Architecture Questions Review
Year 3 CS/DAY
Instructions:
- Try to revise and respond to all of these questions for your preparation
- Don’t fail to try but, Try and fail
6. Before explaining types of bus, what is the role of bus in computer system?
Role of Bus in Computer System
The bus serves as a communication pathway, transferring data and control signals
between various components like CPU, memory, and peripherals.
7. Describe four basic methods used for communicating with an I/O device
Four Basic Methods for Communicating with an I/O Device
Programmed I/O
Interrupt-driven I/O
Direct Memory Access (DMA)
Memory-mapped
16.With help of neat diagrams, describe Direct Memory Access (DMA) operation for
communicating with I/0 devices.
DMA allows I/O devices to transfer data directly to/from memory without involving
the CPU.
Diagram: Direct Memory Access Operation
17.Distinguish between Instruction Register (IR) and Program Counter (PC) register
IR holds the currently fetched instruction.
PC holds the address of the next instruction to be fetched.
18.Distinguish latency from throughput in terms of computer performance.
Latency: Time taken to complete a single task or operation.
Throughput: Rate at which tasks or operations can be completed over time.
19.Explain different types of computer memories
Primary memory (RAM)
Secondary memory (HDD, SSD)
Cache memory
Register memory
20.Briefly, write the main role of a register in Central Processing Unit (CPU)?
Registers in the CPU are used to store temporary data and operands for arithmetic
and logic operations.
They facilitate quick access to data for processing.
21.Distinguish between Instruction Register (IR) and Program Counter (PC) register.
IR holds the currently fetched instruction.
PC holds the address of the next instruction to be fetched.
22.Distinguish latency from bandwidth in terms of computer performance.
Latency: Time delay between initiating a task and its completion.
Bandwidth: Rate of data transfer over a communication channel.
23.Briefly, describe the stages of the system instruction cycle.
Fetch: Retrieve instruction from memory.
Decode: Interpret the instruction's opcode and operands.
Execute: Perform the instruction's operation.
Writeback: Store results back to memory or registers.
24.Assume registers C, B, and A of a processor contain 34, 45, and 56 respectively. If the
processor pushes them onto the stack in the order C, then B, then A then pulls them
off the stack in the order B, then A, then C, what values do the registers contain
afterwards?
Values of Registers After Pushing and Pulling from Stack
After pushing C, B, A onto the stack and then pulling B, A, C off the stack, the
registers will contain: A=34, B=45, C=56.
28.The RAM is a temporal storage area in the computer system that usually contains the
data that are being processed by the CPU. Briefly describe how the CPU and the
RAM interacts to carry out their operation.
The CPU interacts with RAM to fetch instructions and data needed for processing.
Instructions are fetched from RAM into CPU registers for execution.
Data is transferred between RAM and CPU registers for processing.
b. Discuss on different ways in which data may be transferred to and from the CPU
and I/O devices.
Data Transfer Methods: Programmed I/O, Interrupt-driven I/O, Direct Memory
Access (DMA).
34. Some of the most important pieces of data stored in the RAM are the instructions
which basically tells the CPU what to do at a particular time. Explain the concept of
Instruction Set in the CPU and how it works.
Instruction Set and CPU
Instruction Set: Collection of commands understood by a CPU, defining its
capabilities and operations.
CPU executes instructions by fetching, decoding, and executing them based on the
instruction set architecture.
35.a. What are the main differences between a multi-processor system and a multi-
computer system?
Differences Between Multi-processor and Multi-computer Systems
Multi-processor: Multiple CPUs share memory and peripherals in a single system.
Multi-computer: Independent computers connected via a network, each with its own
memory and peripherals.
37. a. The RAM is a temporal storage area in the computer system that usually
contains the data that are being processed by the CPU. Briefly describe how the
CPU and the RAM interacts to carry out their operation.
CPU-RAM Interaction a. The CPU communicates with RAM to fetch instructions
and data for processing. b. RAM holds the data and instructions needed for the CPU
to execute tasks.
b. Briefly, write the main role of a register in Central Processing Unit (CPU)?
Registers in the CPU are small, fast storage locations used to hold data temporarily
during processing.
They are essential for storing operands, intermediate results, and memory
addresses.
38.a. Explain if the internal bus connects only register within the CPU, how would you
get data to and from memory?
Internal Bus and Data Transfer
If the internal bus connects only registers within the CPU, data transfer to and from
memory occurs through the external data bus.
The CPU sends memory read/write requests via the external bus, and data is
transferred between RAM and CPU registers through this bus
Good application