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

GATE 2025 (Session 2)

65 questions

MCQ 32 · MSQ 18 · NAT 151-mark 30 · 2-mark 35

Questions 16–20 of 65

Q16Transport Layer Protocol1 markMCQ−0.33 if wrong
Consider the following statements:

(i) Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address.
(ii) A single TCP segment from a sender S to a receiver R cannot carry both data from S to R and acknowledgement for a segment from R to S.

Which ONE of the following is CORRECT?

Q17Network Layer Protocol1 markMCQ−0.33 if wrong
Consider the routing protocols given in List I and the names given in List II:

List IList II(i)Distance vector routing(a)Bellman-Ford(ii)Link state routing(b)Dijkstra\begin{array}{|c l|c l|} \hline \textbf{List I} & & \textbf{List II} & \\ \hline \text{(i)} & \text{Distance vector routing} & \text{(a)} & \text{Bellman-Ford} \\ \hline \text{(ii)} & \text{Link state routing} & \text{(b)} & \text{Dijkstra} \\ \hline \end{array}

For matching of items in List I with those in List II, which ONE of the following options is CORRECT?

Q18Network Layer Protocol1 markMCQ−0.33 if wrong
A machine receives an IPv4 datagram. The protocol field of the IPv4 header has the protocol number of a protocol X.
Which ONE of the following is NOT a possible candidate for X?

Q19Array and Pointer1 markMCQ−0.33 if wrong
Consider the following C program:

#include <stdio.h>

void stringcopy(char *, char *);

int main(){
    char a[30] = "@#Hello World!";
    stringcopy(a, a + 2);
    printf("%s\n", a);
    return 0;
}

void stringcopy(char *s, char *t) {
    while(*t)
        *s++ = *t++;
}
Which ONE of the following will be the output of the program?