GATE 2012
82 questions
MCQ 821-mark 39 · 2-mark 43
Questions 21–25 of 82
The truth table
represents the Boolean function
represents the Boolean function
Answer: (A)
Read the table row by row.
For X = 0 (rows 00 and 01), f = 0 for both values of Y.
For X = 1 (rows 10 and 11), f = 1 for both values of Y.
So f follows X and Y has no effect: .
The other options fail on one row. gives 1 at X = 0, Y = 1, but f = 0 there. gives 1 at X = 0, Y = 1 and 0 at X = 1, Y = 1, both opposite to f. Y gives 0 at X = 1, Y = 0, but f = 1.
Answer: (A)
For X = 0 (rows 00 and 01), f = 0 for both values of Y.
For X = 1 (rows 10 and 11), f = 1 for both values of Y.
So f follows X and Y has no effect: .
The other options fail on one row. gives 1 at X = 0, Y = 1, but f = 0 there. gives 1 at X = 0, Y = 1 and 0 at X = 1, Y = 1, both opposite to f. Y gives 0 at X = 1, Y = 0, but f = 1.
Answer: (A)
The decimal value 0.5 in IEEE single precision floating point representation has
Answer: (B)
Write 0.5 in normalized form: . The leading 1 is hidden and is not stored, so all the fraction bits are 0. The true exponent is 1, and the stored value is 126.
Answer: fraction bits of 000...000 and exponent value of 1
Answer: fraction bits of 000...000 and exponent value of 1
The amount of ROM needed to implement a 4 bit multiplier is
Answer: (D)
The inputs are two 4-bit numbers, so there are 8 address bits words. The output is the product, which is up to 8 bits.
Size of the ROM = 256 8 = 2048 bits = 2 Kbits
Answer: 2 Kbits
Size of the ROM = 256 8 = 2048 bits = 2 Kbits
Answer: 2 Kbits
A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit.
The size of the cache tag directory is
The size of the cache tag directory is
Answer: (A)
Blocks: blocks.
Sets: 4-way, so sets, which needs 11 index bits.
Offset: block size 32 B, so 5 bits.
Tag: bits.
Each directory entry has the tag plus 2 valid bits, 1 modified bit and 1 replacement bit: bits. There is one entry per block.
Directory size bits Kbits.
Answer: (A) 160 Kbits
Sets: 4-way, so sets, which needs 11 index bits.
Offset: block size 32 B, so 5 bits.
Tag: bits.
Each directory entry has the tag plus 2 valid bits, 1 modified bit and 1 replacement bit: bits. There is one entry per block.
Directory size bits Kbits.
Answer: (A) 160 Kbits
A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor sends 32 bit addresses to the cache controller. Each cache tag directory entry contains, in addition to address tag, 2 valid bits, 1 modified bit and 1 replacement bit.
The number of bits in the tag field of an address is
The number of bits in the tag field of an address is
Answer: (C)
Steps:
- Number of blocks = 256 KB / 32 B = 8192. Number of sets = 8192 / 4 = 2048 so the index is 11 bits.
- The offset is 5 bits.
Tag bits = 32 11 5 = 16 bits
Answer: 16
- Number of blocks = 256 KB / 32 B = 8192. Number of sets = 8192 / 4 = 2048 so the index is 11 bits.
- The offset is 5 bits.
Tag bits = 32 11 5 = 16 bits
Answer: 16