GATE 2004
199 questions
MCQ 1991-mark 199
Questions 26–30 of 199
In a class of 200 students, 125 students have taken Programming Language course, 85 students have taken Data Structures course, 65 students have taken Computer Organization course; 50 students have taken both Programming Language and Data Structures, 35 students have taken both Programming Language and Computer Organization; 30 students have taken both Data Structures and Computer Organization, 15 students have taken all the three courses. How many students have not taken any of the three courses?
Answer: (C)
Let A, B and C be the sets of students who took Programming Language, Data Structures and Computer Organization. By inclusion-exclusion, the number who took at least one course is
Students who took none of the three courses: .
Answer: (C)
Students who took none of the three courses: .
Answer: (C)
Let be harmonic numbers. Then, for can be expressed as
Answer: (B)
The harmonic number is the sum of the reciprocals of the numbers from to .
Let .
Then,
Answer: (B)
Let and be two exponentially distributed and independent random variables with mean , respectively. If , then the mean of is given by
Answer: (C)
An exponential variable with mean has rate and for .
So and .
The minimum is greater than exactly when both and . and are independent, so the probabilities multiply:
.
This is again an exponential, with rate . Its mean is the reciprocal:
.
Check: for this gives , smaller than both means, as a minimum should be. So and are wrong.
Answer: (C)
So and .
The minimum is greater than exactly when both and . and are independent, so the probabilities multiply:
.
This is again an exponential, with rate . Its mean is the reciprocal:
.
Check: for this gives , smaller than both means, as a minimum should be. So and are wrong.
Answer: (C)
In a population of N families, 50% of the families have three children, 30% of the families have two children and the remaining families have one child. What is the probability that a randomly picked child belongs to a family with two children?
Answer: (B)
The correct option is (B)
Take as the total count of families.
Children in the families that have children:
Children in the families that have children:
Children in the families that have child:
Probability
Two n bit binary strings, S1 and S2, are chosen randomly with uniform probability. The probability that the Hamming distance between these strings (the number of bit positions where the two strings differ) is equal to d is
Answer: (A)
Take any bit position. Whatever the bit of S1 is, the bit of S2 is the same with probability and different with probability . Positions are independent.
For one particular set of positions to differ and the other to match, the probability is .
There are ways to choose which positions differ, and these cases are mutually exclusive. So
Answer: (A)
For one particular set of positions to differ and the other to match, the probability is .
There are ways to choose which positions differ, and these cases are mutually exclusive. So
Answer: (A)