Computer Science and Information Technology
GATE CSE year:2025 PYQs
Build your understanding with focused practice from past exam papers.
Questions 31–40 of 130. Imported answers require independent review unless marked reviewed.
Question 16
Open questionCSMCQ1 markNeeds review
Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.
OSI Layers | Functionalities |
|---|---|
(a) Network layer | (I) Packet routing |
(b) Transport layer | (II) Frame and error handling |
(c) Datalink layer | (III) Host to host communication |
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 16
Open questionCSMCQ1 markNeeds review
Consider the following statements:
(i) Address Resolution Protocol (AR) 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?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 17
Open questionCSMCQ1 markNeeds review
is a function from
to
,
is a function from
to
, and their composition defined as
is a mapping from
to
.If
and
are onto (surjective) functions, which ONE of the following is TRUE about the function
?Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 17
Open questionCSMCQ1 markNeeds review
Consider the routing protocols given in List I and the names given in List II:
List I | List II
(i) Distance vector routing | (a) Bellman-Ford
(ii) Link state routing | (b) Dijkstra
For matching of items in List I with those in List II, which ONE of the following options is CORRECT?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 18
Open questionCSMCQ1 markNeeds review
Let
be any undirected graph with positive edge weights, and
be a minimum spanning tree of
. For any two vertices,
and
, let
and
be the shortest distances between
and
in
and
, respectively. Which ONE of the options is CORRECT for all possible
,
,
and
?Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 18
Open questionCSMCQ1 markNeeds review
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?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 19
Open questionCSMCQ1 markNeeds review
Consider the following context-free grammar
, where
,
, and
are the variables (non-terminals),
and
are the terminal symbols,
is the start variable, and the rules of
are described as:
Which ONE of the languages
is accepted by
?Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 19
Open questionCSMCQ1 markNeeds review
Consider the following C program:
#include <stdio.h>
void strcpy(char *, char *);
int main(){
char a[30] = "@#Hello World!";
strcpy(a, a + 2);
printf("%s\n", a);
return 0;
}
void strcpy(char *s, char *t) {
while(*t)
*s++ = *t++;
}
Which ONE of the following will be the output of the program?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 20
Open questionCSMCQ1 markNeeds review
Consider the following recurrence relation:
for
Which ONE of the following options is CORRECT?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 20
Open questionCSMCQ1 markNeeds review
Consider an unordered list of
distinct integers.What is the minimum number of element comparisons required to find an integer in the list that is NOT the largest in the list?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer