🖥️

Computer Architecture & Organization MCQ

Test your Computer Architecture & Organization knowledge with 100 multiple choice questions covering fundamentals to advanced concepts, with instant feedback and explanations.

100 Questions 40 Beginner 40 Intermediate 20 Advanced

How This Practice Test Works

Every question below expands right on this page — click a question to reveal its four options, pick the one you think is correct, and you'll get instant feedback along with the correct answer and a short explanation of the reasoning. Questions are grouped by difficulty, so start with the 40 beginner questions to confirm your fundamentals, work through the 40 intermediate ones, and finish with the 20 advanced questions that mirror what exams and technical screenings actually ask. There's no sign-up, no timer, and no limit — retake the test as often as you like.

Curated by Tech Baithak Editorial Team  ·  Last updated: June 2026

1

What is the primary role of the CPU (Central Processing Unit) in a computer system?

A

Correct Answer

To execute instructions by performing arithmetic, logic, control, and input/output operations as specified by a program

Explanation

The CPU is the "brain" of the computer, fetching, decoding, and executing instructions, while memory and storage handle data, and peripherals handle I/O.

2

What does "ALU" stand for, and what is its function?

A

Correct Answer

Arithmetic Logic Unit — it performs arithmetic operations (like addition) and logical operations (like AND, OR) on data

Explanation

The ALU is a digital circuit within the CPU that performs arithmetic (add, subtract) and bitwise logical operations, forming the computational core of instruction execution.

3

What is the difference between RAM and ROM?

A

Correct Answer

RAM is volatile memory used for temporary data during program execution; ROM is non-volatile memory that retains data even without power, often used for firmware

Explanation

RAM (Random Access Memory) holds data and instructions actively used by running programs and is cleared on power loss, while ROM (Read-Only Memory) retains its contents permanently, commonly storing firmware like the BIOS.

4

What is a "register" in CPU architecture?

A

Correct Answer

A small, extremely fast storage location built directly into the CPU, used to hold data being actively processed

Explanation

Registers are the fastest storage available to a CPU, holding operands, addresses, and intermediate results during instruction execution — much faster than accessing RAM.

5

What is the "fetch-decode-execute" cycle?

A

Correct Answer

The basic cycle a CPU repeats to process instructions: retrieving an instruction from memory, interpreting what it means, and then carrying it out

Explanation

The instruction cycle is the fundamental operation of a CPU: fetch the next instruction from memory, decode it to determine the required operation, then execute it — repeating continuously.

6

What is "cache memory" used for?

A

Correct Answer

A small, fast memory located close to the CPU that stores frequently accessed data to reduce the time needed to access main memory

Explanation

Cache memory exploits the principle of locality — programs tend to access the same or nearby data repeatedly — by keeping recently used data closer to the CPU, which is much faster than accessing main RAM.

7

What is the difference between "primary storage" and "secondary storage"?

A

Correct Answer

Primary storage (like RAM) is directly accessible by the CPU and is typically volatile; secondary storage (like hard drives or SSDs) is non-volatile and used for long-term data retention

Explanation

Primary storage (RAM) is fast but loses data on power-off and is used for active programs; secondary storage (HDD/SSD) is slower but retains data persistently, used for files and installed programs.

8

What does "bus" refer to in computer architecture?

A

Correct Answer

A communication pathway that transfers data, addresses, or control signals between different components of a computer system

Explanation

Buses (data bus, address bus, control bus) are the "highways" that allow the CPU, memory, and peripherals to exchange information within a computer system.

9

What is "clock speed" (measured in Hz, e.g., GHz) of a CPU?

A

Correct Answer

The rate at which the CPU's internal clock generates pulses, which synchronizes and paces the execution of instructions

Explanation

Clock speed determines how many cycles per second the CPU can perform; a higher clock speed generally means more instructions can be processed per second, though actual performance also depends on architecture.

10

What is the purpose of an "instruction set architecture" (ISA)?

A

Correct Answer

It defines the set of instructions, addressing modes, registers, and data types that a processor can understand and execute

Explanation

The ISA is the interface between hardware and software — it specifies what operations a CPU can perform, allowing compilers and assembly programmers to target a specific processor family (e.g., x86, ARM).

11

What is the difference between "CISC" and "RISC" architectures?

A

Correct Answer

CISC (Complex Instruction Set Computer) has many specialized, multi-step instructions; RISC (Reduced Instruction Set Computer) uses a smaller set of simple instructions, often executed in one cycle each

Explanation

CISC processors (like x86) aim to do more per instruction with complex hardware, while RISC processors (like ARM) use simpler instructions that are easier to pipeline and optimize, often resulting in higher efficiency per cycle.

12

What is a "bit" and a "byte"?

A

Correct Answer

A bit is the smallest unit of data, representing a 0 or 1; a byte is a group of 8 bits

Explanation

The bit (binary digit) is the fundamental unit of digital information; bytes (8 bits) are the standard unit for representing characters and addressing memory in most computer architectures.

13

What is "binary number system" and why is it used in computers?

A

Correct Answer

A base-2 number system using only digits 0 and 1, used because digital circuits can easily represent two states (on/off, high/low voltage)

Explanation

