GATE 2014 (Session 3) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2014 (Session 3)

65 questions

MCQ 47 · NAT 181-mark 30 · 2-mark 35

Questions 36–40 of 65

Q36Network Layer Protocol2 marksNAT
An IP router implementing Classless Inter-domain routing (CIDR) receives a packet with address 131.23.151.76. The router's routing table has the following entries:
Prefix Output Interface Identifier 131.16.0.0/ 12 3 131.28.0.0/ 14 5 131.19.0.0/ 16 2 131.22.0.0/ 15 1
The identifier of the output interface on which this packet will be forwarded is _____.

Q37Network Layer Protocol2 marksNAT
Every host in an IPv4 network has a 1-second resolution real-time clock with battery backup. Each host needs to generate up to 1000 unique identifiers per second. Assume that each host has a globally unique IPv4 address. Design a 50-bit globally unique ID for this purpose. After what period (in seconds) will the identifiers generated by a host wrap around?

Q38Network Layer Protocol2 marksMCQ−0.67 if wrong
An IP router with a Maximum Transmission Unit (MTU) of 1500 bytes has received an IP packet of size 4404 bytes with an IP header of length 20 bytes. The values of the relevant fields in the header of the third IP fragment generated by the router for this packet are

Q39Transaction2 marksMCQ−0.67 if wrong
Consider the transactions T1, T2, and T3 and the schedules S1 and S2 given below.
T1 : r1(X); r1(Z); w1(X); w1(Z)
T2 : r2(Y); r2(Z); w2(Z)
T3 : r3(Y); r3(X); w3(Y)

S1: r1(X); r3(Y); r3(X); r2(Y); r2(Z); w3(Y); w2(Z); r1(Z); w1(X); w1(Z)
S2: r1(X); r3(Y); r2(Y); r3(X); r1(Z); r2(Z); w3(Y); w1(X); w2(Z); w1(Z)
Which one of the following statements about the schedules is TRUE?

Q40Relational Algebra2 marksMCQ−0.67 if wrong
Consider the relational schema given below, where eId of the relation dependentis a foreign key referring to empId of the relation employee. Assume that every employee has at least one associated dependent in the dependent relation.
employee (empId, empName, empAge)
dependent(depId, eId, depName, depAge)
Consider the following relational algebra query:
ΠempId(employee)−ΠempId(employee⋈(empId = eID)∧(empAge≤depAge)dependent)\Pi_{\text{empId}}(\text{employee}) - \Pi_{\text{empId}}\left(\text{employee} \bowtie_{(\text{empId = eID}) \wedge (\text{empAge} \le \text{depAge})} \text{dependent}\right)
The above query evaluates to the set of empIds of employees whose age is greater than that of