Assess your understanding of core computer architecture fundamentals, covering processor operations, memory hierarchy, instruction cycles, pipelining, and related key concepts. This quiz is designed for those preparing for technical interviews in computer architecture, offering comprehensive questions to reinforce your foundational knowledge.
Which component of a computer is primarily responsible for executing instructions and controlling other system parts?
Explanation: The Central Processing Unit (CPU) is the core of the computer that carries out instructions and manages operations. The Hard Disk Drive is used for long-term storage and cannot execute instructions. The Graphics Adapter renders images but does not handle general processing; RAM temporarily stores data for quick access but does not execute commands.
Where does cache memory sit in the typical computer memory hierarchy?
Explanation: Cache memory is positioned between the CPU and RAM to speed up data access by storing frequently used instructions. It's not found after secondary storage, and the bus interface is not a storage level. Cache serves to bridge the speed gap between the CPU and the slower main memory, making 'between CPU and RAM' the correct spot.
Which type of memory stores data only while power is applied and is lost when the system is turned off?
Explanation: Volatile memory, such as standard RAM, loses its contents when power is lost. Non-volatile and permanent memory types retain data without power, while secondary storage refers to devices like hard drives, which also preserve data after shutdown.
What is the primary role of a system bus in computer architecture?
Explanation: The system bus enables communication and data transfer between the CPU and other components like memory and I/O devices. It doesn't have the function of storing graphics, cannot directly increase the CPU speed, and is unrelated to file compression.
Which of the following best describes Reduced Instruction Set Computing (RISC) architectures?
Explanation: RISC architectures use simple instructions that can typically execute in a single cycle, aiming for efficiency. CISC architectures are known for complex instruction sets, not RISC. RISC is a general-purpose design, not limited to deep learning or exclusive hardware reliance.
What is the main limitation caused by the Von Neumann architecture known as the 'bottleneck'?
Explanation: The Von Neumann architecture uses a single bus for both data and instructions, potentially slowing things down—a phenomenon known as the bottleneck. It does have I/O support, can be expanded to support parallelism, and cache usage is not a defining characteristic of the term.
Which two fundamental steps make up the fetch-decode-execute cycle of a CPU?
Explanation: The fetch-decode-execute cycle involves fetching an instruction and then executing it. Printing and storing are operations external to the CPU cycle, mapping and encrypting aren't standard CPU steps, and recording and repeating are unrelated terms.
What is the main function of registers within a CPU?
Explanation: Registers are small, fast storage locations inside the CPU used for temporary data storage and rapid access during processing. They aren't intended for long-term or large file storage, aren't responsible for graphics output, and don't affect input devices directly.
Why do modern CPUs use branch prediction techniques?
Explanation: Branch prediction allows CPUs to guess the direction a branch will take to avoid pipeline stalls and improve performance. It has no impact on cooling, storage size, or encryption, which are unrelated to this specific CPU feature.
What does it mean when a processor is called a '32-bit' processor?
Explanation: A '32-bit' processor can handle data and memory addresses that are up to 32 bits in width per operation. File size, hard drive count, and boot time are not defined by this term, making those options incorrect.
What is the primary advantage of pipelining in CPU architecture?
Explanation: Pipelining allows multiple instructions to overlap in execution, leading to increased throughput or the number of instructions completed per time unit. Storage, encryption, and monitor refresh rates are unrelated to CPU pipelining.
Which level of cache is typically smallest and closest to the CPU core?
Explanation: L1 cache is the smallest, fastest, and nearest cache to the CPU core, providing immediate data access. L3 cache is larger but slower and further away, main memory is not a cache, and flash storage is a type of secondary memory.
In computer architecture, what is an interrupt?
Explanation: An interrupt is used to temporarily pause the CPU's current activity, allowing urgent tasks to be handled. It's not hardware storage, is unrelated to cooling, and is different from a memory controller, which manages the flow of data to memory.
What is the function of the address bus in a computer system?
Explanation: The address bus is a set of wires that conveys memory addresses between components, allowing access to specific locations. Sound data is carried by audio interfaces, internet connections require network hardware, and clock signals are created by the clock generator.
What is the main job of the control unit within a CPU?
Explanation: The control unit manages and coordinates activities within the CPU by sending control signals. It doesn't store data long term, perform arithmetic (that's the ALU's job), or deal with video output.
What does Moore's Law originally predict regarding integrated circuits?
Explanation: Moore's Law states that the number of transistors on a semiconductor chip will double about every two years, leading to exponential growth in processing power. The other options exaggerate or wrongly interpret the original prediction.
Why do computer systems use virtual memory?
Explanation: Virtual memory allows a system to use backing storage to supplement RAM, giving the illusion of more memory for running programs. Encryption, display rates, and cooling are unrelated functions.
Which of these is usually considered an input device in computer architecture?
Explanation: A keyboard allows users to enter data into a system, making it a classic input device. Printers and monitors provide output, and speakers output sound, not data input.
What is the primary function of the Arithmetic Logic Unit (ALU) in a CPU?
Explanation: The ALU handles mathematical calculations and logical comparisons in the processor. Permanent program storage and cooling functions are not its roles, and displaying web pages is the result of higher-level operations.
What differentiates primary storage from secondary storage in a computer?
Explanation: Primary storage, such as RAM, provides fast, temporary data access for the CPU, while secondary storage retains data long-term but is slower. Secondary storage is not inside the CPU, primary storage is typically internal, and secondary storage is commonly used to store files.
Which term describes a system with multiple processors working together to perform tasks simultaneously?
Explanation: Multiprocessing refers to using more than one processor to execute tasks collaboratively for faster or more reliable processing. Monotasking means focusing on one task only, overclocking speeds up a single CPU, and singlestream is not a recognized computer architecture term.