Binary maps naturally onto the two-state nature of electronic switches (transistors), making it the foundation for representing all data and instructions in digital computers.

14

What is the function of the "control unit" within a CPU?

A

Correct Answer

It directs the operation of the processor by generating control signals that coordinate the activities of the ALU, registers, and memory during instruction execution

Explanation

The control unit orchestrates the fetch-decode-execute cycle, telling other components (ALU, registers, memory) what to do and when, based on the instruction being processed.

15

What is a "motherboard"?

A

Correct Answer

The main circuit board of a computer that connects and allows communication between the CPU, memory, storage, and other components

Explanation

The motherboard houses the CPU socket, memory slots, expansion slots, and connectors, providing the physical and electrical pathways (buses) that link all major components together.

16

What is "input/output (I/O)" in a computer system?

A

Correct Answer

The communication between a computer and the external world, including devices like keyboards, mice, displays, and storage drives

Explanation

I/O devices allow data to enter (input, e.g., keyboard) and leave (output, e.g., display) the computer system, and are managed by I/O controllers and device drivers.

17

What is the purpose of the "program counter" (PC) register?

A

Correct Answer

It holds the memory address of the next instruction to be fetched and executed by the CPU

Explanation

After each instruction is fetched, the program counter is updated (usually incremented) to point to the next instruction, ensuring sequential execution unless altered by a jump or branch instruction.

18

What does "word size" refer to in a computer architecture (e.g., 32-bit or 64-bit)?

A

Correct Answer

The number of bits that a CPU can process or transfer in a single operation, which affects the range of addressable memory and the size of data it can handle efficiently

Explanation

A 64-bit architecture can process data in 64-bit chunks and address a much larger memory space than a 32-bit architecture, which is limited to about 4 GB of addressable memory.

19

What is "firmware" in the context of a computer's hardware?

A

Correct Answer

Low-level software embedded in hardware (like the BIOS/UEFI) that provides basic instructions for how the hardware operates and initializes at startup

Explanation

Firmware (such as BIOS/UEFI) is stored in non-volatile memory and runs before the operating system loads, performing hardware initialization and providing low-level control routines.

20

What is the purpose of "ports" on a computer (e.g., USB, HDMI)?

A

Correct Answer

Physical connectors that allow external devices (like keyboards, monitors, or storage drives) to be connected to and communicate with the computer

Explanation

Ports (USB, HDMI, Ethernet, etc.) provide standardized physical and electrical interfaces for connecting peripherals and transferring data or signals between the computer and external devices.

21

What is the difference between a "32-bit" and "64-bit" operating system in terms of memory addressing?

A

Correct Answer

A 32-bit OS can typically address up to about 4 GB of RAM, while a 64-bit OS can address vastly more memory, often into the terabytes

Explanation

The address width determines the maximum number of unique memory locations a system can reference; 2^32 addresses (about 4 billion) limits 32-bit systems to roughly 4 GB, while 64-bit systems support a vastly larger range.

22

What is a "peripheral device"?

A

Correct Answer

Any external device connected to a computer that is not part of the core architecture, such as a printer, mouse, or external hard drive

Explanation

Peripherals extend a computer's functionality by providing input, output, or storage capabilities beyond the core processing components (CPU, memory, motherboard).

23

What is the purpose of "virtual memory"?

A

Correct Answer

A memory management technique that allows a computer to use disk space to extend the apparent size of RAM, enabling programs to use more memory than is physically available

Explanation

Virtual memory uses a portion of secondary storage (like a "page file" or "swap") as an extension of RAM, allowing the system to run more or larger programs than physical RAM alone would permit, managed via paging.

24

What is "overclocking" a CPU?

A

Correct Answer

Running a CPU at a higher clock speed than its rated specification, potentially increasing performance but also increasing heat and power consumption

Explanation

Overclocking pushes a CPU beyond its default frequency for more performance, but it generates more heat and can reduce stability or lifespan if not managed with adequate cooling.

25

What does "multi-core" processor mean?

A

Correct Answer

A single CPU chip that contains two or more independent processing units (cores), each capable of executing instructions simultaneously

Explanation

Multi-core processors allow true parallel execution of multiple tasks or threads, improving performance for multitasking and multi-threaded applications compared to a single-core design.

26

What is the purpose of a "heat sink" on a CPU?

A

Correct Answer

To dissipate heat generated by the CPU during operation, preventing it from overheating and being damaged

Explanation

CPUs generate significant heat during operation; heat sinks (often paired with fans) increase the surface area for heat dissipation, helping maintain safe operating temperatures.

27

What is "SSD" (Solid State Drive) and how does it differ from a traditional "HDD" (Hard Disk Drive)?

A

Correct Answer

An SSD stores data using flash memory chips with no moving parts, generally offering faster read/write speeds; an HDD uses spinning magnetic platters and a mechanical read/write head

Explanation

SSDs use NAND flash memory for storage, providing faster access times and better durability (no moving parts) compared to HDDs, which rely on mechanical spinning disks and read/write heads.

28

What is the function of a "GPU" (Graphics Processing Unit)?

A

Correct Answer

A specialized processor designed to efficiently perform parallel computations, originally for rendering images and graphics, but now also used for general-purpose parallel computing

Explanation

