Ace
Learns
Theme
light_mode
dark_mode
light_mode
Light
dark_mode
Dark
monitor
Auto
Open main menu
menu_open
×
Home
History
Geography
Astronomy
Physics
Chemistry
Biology
Agriculture
Sports
Computer Science
Articles
Contact Us
MCQ Categories
Articles
Home
Contact Us
Home
»
Computer Science
»
Computer Organization
»
Cache Memory
Computer Organization
unfold_more
double_arrow
Cache Memory
double_arrow
Direct Memory Access (DMA)
double_arrow
I/O interface
double_arrow
Interrupts
double_arrow
Pipelining
quiz
Cache Memory
Cache Memory Explained
1.
Which of the following best describes a characteristic of cache memory?
A)
High capacity, low speed
B)
Low capacity, high speed
C)
High capacity, low memory
D)
Low capacity, low speed
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Low capacity, high speed
Explanation
2.
What does the term “cache hit” refer to?
A)
When data is successfully retrieved from the cache
B)
When data is found in the main memory
C)
When data is written to the cache for the first time
D)
When the cache needs to be replaced
Answer
keyboard_arrow_down
keyboard_arrow_up
A) When data is successfully retrieved from the cache
Explanation
3.
Which level of cache memory is closest to the CPU cores and typically the smallest in size?
A)
L2 Cache
B)
L3 Cache
C)
L4 Cache
D)
L1 Cache
Answer
keyboard_arrow_down
keyboard_arrow_up
D) L1 Cache
Explanation
4.
Which of the following cache replacement policies replaces the least recently accessed data?
A)
FIFO
B)
Random Replacement
C)
LRU
D)
Write-Through
Answer
keyboard_arrow_down
keyboard_arrow_up
C) LRU
Explanation
5.
What is the function of the MESI protocol in cache memory systems?
A)
To determine the size of the cache
B)
To maintain cache coherency in multi-core systems
C)
To manage the power consumption of the cache
D)
None of these
Answer
keyboard_arrow_down
keyboard_arrow_up
B) To maintain cache coherency in multi-core systems
Explanation
6.
Which of the following is a cache metric used to measure the performance of a cache memory system?
A)
Cache Hit
B)
Cache Miss
C)
Cache Access Time
D)
All of the above
Answer
keyboard_arrow_down
keyboard_arrow_up
D) All of the above
Explanation
7.
Which type of cache memory policy involves writing data to both the cache and main memory simultaneously?
A)
Write-Back
B)
Write-Through
C)
Write-Around
D)
Write-Allocate
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Write-Through
Explanation
8.
Which cache stores recent translations of virtual memory addresses to physical memory addresses?
A)
Instruction cache
B)
Data cache
C)
Translation Lookaside Buffer
D)
Cache Coherence Buffer
Answer
keyboard_arrow_down
keyboard_arrow_up
C) Translation Lookaside Buffer
Explanation
9.
How is the cache line number determined in direct mapping?
A)
i = j / m
B)
i = j * m
C)
i = j + m
D)
i = j % m
Answer
keyboard_arrow_down
keyboard_arrow_up
D) i = j % m
Explanation
10.
Which field in a memory address is used to identify the specific memory block in fully associative mapping?
A)
Index field
B)
Tag field
C)
Block offset field
D)
Word field
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Tag field
Explanation
11.
In a 2-way set associative cache with 16 lines, how many sets are there?
A)
2
B)
4
C)
8
D)
16
Answer
keyboard_arrow_down
keyboard_arrow_up
C) 8
Explanation
12.
In direct mapping, what happens if a cache line is already occupied when a new memory block needs to be loaded?
A)
The new block is stored in a different cache line.
B)
The old block is replaced
C)
The new block is stored in the main memory only.
D)
Both blocks are stored in the cache.
Answer
keyboard_arrow_down
keyboard_arrow_up
B) The old block is replaced
Explanation
13.
Which addressing scheme in cache memory allows any block of memory to be placed in any cache line?
A)
Direct-Mapped Cache
B)
Fully Associative Cache
C)
Set-Associative Cache
D)
Direct Addressing
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Fully Associative Cache
Explanation
14.
If the cache hit ratio is denoted by h, what is the formula to calculate the cache miss ratio?
A)
1−h
B)
1/h
C)
h+1
D)
h-1
Answer
keyboard_arrow_down
keyboard_arrow_up
A) 1−h
Explanation
15.
What happens during a cache flush?
A)
The cache is filled with new data
B)
The cache is refreshed with the most recent data
C)
The cache is cleared of all data
D)
The cache is disabled
Answer
keyboard_arrow_down
keyboard_arrow_up
C) The cache is cleared of all data
Explanation
Quick Links
Geography
chevron_right
Geopolitics and Global Issues
chevron_right
Regional Geography
chevron_right
Climatology
chevron_right
Geomorphology
Biology
chevron_right
Cell Biology
chevron_right
Human Diseases
chevron_right
The Human Body System
chevron_right
Essential Nutrients
Computer Science
chevron_right
Computer Organization
chevron_right
Python Programming Language
chevron_right
Computer Networks
chevron_right
Analysis and Design of Algorithms
History
chevron_right
Revolution and Counter-Revolution
chevron_right
Medieval World History
chevron_right
Enlightenment and Modern ideas
chevron_right
Industrialization