Answer:
int main()
{
int speed = 25, time = 15;
int distance = speed * time;
cout<<"The distance is: " << distance <<endl;
return 0;
}
Explanation:
- Initialize the variable <em>speed</em> as 25 and <em>time</em> as 15
- Calculate the <em>distance</em> by multiplying <em>speed</em> and <em>time</em>
- Print the <em>distance</em>
Answer:
Offset bits: 3-bits
Set number of cache: 12-bits
Tag bits: 7-bits
22-bit physical address
Explanation:
Since the system is 32K so,
=2⁵.2¹⁰
=2¹⁵
As we know that it is 8-way set associative so,
=2¹⁵/2³
=2¹⁵⁻³
=2¹²
2¹² are cache blocks
22-bit physical address
Off-set bits are 3 as they are calulated from 8-way set associative information.
Set number of cache : 12-bits
For tag-bits:
Add off-set bits and cache bits and subtract from the total bits of physical address.
=22 - (12+3)
=22 - 15
=7
D)Animated abstract shapes