What does a superscalar processor do to improve performance?
Correct answer B. Issues and executes more than one instruction per clock cycle
Topic / 80 questions
Computer Organization and Architecture explains how a processor actually runs a program: how numbers are stored in bits, how instructions are fetched and executed, how a pipeline overlaps them, and how the memory hierarchy keeps the processor supplied with data. These practice questions cover the topics that appear most often in computer science exams, and each answer comes with an explanation of the rule behind it.
Correct answer B. Issues and executes more than one instruction per clock cycle
Correct answer B. 1.25
Correct answer B. It ignores how much work each instruction does, so a machine with simpler instructions may need many more of them
Correct answer A. SIMD
Correct answer D. MIMD
Correct answer A. The line is clean and present only in this cache
Correct answer D. Directories send coherence messages only to caches holding a block, so they scale better than broadcasting on a shared bus
Correct answer C. The other copies are invalidated before the write proceeds
Correct answer D. Different cores write different variables that happen to share a cache line, causing needless coherence traffic
Correct answer A. Issues instructions from several threads in the same cycle to fill a superscalar core's idle slots
Correct answer B. The device electrically closest to the CPU or arbiter
Correct answer D. Consecutive words lie in different modules, so their accesses can overlap and bandwidth increases
Correct answer A. 32
Correct answer C. The CPU wastes time repeatedly checking device status instead of doing useful work
Correct answer B. The DMA controller moves the data directly between device and memory and interrupts the CPU once when the block is done
Correct answer C. The DMA controller takes the memory bus for one cycle at a time between CPU accesses
Correct answer B. Memory-mapped I/O uses ordinary load and store instructions on reserved addresses, while isolated I/O uses special I/O instructions and a separate address space
Correct answer C. 25%
Correct answer D. 1.0 s
Correct answer A. An interrupt that the processor cannot disable, used for critical events such as hardware failures
The subject starts with data representation. Two's complement is the standard way to store signed integers, and examiners like to test range, sign extension and overflow detection. Floating-point numbers follow IEEE 754, where a single-precision value has 1 sign bit, an 8-bit exponent with a bias of 127 and a 23-bit fraction, and a double-precision value has an 11-bit exponent and a 52-bit fraction.
The processor itself is built from registers, an arithmetic logic unit and a control unit. The control unit can be hardwired or microprogrammed, and the instruction set architecture defines the instruction formats and addressing modes such as immediate, direct, indirect, register and indexed. RISC designs use simple fixed-length instructions and load-store access to memory, while CISC designs offer richer, variable-length instructions.
Pipelining overlaps the stages of successive instructions to raise throughput. Structural, data and control hazards cause stalls, and techniques such as forwarding and branch prediction reduce them. Many numerical questions ask for the clock period, total cycles, CPI or speedup of a pipeline, so practise the formulas until they are automatic.
The memory hierarchy links fast, small caches to large, slow main memory and disk. Questions often ask you to split an address into tag, index and offset bits for direct-mapped, set-associative or fully associative caches, or to work out the average memory access time. Virtual memory, page tables and the TLB, together with interrupts, DMA and Amdahl's law, complete the core syllabus.
Pakistan
India
Bangladesh
They overlap. Architecture describes what the programmer sees, such as the instruction set and addressing modes, while organisation describes how that is built in hardware, such as pipelines, caches and buses. Most syllabi teach them together.
Cache memory calculations, pipelining and number representation appear almost every year, followed by addressing modes, I/O and virtual memory. Check the current official syllabus for your exam.
Usually not. Most numerical questions use powers of two and small numbers, so practise doing them by hand quickly.
Last reviewed November 2026