Explore fundamental topics in computer architecture with these easy, examiner-style questions. Assess your understanding of core principles such as CPU components, instruction pipelines, cache memory, and parallelism.
Which component of the CPU is primarily responsible for performing arithmetic and logical operations?
Explanation: The ALU performs arithmetic and logical operations, making it the correct answer. The Control Unit directs operations but does not perform calculations. Registers store data temporarily, and cache is used for fast data access but not calculations.
Which of the following types of memory is closest to the CPU in terms of access speed?
Explanation: Cache is the fastest and located nearest to the CPU, providing quick access to frequently used data. Main memory (RAM) is slower and further away. Hard disk drives and flash storage are used for long-term storage and are much slower.
In a classic 5-stage instruction pipeline, what is the primary purpose of the decode stage?
Explanation: The decode stage interprets the instruction and sets up signals for execution. Fetch retrieves the instruction; execute performs its operation; write-back stores results. Only the listed answer describes decoding.
Which cache mapping technique uses a simple direct relationship between memory blocks and cache lines?
Explanation: Direct-mapped cache assigns each memory block to exactly one cache line. Fully associative allows any block to any line, set-associative is a mix of both, and random-mapped is not a standard term.
Which statement accurately describes a characteristic of a RISC architecture?
Explanation: RISC architectures focus on a small, uniform set of simple instructions. Complex instructions, variable instruction sizes, and microcoding are characteristics more typical of CISC architectures.
What type of parallelism is exploited when a single instruction operates on multiple data elements at once?
Explanation: SIMD executes one instruction on several data points simultaneously, common in multimedia and scientific computing. MIMD uses different instructions and data; SISD has no parallelism; MISD is rare and typically theoretical.
In computer architecture, which bus is mainly responsible for carrying addresses from the CPU to memory?
Explanation: The address bus transmits memory addresses from the CPU, letting memory know where to deliver data. The data bus sends actual data, the control bus carries signals, and the expansion bus connects additional peripherals.
What is the primary purpose of hardware interrupts in a computer system?
Explanation: Hardware interrupts inform the CPU of urgent events, causing it to pause and address the new event. They do not directly alter clock speed, store data, or manage CPU sleep states.
Which feature is characteristic of the Von Neumann architecture model?
Explanation: Von Neumann architecture uses a single bus for data and instructions, leading to the 'Von Neumann bottleneck.' Harvard architecture uses separate buses, and the other options are unrelated.
Which of the following is considered secondary storage in computer architecture?
Explanation: An SSD is a type of secondary storage for long-term data retention. Registers and cache are primary, volatile storage within the CPU, and the address bus is not storage at all.