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

GATE 2025 (Session 1)

65 questions

MCQ 30 · MSQ 13 · NAT 221-mark 30 · 2-mark 35

Questions 16–20 of 65

Q16OSI Layer1 markMCQ−0.33 if wrong
Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.
OSI LayersFunctionalities(a) Network layer(I) Packet routing(b) Transport layer(II) Framing and error handling(c) Datalink layer(III) Host to host communication\begin{array}{|l|l|} \hline \textbf{OSI Layers} & \textbf{Functionalities} \\ \hline \text{(a) Network layer} & \text{(I) Packet routing} \\ \hline \text{(b) Transport layer} & \text{(II) Framing and error handling} \\ \hline \text{(c) Datalink layer} & \text{(III) Host to host communication} \\ \hline \end{array}

Q17Functions1 markMCQ−0.33 if wrong
g(.)g(. ) is a function from AA to BB, f(.)f(. ) is a function from BB to CC, and their composition defined as f(g(.))f(g(. )) is a mapping from AA to CC.
If f(.)f(. ) and f(g(.))f(g(. )) are onto (surjective) functions, which ONE of the following is TRUE about the function g(.)g(. )?

Q18Minimum Spanning Tree1 markMCQ−0.33 if wrong
Let GG be any undirected graph with positive edge weights, and TT be a minimum spanning tree of GG. For any two vertices, uu and vv, let d1(u,v)d_1(u, v) and d2(u,v)d_2(u, v) be the shortest distances between uu and vv in GG and TT, respectively. Which ONE of the options is CORRECT for all possible GG, TT, uu, and vv?

Q19Context Free Language1 markMCQ−0.33 if wrong
Consider the following context-free grammar GG, where SS, AA, and BB are the variables (non-terminals), aa and bb are the terminal symbols, SS is the start variable, and the rules of GG are described as:

S→aaB∣AbbS \to aaB \mid Abb
A→a∣aAA \to a \mid aA
B→b∣bBB \to b \mid bB

Which ONE of the languages L(G)L(G) is accepted by GG?

Q20Recurrence Relation1 markMCQ−0.33 if wrong
Consider the following recurrence relation:

T(n)=2T(n−1)+n2nforn>0,T(0)=1T(n) = 2T(n-1) + n2^n \quad \text{for} \quad n > 0, \quad T(0) = 1

Which ONE of the following options is CORRECT?