GATE 2020
64 questions
MCQ 41 · NAT 231-mark 29 · 2-mark 35
Questions 26–30 of 64
Let be the set of all binary relations on the set {1,2,3}. Suppose a relation is chosen from at random. The probability that the chosen relation is reflexive (round off to 3 decimal places) is ______.
Answer: 0.125
Any relation on a set with 3 elements is a subset of the possible pairs. So we get relations in total.
A reflexive relation must contain the 3 pairs (a, a). The other 6 pairs can be chosen freely .
Probability:
Answer: 0.125
A reflexive relation must contain the 3 pairs (a, a). The other 6 pairs can be chosen freely .
Probability:
Answer: 0.125
Let G be a group of 35 elements. Then the largest possible size of a subgroup of G other than G itself is _______.
Answer: 7
Lagrange's theorem says the order of a subgroup must divide the order of the group. The divisors of 35 are 1, 5, 7 and 35.
Leave out G itself, and the largest one left is 7. A group of order 35 is cyclic, and it has a subgroup for every divisor order.
Answer: 7
Leave out G itself, and the largest one left is 7. A group of order 35 is cyclic, and it has a subgroup for every divisor order.
Answer: 7
A multiplexer is placed between a group of 32 registers and an accumulator to regulate data movement such that at any given point in time the content of only one register will move to the accumulator. The number of select lines needed for the multiplexer is ______.
Answer: 5
The multiplexer must pick one input out of 32. So the number of select lines is .
Answer: 5
Answer: 5
If there are m input lines and n output lines for a decoder that is used to uniquely address a byte addressable 1 KB RAM, then the minimum value of m+n is ________ .
Answer: 1034
A 1 KB byte-addressable RAM has 1024 locations so the decoder needs input lines and 1024 output lines.
m + n = 10 + 1024 = 1034
Answer: 1034
m + n = 10 + 1024 = 1034
Answer: 1034
A direct mapped cache memory of 1 MB has a block size of 256 bytes. The cache has an access time of 3 ns and a hit rate of 94%. During a cache miss, it takes 20 ns to bring the first word of a block from the main memory, while each subsequent word takes 5 ns. The word size is 64 bits. The average memory access time in ns (round off to 1 decimal place) is______.
Answer: 13.5
One block is 256 bytes, which is 32 words of 8 bytes each.
Miss penalty: the first word takes 20 ns and the other 31 words take ns. The total is ns.
Average access time = hit time + miss rate miss penalty:
ns
(If the 3 ns is counted only on hits, the average is ns. The official GATE 2020 key also accepts 13.3.)
Answer: 13.5 ns
Miss penalty: the first word takes 20 ns and the other 31 words take ns. The total is ns.
Average access time = hit time + miss rate miss penalty:
ns
(If the 3 ns is counted only on hits, the average is ns. The official GATE 2020 key also accepts 13.3.)
Answer: 13.5 ns