Question
Which of the following statements best describes the
role of cache memory in a computer's memory hierarchy?Solution
Cache memory is a small, high-speed storage located close to or within the CPU. Its primary purpose is to temporarily store frequently accessed data and instructions, reducing the time it takes for the CPU to access main memory. • Why cache memory is critical: Cache bridges the speed gap between the CPU and slower memory systems. By storing copies of frequently used data, it minimizes latency and enhances processing efficiency. The use of cache levels (L1, L2, and L3) ensures optimal performance for different workloads. For example, when a CPU processes a loop in a program, the loop instructions are repeatedly fetched. Without cache, the CPU would access the slower main memory every time, slowing down execution. ________________________________________ Why Other Options Are Incorrect: 1. Backup storage for the main memory: Cache is temporary and volatile, unlike backup storage, which is typically non-volatile. 2. Permanent data storage: Cache memory is volatile and cannot retain data after the system is powered off. 3. Facilitates communication between CPUs: Inter-CPU communication is handled by shared memory or interconnects like buses, not by cache memory. 4. Exclusive for storing user-defined variables: Cache stores both program instructions and data, not just user-defined variables.
What is the time complexity of searching an element in a balanced binary search tree (BST) with nnn nodes?
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
Max-Flow Min-Cut theorem states:
In system design, what is the primary purpose of a feasibility study?
A complete binary tree has 127 nodes. What is its height (assuming the root is at level 0)?
Deletion in Red-Black Trees maintains balance using:
Fibonacci heaps support which operation in O(1) amortized time?
Which of the following is a primary advantage of using a star schema in a data warehouse design?
Which of the following is an effective countermeasure against Cross-Site Scripting (XSS) attacks in a web application?
A programmer is implementing a data analysis tool that frequently needs to append elements to a collection. If an array is used, what is a potential per...