GATE 2017 (Session 2)
65 questions
MCQ 45 · NAT 201-mark 30 · 2-mark 35
Questions 41–45 of 65
For any discrete random variable X, with probability mass function
and , define the polynomial function . For a certain discrete random variable Y, there exists a scalar [0,1] such that . The expectation of Y is
and , define the polynomial function . For a certain discrete random variable Y, there exists a scalar [0,1] such that . The expectation of Y is
Answer: (B)
Use the property of a pgf, :
Differentiate and put z = 1:
(So Y is Binomial with parameters N and .)
Answer:
Differentiate and put z = 1:
(So Y is Binomial with parameters N and .)
Answer:
Consider the following expression grammar G:
EE-T|T
TT+F|F
F(E)|id
Which of the following grammars is not left recursive, but is equivalent to G?
EE-T|T
TT+F|F
F(E)|id
Which of the following grammars is not left recursive, but is equivalent to G?
Answer: (C)
Use the standard rule to remove left recursion:
- Rule is rewritten as
- Rule is rewritten as
Option 1 still has left recursion. Option 2 still keeps the left-recursive rule . Option 4 changes the language.
Answer: Option 3
- Rule is rewritten as
- Rule is rewritten as
Option 1 still has left recursion. Option 2 still keeps the left-recursive rule . Option 4 changes the language.
Answer: Option 3
A system shares 9 tape drives. The current allocation and maximum requirement of tape drives for three processes are shown below:
Which of the following best describes current state of the system ?
Which of the following best describes current state of the system ?
Answer: (B)
Drives already allocated: 3 + 1 + 3 = 7. So 2 drives are free. Drives still needed: P1 needs 4, P2 needs 5, P3 needs 2.
P3 needs 2, so it can finish first the free drives become 5 now P1 can finish the free drives become 8 then P2 can finish. So a safe sequence exists, and no process is stuck at present.
Answer: Safe, Not Deadlocked
P3 needs 2, so it can finish first the free drives become 5 now P1 can finish the free drives become 8 then P2 can finish. So a safe sequence exists, and no process is stuck at present.
Answer: Safe, Not Deadlocked
Consider a binary code that consists of only four valid code words as given below:
00000,01011,10101,11110
Let the minimum Hamming distance of the code be p and the maximum number of erroneous bits that can be corrected by the code be q. Then the values of p and q are
00000,01011,10101,11110
Let the minimum Hamming distance of the code be p and the maximum number of erroneous bits that can be corrected by the code be q. Then the values of p and q are
Answer: (A)
Hamming distance between each pair of code words: 00000 and 01011 = 3, 00000 and 10101 = 3, 00000 and 11110 = 4, 01011 and 10101 = 4, 01011 and 11110 = 3, 10101 and 11110 = 3.
The smallest distance is p = 3. So the code can correct error.
Answer: p = 3 and q = 1
The smallest distance is p = 3. So the code can correct error.
Answer: p = 3 and q = 1
Consider two hosts X and Y, connected by a single direct link of rate bits/sec . The distance between the two hosts is 10,000 km and the propagation speed along the link is 2x m/sec . Host X sends a file of 50,000 bytes as one large message to host Y continuously. Let the transmission and propagation delays be p milliseconds and q milliseconds, respectively . Then the values of p and q are
Answer: (D)
Work out each delay:
- Transmission delay: s = 400 ms
- Propagation delay: s = 50 ms
Answer: p = 400 and q = 50
- Transmission delay: s = 400 ms
- Propagation delay: s = 50 ms
Answer: p = 400 and q = 50