Practice & Review | Exam Prep
1. Describe the significance of having multiple levels in the memory hierarchy.
The hierarchy is important for ensuring all memory types are used
equally.
Having multiple levels allows for more complex CPU designs without
any performance benefits.
The memory hierarchy is significant because it reduces the need for
physical storage.
Multiple levels in the memory hierarchy improve access speed and
efficiency by balancing cost and performance.
2. If a CPU executes a program that requires calculating the total of several
numbers, which type of instructions would be primarily used?
Control flow instructions
Arithmetic instructions
Logical instructions
Data movement instructions
3. Which of the following best describes virtual memory?
Virtual memory is memory that is resident on controllers and devices
not directly-connected to the front side bus.
Virtual memory is memory that is associated with removable devices
such as USB memory sticks.
Virtual memory allows for the execution of processes that do not fit
completely in memory by keeping the unused portion of the
process on the disk drive
, Virtual memory is high-speed memory that operates at 'virtually' the
speed of the processor. It is used for cache and some CPU-external
registers.
4. Which type of memory is considered an example of physical memory?
Random Access Memory (RAM)
Virtual Memory
Cache Memory
Solid State Drive (SSD)
5. In a scenario where a program frequently accesses the same set of variables,
how would temporal locality affect the program's performance?
Temporal locality would slow down the program due to increased
memory access times.
Temporal locality would enhance the program's performance by
allowing faster access to the frequently used variables through
caching.
Temporal locality would require more physical memory to store all
variables.
Temporal locality would have no effect on performance since all
variables are accessed equally.
6. Describe how temporal locality can improve the efficiency of memory access
in computer systems.
Temporal locality improves efficiency by ensuring that all data is
stored in the same location.
Temporal locality reduces memory access time by increasing the size
of physical memory.