GPUs contain many simple cores optimized for parallel processing, making them ideal for graphics rendering and, increasingly, for tasks like machine learning and scientific computing that benefit from parallelism.

29

What is "machine code"?

A

Correct Answer

The lowest-level set of instructions, expressed in binary, that a CPU can directly execute

Explanation

Machine code consists of binary instructions specific to a CPU's instruction set, directly executable by the hardware — higher-level languages must be compiled or interpreted down to machine code to run.

30

What is the purpose of an "assembler"?

A

Correct Answer

A program that translates assembly language (human-readable mnemonics) into machine code that a CPU can execute

Explanation

Assembly language uses human-readable mnemonics (e.g., MOV, ADD) that map closely to machine instructions; an assembler converts this into the binary machine code the CPU executes.

31

What is the purpose of an "address bus" versus a "data bus"?

A

Correct Answer

The address bus carries the location (address) in memory being accessed; the data bus carries the actual data being read from or written to that location

Explanation

The address bus specifies "where" in memory to read/write, while the data bus carries "what" data is being transferred — together they enable the CPU to access specific memory locations.

32

What is "throughput" in the context of computer performance?

A

Correct Answer

The amount of work or data a system can process in a given amount of time

Explanation

Throughput measures how much work (e.g., instructions executed, data transferred) a system completes per unit of time, an important metric for evaluating overall system performance.

33

What is the role of "device drivers" in a computer system?

A

Correct Answer

Software that allows the operating system and applications to communicate with and control specific hardware devices

Explanation

Drivers act as a translation layer between generic OS calls and the specific commands a piece of hardware understands, allowing diverse hardware to work with a common operating system interface.

34

What is the difference between "synchronous" and "asynchronous" data transfer between components?

A

Correct Answer

Synchronous transfer is coordinated by a shared clock signal, with both sender and receiver operating in lockstep; asynchronous transfer does not rely on a shared clock and uses signaling to indicate when data is ready

Explanation

Synchronous communication uses a common clock to time data transfers precisely, while asynchronous communication uses start/stop signals or handshaking, allowing devices with different or no shared clocks to communicate.

35

What is the purpose of "BIOS/UEFI" during the computer's startup process?

A

Correct Answer

It performs initial hardware checks (POST), initializes hardware components, and then locates and starts the boot process for the operating system

Explanation

BIOS (or its modern successor UEFI) is firmware that runs immediately at power-on, performing a Power-On Self-Test (POST), initializing essential hardware, and then handing control to the bootloader to start the OS.

36

What is "parallel processing"?

A

Correct Answer

The simultaneous execution of multiple computations or tasks, typically using multiple processing units (cores or processors)

Explanation

Parallel processing divides a task into smaller parts that run simultaneously across multiple processing units, potentially reducing total execution time compared to sequential (serial) processing.

37

What does "embedded system" mean in relation to computer architecture?

A

Correct Answer

A computer system designed for a specific, dedicated function within a larger device, often with constraints on size, power, and cost

Explanation

Embedded systems (found in appliances, cars, etc.) are purpose-built for specific tasks, often combining a microcontroller or microprocessor with custom hardware tailored to that function.

38

What is the difference between a "compiler" and an "interpreter"?

A

Correct Answer

A compiler translates an entire source program into machine code (or another language) before execution; an interpreter executes source code directly, translating and running it line by line

Explanation

Compiled programs are translated into machine code ahead of time and run directly by the hardware, while interpreted programs are read and executed statement-by-statement by an interpreter at runtime.

39

What is "magnetic storage" and give an example of a device that uses it?

A

Correct Answer

A storage technology that records data by magnetizing a medium; a traditional hard disk drive (HDD) is a common example

Explanation

Magnetic storage devices like HDDs and traditional magnetic tape store data by altering the magnetic orientation of particles on a disk or tape surface, read and written by magnetic heads.

40

What is the purpose of an "expansion slot" (e.g., PCIe slot) on a motherboard?

A

Correct Answer

A connector that allows additional cards (like graphics cards or network cards) to be installed and connected to the motherboard, extending the computer's capabilities

Explanation

Expansion slots like PCIe provide a standardized interface for adding hardware components (graphics cards, sound cards, network adapters) to extend a computer's functionality beyond its built-in capabilities.

1

What is "pipelining" in CPU design?

A

Correct Answer

A technique that overlaps the execution of multiple instructions by dividing instruction processing into stages, allowing different stages of different instructions to execute simultaneously

Explanation

Pipelining breaks instruction execution into stages (fetch, decode, execute, etc.) so that while one instruction is being decoded, another can be fetched, increasing overall instruction throughput.

2

What is a "pipeline hazard," and what are the main types?

A

Correct Answer

A situation that prevents the next instruction in the pipeline from executing in its designated clock cycle; main types include structural, data, and control hazards

Explanation

Structural hazards arise from resource conflicts, data hazards from instruction dependencies, and control hazards from branches — all can stall the pipeline and require techniques like forwarding or branch prediction to mitigate.

3

What is "branch prediction" used for in modern CPUs?

A

Correct Answer

It attempts to guess the outcome of a conditional branch instruction before it is actually evaluated, allowing the pipeline to continue fetching and executing instructions speculatively to avoid stalls

