The transformation of data from main memory to cache memory is referred as:
2025
The transformation of data from main memory to cache memory is referred as:
- A.
Data exchange
- B.
Data transformation
- C.
Mapping
- D.
Matching
Attempted by 1110 students.
Show answer & explanation
Correct answer: C
Answer: Mapping
Mapping is the process that determines where blocks from main memory are placed in cache memory. A mapping function assigns each memory block to one or more possible cache locations.
Direct mapping: each memory block maps to exactly one cache line (determined typically by block number modulo number of lines).
Fully associative mapping: a memory block can be placed in any cache line; placement uses search or associative lookup.
Set-associative mapping: a compromise where cache is divided into sets; a block maps to any line within a specific set.
Key components involved: tag (to verify the block), index (to select set or line), and block offset (to locate the data within the block).
In summary, the correct term for placing main memory data into cache is mapping, which specifies how and where memory blocks are stored in the cache.
A video solution is available for this question — log in and enroll to watch it.