Tap an option to check your answer — the correct answer and full explanation appear after you choose.
Computer ScienceComputer MemoryID: CMM-037
In segmentation, a program is divided into blocks of what size?
AFixed size, 4 KB each
BVariable size, following the program's logical parts ✓ Correct answer
COne byte each
DOne megabyte each
✓ Correct answer: Variable size, following the program's logical parts
Full explanation
Segmentation divides a program into variable-size segments that follow its logical parts — code, data and stack. Paging, by contrast, divides memory into fixed-size pages. The correct answer is Variable size, following the program's logical parts.
Computer ScienceComputer MemoryID: CMM-038
Swap space is located where?
AIn the cache
BIn RAM
COn the hard disk ✓ Correct answer
DIn ROM
✓ Correct answer: On the hard disk
Full explanation
Swap space is an area on the hard disk that the operating system uses as an extension of RAM for virtual memory, holding pages that are not currently in main memory.
Computer ScienceComputer MemoryID: CMM-039
Demand paging loads a page into memory:
AWhen the program starts, all at once
BOnly when the program actually needs it ✓ Correct answer
CWhen the computer is switched on
DEvery time the CPU fetches an instruction
✓ Correct answer: Only when the program actually needs it
Full explanation
With demand paging a page is loaded into RAM only when the program actually tries to use it. Pages that are never needed are never loaded, which saves both memory and time. The correct answer is Only when the program actually needs it.
Computer ScienceComputer MemoryID: CMM-040
What is the typical page size used in virtual memory on most systems?
A512 bytes
B4 KB ✓ Correct answer
C1 MB
D1 GB
✓ Correct answer: 4 KB
Full explanation
The standard page size on most systems is 4 KB (4096 bytes). Larger huge pages of 2 MB or 1 GB exist for large allocations, because they need fewer page-table entries.
Computer ScienceComputer MemoryID: CMM-041
The CMOS memory that stores the BIOS settings is kept alive when the computer is off by:
AThe main battery
BA small battery on the motherboard ✓ Correct answer
CThe hard disk
DThe power supply
✓ Correct answer: A small battery on the motherboard
Full explanation
CMOS memory is powered by a small coin-cell battery on the motherboard. If that battery dies, the BIOS settings — boot order, date and time — are lost and return to their defaults. The correct answer is A small battery on the motherboard.
Computer ScienceComputer MemoryID: CMM-042
Which memory is used as a buffer between the CPU and the main memory?
ACache memory ✓ Correct answer
BRAM
CROM
DHard disk
✓ Correct answer: Cache memory
Full explanation
Cache memory sits between the CPU and the main memory and holds the data the CPU needs next, so the CPU does not wait for the slower main memory.