Metadata
Technology & Computer Science Undergraduate Understand Medium-
Subject
Technology & Computer Science
-
Education level
Undergraduate
-
Cognitive goals
Understand
-
Difficulty estimate
Medium
-
Tags
cache, locality, temporal locality, spatial locality, memory hierarchy
-
Number of questions
5
-
Created on
-
Generation source
-
License
CC0 Public domain
-
Prompt
Test students' understanding of temporal and spatial locality and their effect on cache performance; cover cache organization (cache line/block size, direct-mapped, set-associative, fully-associative mapping, replacement and write policies), miss types (compulsory, capacity, conflict), and performance metrics (hit rate, miss penalty, average memory access time). Require analysis of short code snippets to predict hit/miss patterns, compute miss rates and AMAT, and propose code-level optimizations (blocking, loop interchange, prefetching) to improve locality and program performance.
Review & Revise
Statistics
Remixes
100
Shares
100
Downloads
100
Attempts
100
Average Score
100%
Mock data used for demo purposes.