GATE 2014 (Session 2)
65 questions
MCQ 42 · NAT 231-mark 30 · 2-mark 35
Questions 16–20 of 65
The dual of a Boolean function , written as , is the same expression as that of F with + and swapped. F is said to be self-dual if . The number of self-dual functions with n Boolean variables is
Answer: (D)
A function is self-dual when it meets this condition: .
All input rows split into pairs of complementary rows. Once F is chosen for one row in a pair, F for the other row is fixed. So only bits can be chosen freely.
Total count of self-dual functions =
Answer:
All input rows split into pairs of complementary rows. Once F is chosen for one row in a pair, F for the other row is fixed. So only bits can be chosen freely.
Total count of self-dual functions =
Answer:
Let . A circuit is built by giving the output of an n-bit binary counter as input to an n-to- bit decoder. This circuit is equivalent to a
Answer: (C)
The n-bit counter counts 0, 1, 2, ... up to . For each count, the decoder sets exactly one of its outputs to 1.
So the single 1 shifts from 000..1 00..10 ... 10..0 and then returns to the start. This is exactly a k-bit ring counter.
Answer: k-bit ring counter
So the single 1 shifts from 000..1 00..10 ... 10..0 and then returns to the start. This is exactly a k-bit ring counter.
Answer: k-bit ring counter
Consider the equation with x and y as unknown. The number of possible solutions is _____ .
Answer: 3
Next, . The digit 8 requires , and the digits require .
The factor pairs of 30 give (x, y) = (3, 10), (2, 15), (1, 30).
Answer: 3
A 4-way set-associative cache memory unit with a capacity of 16 KB is built using a block size of 8 words. The word length is 32 bits. The size of the physical address space is 4 GB. The number of bits for the TAG field is _____
Answer: 20
Go through each part:
- One block has 8 words, so 8 4 B = 32 B the offset is 5 bits
- Number of blocks = 16 KB / 32 B = 512, and number of sets = 512 / 4 = 128 the index is 7 bits
- The address space is 4 GB the address is 32 bits
TAG = 32 7 5 = 20 bits
Answer: 20
- One block has 8 words, so 8 4 B = 32 B the offset is 5 bits
- Number of blocks = 16 KB / 32 B = 512, and number of sets = 512 / 4 = 128 the index is 7 bits
- The address space is 4 GB the address is 32 bits
TAG = 32 7 5 = 20 bits
Answer: 20
Consider the function func shown below:
int func(int num) {
int count = 0;
while (num) {
count++;
num >>= 1;
}
return (count);
} The value returned by func(435)is __________.Answer: 9
Each pass of the loop shifts num right by one bit. It stops when num is 0. So the function counts how many bits num has.
(256 + 128 + 32 + 16 + 2 + 1) 9 bits.
Answer: 9
(256 + 128 + 32 + 16 + 2 + 1) 9 bits.
Answer: 9