Explanation

Since branches can cause pipeline stalls while waiting to know which path to take, branch predictors guess the likely outcome based on history, allowing speculative execution — if wrong, the pipeline is flushed and corrected.

4

What is the difference between "L1", "L2", and "L3" cache?

A

Correct Answer

L1 is the smallest and fastest cache, located closest to each CPU core; L2 is larger and slightly slower; L3 is the largest, slowest of the caches, and often shared across cores

Explanation

Cache hierarchies balance speed and size — L1 is tiny but extremely fast and per-core, L2 is larger but slower, and L3 is the largest and slowest of the on-chip caches, often shared among all cores to reduce main memory access.

5

What is "cache hit ratio" and why does it matter for performance?

A

Correct Answer

The percentage of memory accesses that are found in the cache rather than requiring a slower access to main memory; a higher hit ratio generally means better performance

Explanation

When data needed by the CPU is already in the cache (a "hit"), access is fast; a "miss" requires fetching from slower main memory. A higher hit ratio reduces average memory access time and improves performance.

6

What is "memory-mapped I/O" versus "port-mapped I/O"?

A

Correct Answer

Memory-mapped I/O places device registers within the same address space as memory, accessed with standard memory instructions; port-mapped I/O uses a separate address space accessed via dedicated I/O instructions

Explanation

Memory-mapped I/O simplifies programming since the same instructions access memory and devices, while port-mapped I/O (used by some architectures like x86 for legacy devices) requires special instructions (e.g., IN/OUT) to access a separate I/O address space.

7

What is "DMA" (Direct Memory Access) and why is it beneficial?

A

Correct Answer

A feature that allows peripherals to transfer data directly to/from memory without continuous CPU intervention, freeing the CPU to perform other tasks during the transfer

Explanation

Without DMA, the CPU would need to manage every byte of a transfer, wasting cycles; DMA controllers handle bulk transfers independently, significantly improving overall system efficiency for I/O-heavy tasks.

8

What is the difference between "big-endian" and "little-endian" byte ordering?

A

Correct Answer

Big-endian stores the most significant byte of a multi-byte value at the lowest memory address; little-endian stores the least significant byte at the lowest address

Explanation

Endianness determines the byte order of multi-byte data types in memory; this matters when data is shared between systems with different endianness, requiring byte-order conversion (e.g., network byte order is big-endian).

9

What is "virtual memory paging," and what is a "page fault"?

A

Correct Answer

Paging divides memory into fixed-size blocks (pages) that can be mapped between physical RAM and disk; a page fault occurs when a program accesses a page not currently in physical memory, requiring the OS to load it from disk

Explanation

Paging allows the OS to use disk space as an extension of RAM; when a needed page isn't in physical memory (a page fault), the OS retrieves it from disk (swap/page file), possibly evicting another page to make room.

10

What is "superscalar" CPU architecture?

A

Correct Answer

A CPU design that can issue and execute multiple instructions during a single clock cycle by using multiple execution units

Explanation

Superscalar processors have multiple execution units (e.g., multiple ALUs) and can dispatch several instructions in parallel within a single cycle, increasing instruction-level parallelism beyond what simple pipelining achieves.

11

What is "out-of-order execution" in modern CPUs?

A

Correct Answer

A technique where the CPU executes instructions in an order different from the program order, based on operand availability, to avoid stalling on dependencies, while still committing results in the correct logical order

Explanation

Out-of-order execution allows the CPU to work on instructions whose operands are ready while waiting for others, improving utilization of execution units, while a reorder buffer ensures results are committed in the correct program order.

12

What is "hyper-threading" (or simultaneous multithreading, SMT)?

A

Correct Answer

A technology that allows a single physical CPU core to present itself as two (or more) logical cores, improving utilization of execution resources by interleaving instructions from multiple threads

Explanation

SMT allows a core to maintain state for multiple threads and switch between them to fill idle execution slots, improving throughput without the cost of fully duplicating a core, though it doesn't provide the same performance as true additional cores.

13

What is "cache coherence" in a multi-core/multiprocessor system?

A

Correct Answer

A set of protocols ensuring that all processor cores see a consistent view of shared memory, even though each core may have its own local cache copy of the same data

Explanation

Without coherence protocols (like MESI), one core might read stale data from its cache after another core modifies the shared value; coherence protocols invalidate or update cached copies to maintain consistency across cores.

14

What is "memory interleaving," and how does it improve performance?

A

Correct Answer

A technique that spreads consecutive memory addresses across multiple memory banks, allowing simultaneous access to different banks and increasing effective memory bandwidth

Explanation

By distributing data across multiple memory banks, consecutive accesses can be serviced in parallel or in a pipelined fashion, reducing the effective latency of sequential memory accesses.

15

What is the purpose of a "Translation Lookaside Buffer" (TLB)?

A

Correct Answer

A cache that stores recent translations of virtual memory addresses to physical memory addresses, speeding up the address translation process used in virtual memory systems

Explanation

Without a TLB, every memory access would require a potentially slow page-table walk to translate virtual to physical addresses; the TLB caches recent translations, making most accesses much faster.

16

What is "Amdahl's Law" used to estimate?

A

Correct Answer

