Answer:
3 bits
Explanation:
Given a 4- way set associative cache that has 64 blocks of 16 words.
Therefore, the number of sets cache has:
Now,
Cache data size is 16kB
The number of cache blocks can be calculated as:
Now,
Total sets =
Total sets =
Now,
n = 6
For 15 bit address for the architecture, the bits in tag field is given by:
15 - (6 + 6) = 3 bits
Thus the tag field will have 3 bits
Answer:
Option 2: instance
Explanation:
Instance method is a method that is called through an object created from a class.
In object oriented programming, we can define a class which is comprised of attribute(s) and method(s). We can create whatever number of objects from the class. Each object created from the class is known as Instance. Each of the class instances will possess same set of attributes and methods. To use the method, the syntax is as follows:
instanceName.methodName()
For example by presuming we have a class Rectangle with a method calcArea(). To call the calcArea() method, we need to create an object from the class and use it to call the method.
- Rectangle rect1 = new Rectangle(3, 5);
- rect1.calcArea();