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 26–30 of 65

Q26Context Free Grammar1 markMCQ−0.33 if wrong
Identify the language generated by the following grammar, where S is start variable.
S→\rightarrow XY
X→\rightarrow aX|a
Y →\rightarrowaYb|∈\in

Q27ER Model1 markMCQ−0.33 if wrong
An ER model of a database consists of entity types A and B. These are connected by a relationship R which does not have its own attribute. Under which one of the following conditions, can the relational table for R be merged with that of A?

Q28Transport Layer Protocol1 markMCQ−0.33 if wrong
Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which connect function has already been called. Which of the following statements is/are CORRECT ?
I. A connected UDP socket can be used to communicate with multiple peers simultaneously.
II. A process can successfully call connect function again for an already connected UDP socket.

Q29Integrity Constraints1 markNAT
Consider the following tables T1 and T2.
T1T2 PQRS 2222 3883 7332 5897 6957 8572 98
In table T1, P is the primary key and Q is the foreign key referencing R in table T2 with ondelete cascade and on-update cascade. In table T2, R is the primary key and S is the foreign key referencing P in table T1 on-delete set NULL and on-update cascade. In order to delete record (3,8) from table T1, the number of additional records that need to be deleted from table T1 is _____.

Q30Network Layer Protocol1 markNAT
The maximum number of IPv4 router addresses that can be listed in the record route (RR) option field of an IPv4 header is _________.