The theoretical maximum speedup of a task when only part of it can be parallelized or improved, given the proportion of the task that benefits from the improvement

Explanation

Amdahl's Law shows that overall speedup is limited by the portion of a task that cannot be parallelized — even with infinite processors, the non-parallelizable fraction caps the maximum achievable speedup.

17

What is "microarchitecture" versus "instruction set architecture" (ISA)?

A

Correct Answer

The ISA defines the abstract interface (instructions, registers) a processor presents to software; the microarchitecture is the specific internal implementation (pipelines, caches, execution units) used to realize that ISA

Explanation

Multiple different microarchitectures (e.g., different generations of Intel chips) can implement the same ISA (e.g., x86-64), each with different internal designs for performance, power, or cost trade-offs.

18

What is the purpose of "interrupt vectoring" in handling hardware interrupts?

A

Correct Answer

It maps each type of interrupt to a specific address (interrupt vector) where the corresponding interrupt service routine begins, allowing the CPU to quickly jump to the correct handler

Explanation

An interrupt vector table maps interrupt numbers to handler addresses, so when an interrupt occurs, the CPU can quickly locate and jump to the appropriate interrupt service routine without searching.

19

What is "write-back" versus "write-through" cache policy?

A

Correct Answer

Write-back updates only the cache on a write and defers updating main memory until the cache line is evicted; write-through updates both the cache and main memory immediately on every write

Explanation

Write-through ensures memory is always up to date but can be slower due to frequent memory writes; write-back is faster for repeated writes to the same line but requires tracking "dirty" cache lines to write back later.

20

What is the role of the "memory management unit" (MMU)?

A

Correct Answer

Hardware that translates virtual memory addresses used by programs into physical memory addresses, and enforces memory protection between processes

Explanation

The MMU enables virtual memory by translating addresses via page tables, and provides isolation between processes by preventing one process from accessing another's memory without permission.

21

What is "instruction-level parallelism" (ILP)?

A

Correct Answer

The degree to which instructions within a program can be executed simultaneously or out of strict sequential order without affecting the program's correct result

Explanation

CPUs exploit ILP via techniques like pipelining, superscalar execution, and out-of-order execution to execute multiple independent instructions concurrently, increasing throughput without changing program semantics.

22

What is "thermal design power" (TDP) of a CPU?

A

Correct Answer

A specification representing the maximum amount of heat a CPU is expected to generate under typical workloads, used to guide cooling system design

Explanation

TDP gives system designers a target for how much heat the cooling solution (heat sink, fans) must dissipate to keep the CPU within safe operating temperatures under normal conditions.

23

What is "NUMA" (Non-Uniform Memory Access) architecture?

A

Correct Answer

A memory design used in multiprocessor systems where each processor has its own local memory that it can access faster than memory attached to other processors

Explanation

In NUMA systems, accessing "local" memory (attached to the same processor) is faster than accessing "remote" memory (attached to another processor), so software performance can depend on memory placement relative to the executing processor.

24

What is the purpose of "register renaming" in out-of-order processors?

A

Correct Answer

It dynamically maps architectural registers to a larger pool of physical registers to eliminate false dependencies between instructions that happen to use the same register name

Explanation

Without renaming, reuse of the same register name by independent instructions ("write-after-write" or "write-after-read" hazards) can artificially limit parallelism; renaming maps these to different physical registers, allowing more out-of-order execution.

25

What is the difference between "static" and "dynamic" branch prediction?

A

Correct Answer

Static branch prediction makes a fixed prediction decided at compile time (e.g., always predict "not taken"); dynamic branch prediction uses runtime history of branch behavior to adapt predictions

Explanation

Static prediction uses simple compile-time heuristics, while dynamic prediction (using branch history tables, etc.) adapts based on observed program behavior at runtime, generally achieving much higher accuracy.

26

What is "memory bandwidth," and why does it matter for system performance?

A

Correct Answer

The rate at which data can be read from or written to memory, typically measured in bytes per second; higher bandwidth allows more data to move between CPU and memory in a given time, reducing bottlenecks for data-intensive tasks

Explanation

For workloads that move large amounts of data (e.g., video processing, scientific computing), memory bandwidth can be a limiting factor even if the CPU itself is fast, since the CPU may stall waiting for data.

27

What is the purpose of "speculative execution" in modern processors?

A

Correct Answer

The CPU executes instructions ahead of knowing whether they will actually be needed (e.g., after a branch), and discards the results if the speculation turns out to be incorrect, improving average performance

Explanation

By guessing likely outcomes (e.g., of a branch) and executing ahead of time, the CPU can avoid stalling; if the guess is wrong, the speculative results are discarded, but on average this improves performance — though it has also been linked to security vulnerabilities like Spectre.

28

What is the difference between "scalar" and "vector" (SIMD) processing?

A

Correct Answer

Scalar processing performs one operation on a single data element at a time; vector (SIMD - Single Instruction, Multiple Data) processing applies the same operation simultaneously to multiple data elements

Explanation

SIMD instructions (like SSE/AVX on x86 or NEON on ARM) allow a single instruction to operate on multiple data values at once, greatly accelerating tasks like multimedia processing and numerical computing that perform the same operation across arrays of data.

