Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following Cache Eviction techniques consider Locality

Answer»

Which of the following CACHE Eviction techniques CONSIDER Locality?
(1)Least Recently USED
(2)Time Based
(3)RANDOM
(4)First in First Out
Answer:- Answer is (1)Least Recently Used

2.

Which of the following is true about a well designed cache

Answer»

Which of the FOLLOWING is true about a WELL designed cache?
(1)Hit Rate == Miss Rate
(2)Hit Rate < Miss Rate
(3)Hit Time > Miss Time
(4)Hit Rate > Miss Rate
Answer:- Answer of above QUESTION is (4)Hit Rate > Miss Rate

3.

Which of the following types of data exhibits Spatial Locality?

Answer»

Which of the following TYPES of DATA exhibits Spatial Locality?
(1)Counter
(2)All OPTIONS mentioned
(3)Look Up Table
(4)Array--------
ANSWER:- answer of above question is (4)Array

4.

cache Interview Questions Part1

Answer» CACHE Interview Questions
(1)A cache is a ______________.
(i)Data storage format
(ii)Small and Fast memory
(iii)Copy of data
(iv)Data Backup
ANSWER:-(ii)Small and Fast memory

(2)In which type of cache, application directly interacts with database for data that is not available in the cache?
(i)Local Cache
(ii)Cache-aside
(iii)Write Through Cache
(iv)Read Through Cache
Answer:- Answer is (ii)Cache-aside

(3)A cache has 1024 blocks and each block can contain 1024 bits of data. What is the size of the cache?
(i)0.25 MB
(ii)0.125 MB
(iii)1 MB
(iv)0.5MB
Answer:-(ii)0.125 MB

(4)Which of the following in a cache address, specifies the exact location in the cache line where the requested data exists?
(i)Block Number
(ii)Block Offset
(iii)Block Index
(iv)Tag
Answer:-(ii)Block Offset

(5)A byte addressable direct-mapped cache with 1024 blocks/lines, and with each block are having 8 32-bit words. How many bits are required for block offset, assuming a 32-bit address?
(i)10
(ii)15
(iii)3
(iv)5
Answer:-(iv)5

(6)In which type of cache, application treats cache as the main data store and reads data from it and writes data to it? (I) Read Through/Write Through Cache (II) Cache-aside
(i)I
(ii)None of the options mentioned
(iii)II
(iv)I & II
Answer:- (i)I

(7)Which type of caching can be used to cache the contest registration page in a WEBSITE, to reduce the time taken to serve the page for the users?
(i)Web Cache
(ii)Data Cache
(iii)Browser Cache
(iv)Application Cache
Answer:-(iv)Application Cache

(8)Which type of cache reference locality aims at designing cache to store the entire block near the Recently Referenced Data? (I) Temporal Locality (II) Spatial Locality
(1)I
(2)I & II
(3)None of the options mentioned
(4)II
Answer:-(4)II

(9)A web page displays 10 items per page and has pagination enabled. What would be the recommended way to enable efficient paging?
(i)Perform in-memory paging
(ii)Use Temporal Cache
(iii)Use Spatial Cache
(iv)Hit the database every time user moves to next page
Answer:-(iii)Use Spatial Cache

(10)Which type of cache reference locality aims at designing cache to store "Recently Referenced Data" assuming that the same data will be requested frequently?
(1)Temporal Locality
(2)Either of the options mentioned
(3)Spatial Locality
(4)None of the options mentioned
Answer:-(1)Temporal Locality

(11)When a computer processor does not gets a data item that it requires in cache, then the problem is known as _________.
(i)Write Miss
(ii)Cache Read
(iii)Cache Hit--------
(iv)Cache Miss
Answer:-(iii)Cache Hit

(12)Which type of cache is recommended to store user preferences for an application with several 100's of concurrent users?
(i)Near Cache
(ii)On Demand Cache
(iii)Data Cache
(iv)Primed Cache
Answer:-(ii)On Demand Cache

(13)Which of the following is used to determine, if a piece of data in cache needs to be written back to cache?
(i)Valid Bit = 0
(ii)Dirty Bit = 1
(iii)Valid Bit = 1
(iv)Dirty Bit = 0
Answer:-(ii)Dirty Bit = 1

(14)Cache Performance or Average Memory Access time (AMAT) depends on which of the following?
(i)All options mentioned
(ii)Time taken to get data from cache
(iii)Frequency of Cache Miss
(iv)Time taken to get data from main memory
Answer:-(i)All options mentioned

(15)Caching Technique where cache is populated the first time a certain piece of data is requested is called _________.
(i)Local POPULATION
(ii)Lazy Loading
(iii)Cache aside
(iv)Upfront Loading
Answer:-(ii)Lazy Loading

(16)Which of the following is true about the cache?
(i)Line size < Block size
(ii)None of the options mentioned
(iii)Line size == Block size
(iv)Line size > Block size
Answer:-(iii)Line size == Block size

(17)Which Cache would be the best place to cache DNS data?
(i)Application
(ii)Browser
(iii)Proxy
(iv)Data
Answer:-(iii)Proxy


(18)For a cache look up to be a Hit, which of the following must be true?
(i)Tag==Block Number and Valid Bit = 0
(ii)Tag==Block Number and Valid Bit = 1
(iii)Tag==Block Offset and Valid Bit = 0
(iv)Tag==Block Offset and Valid Bit = 1
Answer:-(ii)Tag==Block Number and Valid Bit = 1



(19)While using a Write Back cache, which of the following policies needs to be abided?
(i)No Write Allocate
(ii)Write Allocate
(iii)Write Around
(iv)Write Through
Answer:-ii)Write Allocate


(20)Line size in a cache is recommended to be a power of 2.
(i)True
(ii)False
Answer:-(i)True

(21)Cache Performance or Average Memory Access time (AMAT) depends on which of the following?
(i)Time taken to get data from cache
(ii)Time taken to get data from main memory
(iii)All options mentioned
(iv)Frequency of Cache Miss
Answer:-(iii)All options mentioned

(22)Which Caching Topology is recommended for a read intensive distributed application?
(i)Local Cache
(ii)Near Cache
(iii)PARTITIONED
(iv)Replicated
Answer:-(iv)Replicated
5.

Primary objective of Cache Coherence is to ensure __________.

Answer»

Primary objective of CACHE COHERENCE is to ensure __________.
(1)Data CONSISTENCY across all local caches
(2)Improving the Cache Resilience
(3)Improving Cache Performance

Answer:- Answer of above question is (1)Data Consistency across all local caches

6.

Which Caching Topology is recommended for a read intensive distributed

Answer»

Which Caching TOPOLOGY is RECOMMENDED for a READ INTENSIVE distributed application?
(1)Local Cache
(2)Near Cache
(3)Partitioned
(4)Replicated
Answer:- Answer is (4)Replicated

7.

What is Caching and why we use cache

Answer»

Cache is usefull to save data and storing it for later use. Cache is a smaller and faster memory which stores copies of the frequently used data which is later use as a INPUT for other thing. Here we stroe object like HTML pages, images, FILES, WEB objects, ETC are stored in cache to improve the efficiency and overall performance of the application. A cache is typically stored in memory or on disk. A memory cache is normally faster to read from than a disk cache. But, does not survive system restarts.

Below are the reason why we use cache
(1)Reduce Latency
(2)Increase Capacity
(3)Improve App Availability