CS Fundamentals
Common interview and exam questions about computer hardware with detailed answers — covering CPU, memory, storage, motherboard, and peripherals.
Introduction
Hardware questions test your understanding of the physical components that make a computer work. Whether in university exams or job interviews (especially for technical support, system administration, or hardware engineering roles), you need to explain what each component does, how components interact, and how to diagnose hardware-related problems.
These questions range from basic definitions to comparative analyses and troubleshooting scenarios. The key to answering hardware questions well is not just knowing what things are, but understanding why they are designed the way they are and how they work together as a system.
CPU Questions
What is a CPU and what does it do?
The CPU (Central Processing Unit) is the primary component that executes program instructions — it is often called the brain of the computer. It performs three main functions: fetching instructions from memory, decoding those instructions to determine what operation to perform, and executing the operation. This fetch-decode-execute cycle repeats billions of times per second.
The CPU contains two main units: the Arithmetic Logic Unit (ALU) performs mathematical calculations (addition, subtraction, multiplication) and logical operations (comparison, AND, OR, NOT). The Control Unit (CU) coordinates all computer operations — it directs data flow between the CPU, memory, and I/O devices, and manages the timing of operations.
What is clock speed and what does it mean?
Clock speed (measured in GHz — gigahertz) indicates how many instruction cycles the CPU can perform per second. A 3.5 GHz processor completes 3.5 billion cycles per second. Higher clock speed generally means faster processing, but it is not the only factor — architecture efficiency, cache size, and core count also matter significantly. A newer 3.0 GHz processor might outperform an older 4.0 GHz processor due to better architecture.
What is the difference between multi-core and multi-processor?
Multi-core means a single CPU chip contains multiple processing cores — each core can execute instructions independently. A quad-core processor has four cores on one chip, effectively handling four tasks simultaneously. Multi-processor means a system has multiple separate CPU chips on the motherboard — common in servers where maximum performance is needed. Multi-core is standard in all modern consumer processors.
What are CPU registers?
Registers are the smallest and fastest storage locations inside the CPU. They hold data currently being processed — operands for calculations, memory addresses, instruction codes, and status information. Access time is essentially zero (one clock cycle). The CPU can only perform operations on data that is in registers — data must be loaded from RAM into registers before processing.
Memory Questions
What is the difference between RAM and ROM?
RAM (Random Access Memory) is volatile — it loses all data when power is turned off. It is the computer's working memory, holding currently running programs and their data. RAM is read-write (the CPU can both read from and write to it). It is fast (nanosecond access) and relatively expensive per byte.
ROM (Read Only Memory) is non-volatile — it retains data even without power. It stores permanent instructions needed for booting the computer (BIOS/UEFI firmware). ROM is traditionally read-only (though modern variants like EEPROM and Flash can be rewritten under special conditions). It is slower than RAM but retains data permanently.
Explain the memory hierarchy.
The memory hierarchy organizes storage by speed, cost, and capacity. From fastest and smallest to slowest and largest: CPU Registers (bytes, fastest), L1 Cache (kilobytes, very fast, located on the CPU), L2 Cache (megabytes, fast), L3 Cache (several megabytes, shared among cores), RAM (gigabytes, fast), SSD (terabytes, moderate speed), HDD (terabytes, slow), and Tape/Cloud (unlimited, slowest).
The principle: frequently accessed data should reside in faster memory, while bulk data stays in slower, cheaper storage. The system automatically manages this through caching algorithms.
What is cache memory and why is it important?
Cache is a small, very fast memory that sits between the CPU and main RAM. It stores copies of frequently accessed data and instructions so the CPU does not have to wait for the much slower RAM every time. Modern CPUs have three levels: L1 (smallest, fastest, per-core), L2 (medium, slightly slower, per-core), L3 (largest, shared among all cores). Cache hit rates of 95%+ mean the CPU rarely needs to access slow RAM, dramatically improving overall performance.
What is the difference between SRAM and DRAM?
SRAM (Static RAM) uses flip-flop circuits to store data — it is very fast, does not need refreshing, but is expensive and takes more physical space per bit. SRAM is used for CPU cache memory. DRAM (Dynamic RAM) uses capacitors to store data — it is slower, needs constant refreshing (thousands of times per second) as capacitors discharge, but is cheaper and denser. DRAM is used for main system memory (what we call RAM).
Storage Questions
What is the difference between HDD and SSD?
HDD (Hard Disk Drive) stores data on spinning magnetic platters read by a moving arm with a read/write head. It has large capacity at low cost but mechanical parts make it slower, fragile (drops can damage it), and noisy. Typical speeds: 80-160 MB/s sequential read.
SSD (Solid State Drive) stores data in flash memory chips with no moving parts. It is much faster (500-7000 MB/s), silent, shock-resistant, and uses less power, but costs more per gigabyte. SSDs have limited write cycles (though modern SSDs last many years under normal use).
For most users, an SSD provides the single biggest performance improvement when upgrading from an HDD — boot times drop from minutes to seconds, and application loading becomes nearly instant.
What is RAID?
RAID (Redundant Array of Independent Disks) combines multiple physical drives into one logical unit for improved performance, reliability, or both. RAID 0 stripes data across drives for speed but no redundancy (if one drive fails, all data is lost). RAID 1 mirrors data — two drives store identical copies (if one fails, the other has all data). RAID 5 stripes data with distributed parity — can survive one drive failure. RAID is common in servers where data loss must be prevented.
Motherboard and Connectivity
What is a motherboard?
The motherboard is the main printed circuit board that physically and electrically connects all components. It contains the CPU socket, RAM slots (DIMM slots), expansion slots (PCIe for graphics cards and other add-ins), storage connectors (SATA, M.2), power connectors, chipset (manages data flow between components), BIOS/UEFI chip, and external I/O ports (USB, audio, Ethernet, video).
What is BIOS/UEFI?
BIOS (Basic Input/Output System) or its modern replacement UEFI (Unified Extensible Firmware Interface) is firmware stored on a chip on the motherboard. It is the first software that runs when you power on the computer. It performs POST (Power-On Self-Test) to verify hardware is functioning, initializes hardware components, and then loads the operating system from the boot device. UEFI adds graphical interface, faster boot, secure boot, and support for drives larger than 2TB.
Key Takeaways
- Understand CPU architecture: ALU, Control Unit, registers, fetch-decode-execute cycle
- Know the memory hierarchy from registers to tape, including why it exists (speed vs cost tradeoff)
- Distinguish RAM from ROM, SRAM from DRAM, HDD from SSD — know the advantages of each
- Understand cache memory's role in bridging the speed gap between CPU and RAM
- Motherboard connects everything — know its key components and their functions
- BIOS/UEFI initializes hardware and boots the OS — understand POST and the boot process
- Use real-world analogies in interviews to demonstrate genuine understanding, not just memorization
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Hardware Interview Questions.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Computer Fundamentals topic.
Search Terms
computer-fundamentals, computer fundamentals, computer, fundamentals, interview, preparation, hardware, questions
Related Computer Fundamentals Topics