29

What is "cold start" versus "warm cache" in performance benchmarking?

A

Correct Answer

A "cold start" measures performance when caches are empty and data must be fetched from slower memory; "warm cache" measures performance after caches are already populated with relevant data, typically yielding faster results

Explanation

Benchmarks often distinguish between "cold" runs (caches empty, representing first access) and "warm" runs (caches populated from repeated access), since the cache state significantly affects measured performance.

30

What is the purpose of "ECC" (Error-Correcting Code) memory?

A

Correct Answer

It can detect and automatically correct certain types of memory errors (such as single-bit errors caused by electrical noise or radiation), improving data integrity, especially important in servers

Explanation

ECC memory adds extra bits used to detect and correct single-bit (and detect some multi-bit) errors, reducing the risk of data corruption from transient memory errors — commonly used in servers and critical systems.

31

What is "context switching" and what overhead does it introduce?

A

Correct Answer

The process of saving the state of a currently running process/thread and loading the state of another, allowing the CPU to switch between tasks; it introduces overhead from saving/restoring registers and potential cache/TLB invalidation

Explanation

Switching between tasks requires saving the current task's register state and loading another's, which takes CPU cycles; frequent context switches can also degrade cache/TLB effectiveness, adding indirect overhead.

32

What is the function of a "northbridge" and "southbridge" in older motherboard chipset designs?

A

Correct Answer

The northbridge typically handled high-speed communication between the CPU, RAM, and graphics; the southbridge managed slower peripheral connections like USB, storage controllers, and audio

Explanation

In traditional chipset designs, the northbridge connected the CPU to high-speed components (RAM, GPU), while the southbridge handled lower-speed I/O; many modern CPUs have integrated much of the northbridge functionality directly onto the CPU die.

33

What is "loop unrolling" as a compiler optimization technique, and how does it relate to CPU architecture?

A

Correct Answer

It replicates the body of a loop multiple times to reduce the overhead of loop control instructions and can expose more instruction-level parallelism for the CPU to exploit

Explanation

By duplicating loop bodies, fewer branch/jump instructions are needed relative to the work done, and the resulting independent operations can be better scheduled and pipelined by the CPU, though at the cost of larger code size.

34

What is the significance of the "von Neumann bottleneck"?

A

Correct Answer

It refers to the limitation in throughput caused by the shared bus between the CPU and memory in the von Neumann architecture, where the CPU often must wait for data/instructions to be transferred from memory

Explanation

Since instructions and data share the same memory and bus in the classic von Neumann architecture, the rate of data transfer between CPU and memory can become a limiting factor — caches and other techniques help mitigate this bottleneck.

35

What is "firmware-based secure boot" intended to protect against?

A

Correct Answer

It verifies the digital signatures of boot software (bootloader, OS kernel) before execution, helping prevent unauthorized or malicious code from running during the boot process

Explanation

Secure boot uses cryptographic signature verification at each stage of the boot process to ensure that only trusted, signed software runs, helping protect against bootkits and other low-level malware.

36

What is "thread-level parallelism" (TLP), and how does it differ from instruction-level parallelism (ILP)?

A

Correct Answer

TLP refers to running multiple independent threads of execution simultaneously (e.g., on multiple cores), while ILP refers to executing multiple instructions from a single instruction stream concurrently

Explanation

ILP exploits parallelism within a single instruction stream (e.g., via pipelining or superscalar execution), while TLP exploits parallelism across separate threads or processes, often using multiple cores.

37

What is the purpose of "prefetching" in CPU memory systems?

A

Correct Answer

A technique where the hardware or software anticipates future memory accesses and loads data into the cache before it is actually requested, reducing wait time when it is needed

Explanation

By predicting which memory addresses a program will access next (e.g., sequential array access), prefetchers bring data into cache ahead of time, hiding memory latency and reducing cache misses.

38

What is the difference between "vertical scaling" and "horizontal scaling" from a hardware architecture perspective?

A

Correct Answer

Vertical scaling means adding more resources (CPU, RAM) to a single machine; horizontal scaling means adding more machines to distribute the workload across multiple systems

Explanation

Vertical scaling ("scaling up") increases the capacity of an individual machine, while horizontal scaling ("scaling out") adds more machines to a system, a distinction relevant to both hardware architecture and distributed systems design.

39

What is "microcode" in CPU design?

A

Correct Answer

A layer of low-level instructions, stored in special memory within the CPU, that translates complex machine instructions into a sequence of simpler hardware-level operations

Explanation

Microcode acts as an interpreter layer between the ISA-visible instructions and the underlying hardware control signals, allowing complex instructions to be implemented as sequences of simpler micro-operations, and enabling some bug fixes via microcode updates.

40

What is the purpose of "bus arbitration" in a system with multiple devices sharing a common bus?

A

Correct Answer

It determines which device is granted control of the shared bus at any given time, preventing conflicts when multiple devices want to transmit data simultaneously

Explanation

Since a shared bus can only carry one transaction at a time, arbitration schemes (e.g., priority-based or round-robin) decide which requesting device gets access, preventing collisions and ensuring fair or prioritized access.

1

In a deeply pipelined superscalar processor, what is the purpose of a "reorder buffer" (ROB)?

