GATE 2003 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2003

107 questions

MCQ 1071-mark 107

Questions 16–20 of 107

Q16Combination1 markMCQ−0.33 if wrong
Let Σ\Sigma = {a, b, c, d, e} be an alphabet. We define an encoding scheme as follows : g(a) = 3, g(b) = 5, g(c) = 7, g(d) = 9, g(e) = 11.
Let pip_{i} denote the i-th prime number (p1=2p_{1}=2).
For a non-empty string s=a1...ans=a_{1}...a_{n}, where each ai∈Σa_{i} \in \Sigma, define f(s)=∏i=1npig(ai)f(s)=\prod_{i=1}^{n}{p_{i}}^{g(a_{i})}.
For a non-empty sequence <s1,...,sn>\lt s_{1},...,s_{n} \gt of strings from Σ+\Sigma^{+},
define h(<s1,...,sn>)=∏i=1npif(si)h(\lt s_{1},...,s_{n} \gt)=\prod_{i=1}^{n}{p_{i}}^{f(s_{i})}
Which of the following numbers is the encoding, h, of a non-empty sequence of strings?

Q17Combination1 markMCQ−0.33 if wrong
m identical balls are to be placed in n distinct bags. You are given that m ≥\geqkn, where k is a natural number ≥\geq1. In how many ways can the balls be placed in the bags if each bag must contain at least k balls?
(A) m − k n − 1 (B) m − kn + n − 1 n − 1 (C) m − 1 n − k (D) m − kn + n + k − 2 n − k

Q18Combination1 markMCQ−0.33 if wrong
n couples are invited to a party with the condition that every husband should be accompanied by his wife. However, a wife need not be accompanied by her husband. The number of different gatherings possible at the party is

Q19Combination1 markMCQ−0.33 if wrong
Let A be a sequence of 8 distinct integers sorted in ascending order. How many distinct pairs of sequences, B and C are there such that
(i) each is sorted in ascending order,
(ii) B has 5 and C has 3 elements, and
(iii) the result of merging B and C gives A?

Q20Probability Theory1 markMCQ−0.33 if wrong
A program consists of two modules executed sequentially. Let f1(t) and f2(t) respectively denote the probability density functions of time taken to execute the two modules. The probability density function of the overall time taken to execute the program is given by