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

GATE 2018

65 questions

MCQ 41 · NAT 241-mark 30 · 2-mark 35

Questions 21–25 of 65

Q21ER Model1 markMCQ−0.33 if wrong
In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate totally in R and that the cardinality of E1 is greater than the cardinality of E2.
Which one of the following is true about R?

Q22SQL1 markMCQ−0.33 if wrong
Consider the following two tables and four queries in SQL.
Book (isbn, bname), Stock (isbn, copies)
Query 1: SELECT B.isbn, S.copies
         FROM Book B INNER JOIN Stock S
         ON B.isbn = S.isbn;

Query 2: SELECT B.isbn, S.copies
         FROM Book B LEFT OUTER JOIN Stock S
         ON B.isbn = S.isbn;

Query 3: SELECT B.isbn, S.copies
         FROM Book B RIGHT OUTER JOIN Stock S
         ON B.isbn = S.isbn;

Query 4: SELECT B.isbn, S.copies
         FROM Book B FULL OUTER JOIN Stock S
         ON B.isbn = S.isbn;

Which one of the queries above is certain to have an output that is a superset of the outputs of the other three queries?

Q23Transport Layer Protocol1 markMCQ−0.33 if wrong
Match the following:
Field Length in bits P. UDP Header’s Port Number Q. Ethernet MAC Address R. IPv6 Next Header S. TCP Header’s Sequence Number I. 48 II. 8 III. 32 IV. 16

Q24Transport Layer Protocol1 markMCQ−0.33 if wrong
Consider the following statements regarding the slow start phase of the TCP congestion control algorithm. Note that cwndcwnd stands for the TCP congestion window and MSS denotes the Maximum Segment Size.

(i) The cwnd increases by 2 MSS on every successful acknowledgment.
(ii) The cwnd approximately doubles on every successful acknowledgement.
(iii) The cwnd increases by 1 MSS every round trip time.
(iv) The cwnd approximately doubles every round trip time.

Which one of the following is correct?

Q25Probability Theory1 markNAT
Two people, P and Q, decide to independently roll two identical dice, each with 6 faces, numbered 1 to 6. The person with the lower number wins. In case of a tie, they roll the dice repeatedly until there is no tie. Define a trial as a throw of the dice by P and Q. Assume that all 6 numbers on each dice are equi-probable and that all trials are independent. The probability (rounded to 3 decimal places) that one of them wins on the third trial is