GATE 2017 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2017 (Session 2)

65 questions

MCQ 45 · NAT 201-mark 30 · 2-mark 35

Questions 56–60 of 65

Q56SQL2 marksNAT
Consider the following database table named top_scorer.
top_scorer Player Country Goals Klose Germany 16 Ronaldo Brazil 15 G Müller Germany 14 Fontaine France 13 Pelé Brazil 12 Klinsmann Germany 11 Kocsis Hungary 11 Batistuta Argentina 10 Cubillas Peru 10 Lato Poland 10 Lineker England 10 T Müller Germany 10 Rahn Germany 10
Consider the following SQL query:
SELECT ta.player FROM top_scorer AS ta
WHERE ta.goals >ALL (SELECT tb.goals
                     FROM top_scorer AS tb
                     WHERE tb.country = 'Spain')
AND ta.goals >ANY (SELECT tc.goals
                     FROM top_scorer AS tc
                     WHERE tc.country = 'Germany')

The number of tuples returned by the above SQL query is ___________.

Q57Recurrence2 marksNAT
If the ordinary generating function of a sequence {an}n=0∞  is  1+z(1−z)3\{a_{n}\}_{n=0}^{\infty} \; is \; \frac{1+z}{(1-z)^{3}} then a3−a0a_{3}-a_{0} is equal to ______.

Q58Random Variables and Distributions2 marksNAT
If a random variable X has a Poisson distribution with mean 5, then the expectation E[(X+2)2]E[(X+2)^{2}] equals ______________.

Q59File System2 marksNAT
In a B+B^{+} tree, if the search -key value is 8 bytes long, the block size is 512 bytes and the block pointer size is 2 bytes, then maximum order of the B+B^{+} tree is _______________.

Q60Greedy Technique2 marksNAT
A message is made up entirely of characters from the set X= {P,Q,R,S,T}. The table of probabilities for each of the characters is shown below:
Character Probability P0.22 Q0.34 R0.17 S0.19 T0.08 Total1.00
If a message of 100 characters over X is encoded using Huffman coding, then the expected length of the encoded message in bits is_____