A

Correct Answer

It temporarily holds the results of instructions executed out of order, allowing them to be committed (written to architectural state) in the original program order to maintain correct program semantics and support precise exception handling

Explanation

Out-of-order execution can complete instructions in any order, but the architectural state must appear as if instructions executed in program order; the ROB tracks completed instructions and commits results in order, also enabling precise exceptions and speculative execution rollback.

2

What is the "MESI" cache coherence protocol, and what do its four states represent?

A

Correct Answer

MESI stands for Modified, Exclusive, Shared, Invalid — these states describe whether a cache line is uniquely modified by one cache, exclusively held but unmodified, shared (read-only) across multiple caches, or invalid (not usable)

Explanation

MESI is a widely used cache coherence protocol where each cache line is tagged with one of four states, governing how reads and writes propagate between caches to maintain a consistent view of memory across cores.

3

What vulnerability class do "Spectre" and "Meltdown" exploit, and what architectural feature do they target?

A

Correct Answer

They exploit speculative execution and branch prediction mechanisms, allowing an attacker to infer the contents of memory that should be inaccessible by observing timing differences (side channels) caused by speculatively executed instructions

Explanation

Spectre and Meltdown exploit the fact that speculatively executed instructions can leave measurable side effects (like cache state changes) even when their results are ultimately discarded, allowing attackers to leak data across security boundaries via timing side channels.

4

In NUMA systems, what is "NUMA-aware" memory allocation, and why does it matter for performance?

A

Correct Answer

It refers to allocating memory physically close to (local to) the processor that will primarily access it, minimizing the latency penalty of accessing remote memory nodes in a NUMA architecture

Explanation

Since accessing remote memory nodes in a NUMA system incurs higher latency than local memory, NUMA-aware schedulers and allocators try to place a thread's memory on the node local to the CPU executing that thread, reducing cross-node traffic and latency.

5

What is "false sharing" in the context of multi-core cache coherence, and why is it a performance problem?

A

Correct Answer

It occurs when two threads on different cores modify independent variables that happen to reside on the same cache line, causing unnecessary cache invalidation traffic as if they were sharing the same data

Explanation

Because cache coherence operates at the granularity of cache lines, two unrelated variables placed on the same line can cause cores to repeatedly invalidate each other's cached copies even though there's no actual data dependency, degrading performance — mitigated by padding/alignment.

6

What is the difference between "in-order" and "out-of-order" issue with respect to a processor's "scoreboard" or "reservation stations"?

A

Correct Answer

Reservation stations or a scoreboard track operand availability for waiting instructions, allowing dispatch to execution units as soon as operands are ready, regardless of original program order — enabling out-of-order issue

Explanation

Mechanisms like Tomasulo's algorithm use reservation stations to buffer instructions until their source operands become available, allowing the processor to issue instructions to functional units out of program order while still respecting true data dependencies.

7

In virtual memory systems, what is the trade-off involved in choosing a larger page size (e.g., "huge pages")?

A

Correct Answer

Larger pages reduce the number of TLB entries needed to cover a given amount of memory (improving TLB hit rates for large working sets), but can increase internal fragmentation since memory is allocated in larger chunks than may be needed

Explanation

Huge pages can significantly reduce TLB misses for applications with large memory footprints by covering more memory per TLB entry, but if a process only needs a small portion of a huge page, the unused space is wasted — an internal fragmentation trade-off.

8

What does "precise exception" handling mean in the context of out-of-order processors?

A

Correct Answer

When an exception occurs, the processor ensures all instructions before the faulting one (in program order) have completed and updated state, while none after it have, presenting a state as if execution were strictly in-order

Explanation

Even though instructions may execute out of order internally, precise exceptions require the processor to roll back or suppress effects of instructions beyond the faulting one, presenting software (like the OS exception handler) with a clean, in-order-consistent state for correct recovery.

9

What architectural feature allows a processor to mitigate the "von Neumann bottleneck" for instruction fetch specifically?

A

Correct Answer

A separate instruction cache (I-cache) from the data cache (D-cache), implementing a Harvard-like split at the cache level, allows simultaneous instruction fetch and data access despite a unified main memory

Explanation

Many modern CPUs use a "modified Harvard architecture" with separate L1 instruction and data caches, allowing instruction fetches and data accesses to proceed in parallel even though main memory is unified, alleviating the contention implied by the classic von Neumann bottleneck.

10

What is the purpose of "memory barriers" (fences) in multi-core/multi-threaded programming on modern architectures with relaxed memory models?

A

Correct Answer

They enforce ordering constraints on memory operations (loads/stores), preventing the CPU or compiler from reordering certain accesses across the barrier, necessary for correct synchronization on architectures that allow reordering for performance

Explanation

Architectures with relaxed memory models (allowing reordering of loads/stores for performance) require explicit memory barriers/fences at points where ordering matters (e.g., implementing locks), ensuring all cores observe a consistent, expected ordering of operations.

11

What is "speculative store bypass" and how does it relate to security vulnerabilities like Spectre variant 4?

A

Correct Answer

It is a CPU optimization where loads may speculatively execute before an earlier store to a potentially overlapping address completes, assuming no dependency; if wrong, this speculation can leak data via side channels, as exploited in Spectre variant 4

