Skills101
← All practice quizzes

Quiz: Memory Hierarchy and Cache

5 questionsNo time limitPass: 60%+10 XP on first pass

Why computers have registers, caches, RAM and disks, the locality principle, hit ratio and average memory access time, and cache mapping — splitting an address into tag, index and offset — with a working cache simulator in Python and solved numericals.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Looping through an array element by element benefits mainly from:

  2. Question 2

    Hit time 1 ns, miss rate 5%, miss penalty 100 ns. What is the AMAT?

  3. Question 3

    For a 64 KB, 4-way set-associative cache with 64-byte blocks and 32-bit addresses, how many index bits are there?

  4. Question 4

    How many index bits does a fully associative cache have?

  5. Question 5

    In the simulator, why did address 64 cause evictions?