Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Computer Systems Final Exam Questions All Solved Correct Update.

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
31-10-2025
Written in
2025/2026

what is a cache - Answer a hardware device that holds copies of data that are a subset of a larger collection of data provides faster access to data cache hit and cache miss - Answer cache hit -- you retureve the datum from the cache cache miss --- if the datum is not in this cache, it retrieves the requested datum along with the rest of the data surrounding it what is a block - Answer The bunch of data that the cache fetches together blocks have a uniform size determined by the cache eviction policy - Answer When the cache responds to a cache miss by retrieving the new block containing the requested datum, where does it store the new block? •If the cache has empty space, it stores the block there. •If the cache is full, however, it must replace an existing block with the new one. •It must choose a "victim" block to replace—or "evict." Internal Structure of a cache what are the three components of a row in a set - Answer The cache has a number of sets -- S (2^s for some integer s) Each set has one or more sections called lines (L) -- 2^l for some integer l Each line contained a block of memory storage of some uniform size B -- B = 2^b for some integer b

Show more Read less
Institution
Computer Systems
Course
Computer Systems

Content preview

Computer Systems Final Exam
Questions All Solved Correct 2025-
2026 Update.
what is a cache - Answer a hardware device that holds copies of data that are a subset of a
larger collection of data



provides faster access to data



cache hit and cache miss - Answer cache hit --> you retureve the datum from the cache



cache miss ---> if the datum is not in this cache, it retrieves the requested datum along with the
rest of the data surrounding it



what is a block - Answer The bunch of data that the cache fetches together



blocks have a uniform size determined by the cache



eviction policy - Answer When the cache responds to a cache miss by retrieving the new block
containing the requested datum, where does it store the new block?



•If the cache has empty space, it stores the block there.



•If the cache is full, however, it must replace an existing block with the new one.



•It must choose a "victim" block to replace—or "evict."



Internal Structure of a cache



what are the three components of a row in a set - Answer The cache has a number of sets -->
S (2^s for some integer s)

, Each line has a valid bit which indicates whether the data is valid



Each line has some number t of tag bits, which are used to find the right cache line within the
set for a requested datum.



when is the valid bit set to 0 or 1 - Answer when the block is evicted to make more room, the
valid bit is set to 0



when the data is retrieved it is set to 1



Capacity of the cache - Answer C = S × L × B



Sets * Lines * Blocks



How to index into a cache - Answer First figure out how many bits you need to represent the
set index and block index. Ex. 256 sets = 8 bits --> BE CAREFUL this is one less than 256 binary
becasue you count 0



then do this --> number of bits for set + number of bits for block = X



grab the rightmost X bits



grab the leftmost S bits and find the number --> this is the ROW number, BE CAREFUL the rows
start with 0



grab the rest of the bits as B and find the number --> this is the COLUMN number, BE CAREFUL
the columns start with 0



based on the systems word size or w-bit system, start with that row, column and grab more to
the right if needed



ex. 16 bit system and the row/column you got with the address has 8 bits in it, grab the next

block to the right also

Written for

Institution
Computer Systems
Course
Computer Systems

Document information

Uploaded on
October 31, 2025
Number of pages
12
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.79
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Thumbnail
Package deal
CS 1104 COMPUTER SYSTEMS EXAM BUNDLE 2025-2026 GRADED A+
-
4 2025
$ 32.89 More info

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TestSolver9 Webster University
View profile
Follow You need to be logged in order to follow users or courses
Sold
939
Member since
2 year
Number of followers
127
Documents
29899
Last sold
2 days ago
TESTSOLVER9 STORE

TOPNOTCH IN LEARNING MATERIALS,(EXAMS,STUDYGUIDES NOTES ,REVIEWS,FLASHCARDS ,ALL SOLVED AND PACKAGED.OUR STORE MAKE YOUR EDUCATION JOURNEY EFFICIENT AND EASY.WE ARE HERE FOR YOU FEEL FREE TO REACH US OUT .

3.5

162 reviews

5
68
4
20
3
29
2
16
1
29

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions