A set associative cache consists of 64 lines, or slots divided into four lines sets. Main memory consists of 4k blocks of 128 words each. What are the number of the bits of TAG, Set offset and word offset respectively ?
Asked in RPSC 23Feb 2016Question Paper for VicePrincipal/Superintendent ITI Screening Test 2012(Computer Science)VICE PRINCIPAL/SUPDT. ITI - 2012
Show answer
Answer: A. 8,4,7
More RPSC Prelims previous year questions questions
- What is the source and destination addressing mode for the instruction ? ADD Ax , [500] ; Ax ← M[500] ;
- Consider a cache with 40 bit address 16384 blocks and block size is 256 byte Tags are 19 bit long. How many sets are there and what is the associating of a cache ?
- What is the address of the operand in a computation-type instruction:-
- What does the following C-statement declare? int ( * f) (int *) ;
- A program P reads in 500 integers in the range [0,100] representing the scores of 500 students. It then prints the frequency of each score above 50. What would be the best way for P to store the frequencies?
- What is the output of following program? # include <stdio.h> void fun(int x) { x = 30; } int main() { int y = 20; fun(y); printf("%d", y); return 0; }
- In below program, what would you put in place of “?” to print “Quiz”? #include <stdio.h> int main() { chararr[] = "GatesQuiz"; printf("%s", ?); return 0; }
- The reason for using pointers in a C-program is