Tap an option to check your answer — the correct answer and full explanation appear after you choose.
Computer ScienceComputer MemoryID: CMM-017
The main memory of most computers is built from which type of RAM?
ASRAM
BDRAM ✓ Correct answer
CPROM
DEEPROM
✓ Correct answer: DRAM
Full explanation
Main memory is DRAM: it is slower than SRAM but far denser and cheaper, so gigabytes of it fit on a module. SRAM is reserved for cache, where speed matters more than size.
Computer ScienceComputer MemoryID: CMM-018
Mask ROM (MROM) is programmed:
AOnce, by the user with a programmer
BDuring manufacture, and it can never be changed ✓ Correct answer
CBy ultraviolet light
DElectrically, one byte at a time
✓ Correct answer: During manufacture, and it can never be changed
Full explanation
Mask ROM is programmed during manufacture, as part of making the chip. Its contents are fixed forever and cannot be changed afterwards. The correct answer is During manufacture, and it can never be changed.
Computer ScienceComputer MemoryID: CMM-019
PROM (Programmable Read-Only Memory) can be programmed:
AMany times, electrically
BOnly once, after manufacture ✓ Correct answer
COnly by ultraviolet light
DNever, it comes ready programmed
✓ Correct answer: Only once, after manufacture
Full explanation
A blank PROM chip is programmed once by the user with a special programmer, which blows tiny fuses inside the chip. Once programmed it cannot be erased or changed. The correct answer is Only once, after manufacture.
Computer ScienceComputer MemoryID: CMM-020
EPROM (Erasable Programmable Read-Only Memory) is erased by:
AElectricity
BExposing the chip to ultraviolet light ✓ Correct answer
CA magnet
DHeating the chip
✓ Correct answer: Exposing the chip to ultraviolet light
Full explanation
An EPROM is erased by exposing it to ultraviolet (UV) light through the small window on the chip, which clears the charge from its floating gates. It can then be reprogrammed. The correct answer is Exposing the chip to ultraviolet light.
Computer ScienceComputer MemoryID: CMM-021
How can EEPROM be erased and reprogrammed?
AOnly by ultraviolet light
BOnly by removing the chip
CElectrically, one byte at a time, without removing the chip ✓ Correct answer
DIt cannot be erased at all
✓ Correct answer: Electrically, one byte at a time, without removing the chip
Full explanation
EEPROM is Electrically Erasable Programmable Read-Only Memory: it is erased and rewritten with electrical signals, one byte at a time, without removing the chip from the circuit. That is why it stores BIOS settings and firmware that must be updated in place. The correct answer is Electrically, one byte at a time, without removing the chip.
Computer ScienceComputer MemoryID: CMM-022
Flash memory differs from EEPROM mainly in that it is erased:
AOne byte at a time
BIn blocks, which makes it faster ✓ Correct answer
CBy ultraviolet light
DOnly during manufacture
✓ Correct answer: In blocks, which makes it faster
Full explanation
Flash memory is a type of EEPROM, but it is erased and written in blocks (typically 512 bytes at a time) instead of one byte at a time, so it is much faster. It is the memory in pen drives, memory cards and SSDs. The correct answer is In blocks, which makes it faster.
Computer ScienceComputer MemoryID: CMM-023
What is firmware?
AAn operating system
BSoftware stored permanently in ROM that controls a piece of hardware ✓ Correct answer
CA program stored on the hard disk
DA type of RAM
✓ Correct answer: Software stored permanently in ROM that controls a piece of hardware
Full explanation
Firmware is software stored permanently in non-volatile memory (ROM or flash) that controls a piece of hardware — the BIOS is the best-known example. It is not lost when the power is switched off. The correct answer is Software stored permanently in ROM that controls a piece of hardware.
Computer ScienceComputer MemoryID: CMM-024
What happens inside a PROM chip when it is programmed?
ATiny fuses are blown to store the data ✓ Correct answer
BThe chip is exposed to ultraviolet light
CThe data is written magnetically
DThe chip is heated until it melts
✓ Correct answer: Tiny fuses are blown to store the data
Full explanation
A PROM chip is a grid of tiny fuses. Programming sends a high current through selected fuses and blows them, which fixes the data permanently — that is why a PROM can be programmed only once. The correct answer is Tiny fuses are blown to store the data.
Computer ScienceComputer MemoryID: CMM-025
Which level of cache memory sits closest to the processor core?
AL3 cache
BL2 cache
CL1 cache ✓ Correct answer
DMain memory
✓ Correct answer: L1 cache
Full explanation
L1 cache is built into the processor core itself, so it is the closest, smallest and fastest cache level. L2 is further away and larger; L3 is further still and is shared between cores.
Computer ScienceComputer MemoryID: CMM-026
Which level of cache memory is shared between all the cores of a processor?
AL1 cache
BL2 cache
CL3 cache ✓ Correct answer
DThe registers
✓ Correct answer: L3 cache
Full explanation
L3 cache is the last-level cache: the largest and slowest cache level, shared between all the cores on the chip. L1 and L2 are private to each core.
Computer ScienceComputer MemoryID: CMM-027
In a direct-mapped cache, each block of main memory can go to:
AAny cache line
BExactly one cache line ✓ Correct answer
CAny line in its set
DThe L3 cache only
✓ Correct answer: Exactly one cache line
Full explanation
In direct mapping each main-memory block maps to exactly one cache line, fixed by its address. Lookup is fast, but two blocks that map to the same line keep evicting each other.
Computer ScienceComputer MemoryID: CMM-028
In a fully associative cache, a block of main memory can be placed in:
AExactly one cache line
BAny cache line ✓ Correct answer
COnly the first cache line
DOnly its own set
✓ Correct answer: Any cache line
Full explanation
In a fully associative cache any block can go into any cache line, so there are no conflicts — but the cache must compare the address against every line, which is costly for a large cache.
Computer ScienceComputer MemoryID: CMM-029
In a set-associative cache, a block of main memory can go into:
AExactly one cache line
BAny cache line in the whole cache
CAny line inside its own set ✓ Correct answer
DMain memory only
✓ Correct answer: Any line inside its own set
Full explanation
A set-associative cache divides the cache into sets of several lines; a block maps to one set and may occupy any line inside that set. It is the compromise most processors use, between direct-mapped and fully associative. The correct answer is Any line inside its own set.
Computer ScienceComputer MemoryID: CMM-030
In a write-through cache, when the CPU writes data, the write goes to:
AThe cache only
BMain memory only
CBoth the cache and main memory ✓ Correct answer
DThe hard disk
✓ Correct answer: Both the cache and main memory
Full explanation
Write-through writes every change to both the cache and main memory at once, so the two always agree. Write-back writes to the cache only and marks the line dirty, writing it out to main memory only when the line is evicted.
Computer ScienceComputer MemoryID: CMM-031
Cache memory is built from which type of RAM?
ADRAM
BSRAM ✓ Correct answer
CPROM
DEEPROM
✓ Correct answer: SRAM
Full explanation
Cache is built from SRAM (Static RAM): it needs no refreshing and is very fast, but it is costly, so only a few kilobytes to a few megabytes of it are used. Main memory is DRAM.
Computer ScienceComputer MemoryID: CMM-032
A cache serves 90 hits out of 100 accesses. What is its hit ratio?
A10%
B90% ✓ Correct answer
C9%
D100%
✓ Correct answer: 90%
Full explanation
Hit ratio = cache hits / total accesses = 90 / 100 = 90%. A hit means the data the CPU asked for was already in the cache; a miss means it had to be fetched from main memory.
Computer ScienceComputer MemoryID: CMM-033
The fixed-size blocks into which virtual memory is divided are called:
AFrames
BSegments
CPages ✓ Correct answer
DSectors
✓ Correct answer: Pages
Full explanation
Virtual memory is divided into fixed-size blocks called pages (typically 4 KB each). Physical memory is divided into page frames of the same size, and the page table maps each page to a frame.
Computer ScienceComputer MemoryID: CMM-034
When a page fault occurs, what must the operating system do?
ARestart the computer
BLoad the missing page from the disk into RAM ✓ Correct answer
CDelete the program
DClear the cache
✓ Correct answer: Load the missing page from the disk into RAM
Full explanation
A page fault means the program asked for a page that is not currently in main memory. The operating system fetches that page from the disk into a free frame of RAM and then lets the program continue. The correct answer is Load the missing page from the disk into RAM.
Computer ScienceComputer MemoryID: CMM-035
What is the TLB (Translation Lookaside Buffer)?
AA part of the hard disk
BA small, very fast cache of recent page-table translations ✓ Correct answer
CA type of ROM
DA register that holds the next instruction
✓ Correct answer: A small, very fast cache of recent page-table translations
Full explanation
The TLB is a small, fully associative cache that stores the most recent translations of virtual page numbers into physical frame numbers, so the CPU usually does not have to read the full page table in RAM. The correct answer is A small, very fast cache of recent page-table translations.
Computer ScienceComputer MemoryID: CMM-036
Thrashing is caused mainly by:
AToo many page faults, so the system spends most of its time swapping pages ✓ Correct answer
BA virus in the boot sector
CToo much cache memory
DA full hard disk
✓ Correct answer: Too many page faults, so the system spends most of its time swapping pages
Full explanation
Thrashing happens when the system spends most of its time swapping pages in and out of memory instead of doing useful work, because too many pages are being demanded at once. Adding more RAM is the usual cure. The correct answer is Too many page faults, so the system spends most of its time swapping pages.