Explanation

CPUs may speculatively reorder loads ahead of stores to improve performance, betting that addresses don't overlap; Spectre v4 exploits cases where this speculation is incorrect, allowing an attacker to observe microarchitectural side effects of speculatively loaded (stale or future) values.

12

In a multi-level cache hierarchy, what is the difference between "inclusive" and "exclusive" cache designs?

A

Correct Answer

In an inclusive cache hierarchy, data present in a smaller (e.g., L1) cache is also guaranteed to be present in the larger (e.g., L2) cache; in an exclusive hierarchy, a given piece of data resides in only one cache level at a time, avoiding duplication

Explanation

Inclusive caches simplify coherence checks (since checking the larger cache also covers smaller caches' contents) at the cost of some duplicated storage, while exclusive caches maximize effective cache capacity across levels but require more complex coherence handling.

13

What is "transactional memory" in computer architecture, and what problem does it aim to solve?

A

Correct Answer

A concurrency control mechanism letting a group of memory operations execute atomically (all-or-nothing), simplifying concurrent programming by avoiding traditional locks, retrying the transaction if a conflict is detected

Explanation

Hardware or software transactional memory groups operations into atomic transactions; if a conflict with another transaction is detected, the transaction is aborted and retried, providing an alternative to fine-grained locking for concurrent data structure access.

14

What is the architectural significance of "tagged" caches versus "physically indexed, physically tagged" (PIPT) caches with respect to virtual memory?

A

Correct Answer

Caches can be indexed/tagged using virtual or physical addresses; PIPT caches avoid aliasing (different virtual addresses mapping to one physical address) but need translation first, adding latency, while virtual-indexed caches are faster but complex

Explanation

The choice between virtually and physically indexed/tagged caches involves a trade-off between access latency (avoiding address translation on the critical path) and complications like aliasing, where multiple virtual addresses map to the same physical location, requiring careful handling.

15

What is "wavefront" or "warp" scheduling in GPU architectures, and how does it relate to SIMD execution?

A

Correct Answer

GPUs group threads into fixed-size batches (warps/wavefronts) executing the same instruction in lockstep across data lanes (SIMD); divergence (threads taking different branches) is handled by running both paths and masking inactive lanes

Explanation

GPUs achieve massive parallelism by executing groups of threads (warps/wavefronts) in SIMD fashion; when threads within a warp diverge at a branch, the hardware executes both paths sequentially with lane masking, which can reduce efficiency for divergent code.

16

What is the role of "scratchpad memory" in some specialized embedded and GPU architectures, compared to traditional cache?

A

Correct Answer

Scratchpad memory is a fast, on-chip memory explicitly managed by software (the programmer or compiler decides what data goes there), unlike a cache, which is managed automatically by hardware based on access patterns

Explanation

Unlike caches, which transparently and automatically cache data based on access patterns, scratchpad memories require explicit software management of what data resides where, offering predictable timing at the cost of increased programming complexity — common in GPUs (shared memory) and DSPs.

17

What is "checkpoint and restart" (or "checkpointing") in the context of fault-tolerant computer architecture?

A

Correct Answer

Periodically saving the complete state of a running computation so that, if a fault occurs, the system can roll back to the most recent checkpoint and resume rather than restarting from the beginning

Explanation

In long-running or fault-prone systems (e.g., HPC clusters), checkpointing periodically saves enough state to recover from failures without losing all prior progress, trading off the overhead of taking checkpoints against the cost of recomputation after a failure.

18

In the context of "dark silicon," what architectural challenge does this term describe for modern chip design?

A

Correct Answer

As transistor density increases (per Moore's Law) but power density limits how much of a chip can be active at once, an increasing fraction of its transistors must stay powered off ("dark") at any time to stay within thermal limits

Explanation

Dark silicon reflects the gap between the number of transistors that can be fabricated on a chip and the number that can be simultaneously powered without exceeding thermal design limits, driving architectural trends like specialized accelerators and heterogeneous cores that activate only when needed.

19

What is "return-oriented programming" (ROP) as a security concern related to computer architecture, and what architectural feature helps mitigate it?

A

Correct Answer

ROP chains together short code sequences ending in "return" instructions, already present in memory, to perform malicious operations without injecting new code; mitigations include shadow stacks or pointer authentication for control-flow integrity

Explanation

ROP exploits existing executable code fragments ("gadgets") ending in return instructions, chaining them via a manipulated stack to bypass protections against code injection; hardware features like Intel CET (shadow stacks) or ARM Pointer Authentication help detect or prevent such control-flow hijacking.

20

What is the architectural distinction between a "weakly ordered" and "strongly ordered" memory consistency model, and what implication does this have for software?

A

Correct Answer

A strongly ordered model (e.g., sequential consistency) guarantees memory ops appear in program order across processors; a weakly ordered model allows reordering for performance, requiring software to use memory barriers for needed ordering

Explanation

Different architectures (e.g., x86 is relatively strongly ordered, ARM/POWER are weakly ordered) provide different default guarantees about the visibility and ordering of memory operations across cores; weakly ordered architectures require programmers to use memory barriers to achieve the same guarantees that come "for free" on stronger models.