Computing / Knowledge quiz

RAM vs storage: why do computers have several kinds of memory? A memory hierarchy quiz

Computers use several kinds of memory because fast memory is small and expensive while slower storage is large. The quiz covers the memory hierarchy tiers, cache misses, DRAM refresh cycles, temporal locality, virtual memory pages, the memory management unit, thrashing, ROM firmware and shared L3 cache. Try the ten questions now.

10 questionsAnswers and score at the end
Practice quiz

Test your knowledge.

Question 1 of 100 answered

Adding up your answers

Your score is next.

Question 1

What is the primary cause of the Memory Wall?

Engineers increased processor speeds by shrinking transistors and raising clock speeds, but RAM technology prioritized density and capacity over speed, creating a major latency gap.

Source excerpt
However, the technology inside RAM focused more on storing more data rather than delivering it faster.

From the Knowverse course text.

Question 2

Why does DRAM require constant refresh cycles?

DRAM cells store data as an electrical charge in tiny capacitors. Because these components act like small leaking batteries, the memory controller must constantly refresh them to prevent data loss.

Source excerpt
Because capacitors are essentially tiny batteries, they naturally leak electricity over time, causing the stored data to fade away.

From the Knowverse course text.

Question 3

What is the main physical difference between SRAM and DRAM?

While a DRAM cell needs only one transistor and one capacitor, a single SRAM cell typically requires six transistors, making it much larger and more expensive to manufacture.

Source excerpt
However, while a DRAM cell needs only one transistor and one capacitor, a single SRAM cell usually requires six transistors.

From the Knowverse course text.

Question 4

What does Temporal Locality describe in computer programs?

Temporal locality refers to a program repeatedly accessing the same variable or instruction within a brief period, making it efficient to keep that data close to the processor.

Source excerpt
The first pattern we see here is Temporal Locality, which describes the tendency to reuse the same data multiple times in a short window of time.

From the Knowverse course text.

Question 5

What happens during a Cache Miss?

When requested data is absent from the cache, a cache miss occurs. The system must retrieve it from the slower main RAM, causing a time penalty.

Source excerpt
However, if the requested data is not in the cache, the result is a Cache Miss.

From the Knowverse course text.

Question 6

What is the function of the Memory Management Unit (MMU)?

The MMU is a dedicated hardware component inside the processor that instantly converts virtual addresses used by software into actual physical locations in RAM.

Source excerpt
Since the CPU works with virtual addresses, but the data lives in physical RAM, we need a translator: the Memory Management Unit.

From the Knowverse course text.

Question 7

What is Thrashing in a computer system?

When too many programs run at once, the system spends all its time swapping data between RAM and storage rather than executing software instructions.

Source excerpt
If you have too many programs open, the system might get stuck in a loop of constantly moving data in and out of RAM.

From the Knowverse course text.

Question 8

What is the primary purpose of ROM in a computer?

Read-Only Memory is non-volatile, meaning its data stays intact when power is off. It holds the essential firmware needed to wake the system and load the operating system.

Source excerpt
To solve this, computers use Read-Only Memory, or ROM, which holds the essential code needed to wake the system up.

From the Knowverse course text.

Question 9

What does L3 cache typically provide in a modern processor?

L3 cache is larger and slower than L1 or L2, but it is shared across processor cores to reduce the frequency of slow trips to main RAM.

Source excerpt
While L3 is slower than L1 and L2, it acts as a massive reservoir that prevents the cores from having to talk to the much slower RAM.

From the Knowverse course text.

Question 10

Why are pages in virtual memory typically fixed at 4 kilobytes?

To manage virtual space efficiently, memory is broken into fixed-size chunks called pages, with 4KB being the standard unit of transfer defined by the hardware architecture.

Source excerpt
A Page is a fixed-size block of virtual memory, usually 4 kilobytes (4KB) in size, which acts as the basic unit of transfer.

From the Knowverse course text.

YOUR SCOREcorrect answers
Quiz complete

Here's how you did.

See the answer and explanation for each question below.

Knowverse app icon
KNOWVERSE FOR IPHONE

Get the Knowverse app.

Find more quizzes and full courses in the free iOS app.

Get KnowverseDownload on iOS

Fast, small and expensive

Inside a modern computer, the central processor performs billions of operations every second. However, it often waits hundreds of cycles for data to arrive from main memory. This delay is known as latency, creating a major performance bottleneck called the memory wall.

To solve this speed mismatch, engineers place small, high-speed memory called cache directly inside or near the processor. Because cache uses static random access memory, it provides near-instant access but costs significantly more per bit than standard RAM.

Processors rely on tiny static memory buffers to avoid stalling while waiting for electrical signals to return. Since static memory requires six transistors per bit, it remains too expensive and physically large to replace main memory entirely across the system board.

Source excerpt
To solve this, engineers place a small, high-speed memory called a Cache directly between the CPU and the main RAM.

From the Knowverse course text.

Modern Memory — image from Wikimedia Commons
Random Access Memory HyperX · Zsinytwiki · CC0

Slow, large and cheap

The sticks of system memory plugged into a motherboard consist of dynamic random access memory. DRAM stores bits as electrical charge inside tiny capacitors that leak over time, requiring constant refresh cycles from the memory controller.

This constant need to refresh introduces latency, but capacitors are small enough to fit gigabytes of affordable memory on a single board. The physical design prioritizes dense storage capacity over raw speed to keep system costs reasonable.

When physical RAM fills up with running applications, operating systems use storage drives as temporary overflow space. Moving data back and forth between fast memory and slower storage drives creates a significant speed penalty known as swapping.

Source excerpt
The sticks of memory you plug into a motherboard are made of DRAM, or Dynamic Random Access Memory.

From the Knowverse course text.

Locality and virtual memory

Programs tend to access nearby data and instructions repeatedly rather than jumping randomly across memory addresses. This predictable behavior is known as the locality principle, and it allows hardware caches to predict what the processor will need next.

When applications demand more space than physical RAM provides, the operating system creates a larger private workspace using virtual memory. The memory management unit translates virtual addresses into physical ones to keep everything running smoothly.

If too many programs run at once, the system gets stuck constantly moving data in and out of RAM in a state called thrashing. Managing these memory tiers ensures the processor receives data efficiently despite physical hardware limitations.

Source excerpt
This predictable behavior is known as the Locality Principle, and it is the secret reason why modern computers feel fast.

From the Knowverse course text.

Sources

Sources: Memory and Storage Hierarchies. Each question or step includes an excerpt from the course.