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

GATE 2022

65 questions

MCQ 32 · MSQ 15 · NAT 181-mark 30 · 2-mark 35

Questions 56–60 of 65

Q56SQL2 marksNAT
Consider the relational database with the following four schemas and their respective instances.

Student(sNo, sName, dNo)  Dept(dNo, dName)

Course(cNo, cName, dNo)  Register(sNo, cNo)
Student
sNosNamedNo
S01JamesD01
S02RockyD01
S03JacksonD02
S04JaneD01
S05MilliD02
Dept
dNodName
D01CSE
D02EEE
Course
cNocNamedNo
C11DSD01
C12OSD01
C21DED02
C22PTD02
C23CVD03
Register
sNocNo
S01C11
S01C12
S02C11
S03C21
S03C22
S03C 23
S04C11
S04C12
S05C11
S05C21

SQL Query:

SELECT * FROM Student AS S WHERE NOT EXIST
 (SELECT cNo FROM Course WHERE dNo = “D01”
     EXCEPT
  SELECT cNo FROM Register WHERE sNo = S.sNo)

The number of rows returned by the above SQL query is ___

Q57Network Layer Protocol2 marksNAT
Consider a network with three routers P, Q, R shown in the figure below. All the links have cost of unity.
PQR
The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q-R fails. Assume that P and Q send out routing updates at random times, each at the same average rate. The probability of a routing loop formation (rounded off to one decimal place) between P and Q, leading to count-to-infinity problem, is ____

Q58Minimum Spanning Tree2 marksNAT
Let G(V,E)G(V, E) be a directed graph, where V={1,2,3,4,5}V = \{1, 2, 3, 4, 5 \} is the set of vertices and EE is the set of directed edges, as defined by the following adjacency matrix AA.
A[i][j]={11≤j≤i≤50otherwiseA[i][j]= \left \{ \begin{matrix} 1 &1 \leq j \leq i \leq 5 \\ 0& otherwise \end{matrix} \right.
A[i][j]=1A[i][j]=1indicates a directed edge from node ii to node jj. A directed spanning tree of GG, rooted at r∈Vr \in V , is defined as a subgraph TT of GG such that the undirected version of TT is a tree, and TT contains a directed path from rr to every other vertex in VV. The number of such directed spanning trees rooted at vertex 5 is ____

Q59Physical Layer2 marksNAT
Consider a 100 Mbps link between an earth station (sender) and a satellite (receiver) at an altitude of 2100 km. The signal propagates at a speed of 3×1083 \times 10^8 m/s. The time taken (in milliseconds, rounded off to two decimal places) for the receiver to completely receive a packet of 1000 bytes transmitted by the sender is

Q60Transport Layer Protocol2 marksNAT
Consider the data transfer using TCP over a 1 Gbps link. Assuming that the maximum segment lifetime (MSL) is set to 60 seconds, the minimum number of bits required for the sequence number field of the TCP header, to prevent the sequence number space from wrapping around during the MSL is