In: Computer Science
1. CPUs use caches for all of the following except:
Question 1 options:
Allowing CPU cores to share information |
|
Retrieving one instruction at a time |
|
Storing entire functions on the CPU |
|
Running faster than RAM |
Question 2 (1 point)
Which of the following is true about CPU caching?
Question 2 options:
There are usually only two levels of caching. |
|
There is usually only one level of caching. |
|
There are usually only four levels of caching. |
|
There are usually only three levels of caching. |
Question 3 (1 point)
Which of the following is not a typical cache replacement policy?
Question 3 options:
Least frequently used |
|
Square sigma |
|
First in first out |
|
Least recently used |
Question 4 (1 point)
The effective access time is composed of all of the following except
Question 4 options:
Number of register accesses |
|
Number of cache hits |
|
Time penalty for a cache miss |
|
Number of cache misses |
Question 5 (1 point)
When should cache size be considered in software development?
Question 5 options:
Design |
|
Requirements |
|
Implementation |
|
Deployment |
Question 6 (1 point)
All programs can typically be loaded and can stay in main memory.
Question 6 options:
True | |
False |
Question 7 (1 point)
The physical address for memory is determined by the
Question 7 options:
CPU cache |
|
Compiler |
|
Operating system |
|
CPU |
Question 8 (1 point)
Pages are
Question 8 options:
Variable size |
|
Never supported with hardware |
|
Architecture dependent |
|
Fixed size |
Question 9 (1 point)
How many bits are necessary to store a whether a logical address is in RAM or stored in virtual memory?
Question 9 options:
3 |
|
2 |
|
0 |
|
1 |
Question 10 (1 point)
Virtual memory is slower than physical memory.
Question 10 options:
True | |
False |
1- Storing entire functions on the CPU
Cache size is not much large. So, it is difficult to store the entire function and as well as this is not the great move it will reduce the performance of the system.
2- There are usually only three levels of caching
L1 cache(primary cache), L2(secondary cache), L3(specialised memory to improve the performance of L1 and L2).
3- Square sigma
Other 3 are well known cache replacement policies
4- Number of register accesses
Formula : effective-access-time = hit-rate * cache-access-time + miss-rate * lower-level-access-time
5- Deployment
It is considered in deployment phase for increasing the performance.
6- False
No, after execution the allocated memory will be freed.
7- Operating system
It is assigned by Operating system whereas logical address is generated by CPU.
8- Fixed size
Pages are of fixed size whereas segments are of variable size.
9- 1
With one bit we can identify whether we can assign 0 for RAM and 1 for virtual memory OR 1 for RAM and 0 for virtual memory.
10- True
Because Virtual memory is the part of harddisk and physical memory is RAM.
If you have any doubt, feel free to ask in comment section.
If you like the solution, please upvote...