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

GATE 2026 (Session 1)

65 questions

MCQ 28 · MSQ 24 · NAT 131-mark 30 · 2-mark 35

Questions 46–50 of 65

Q46Discrete Mathematics2 marksMSQ
Let f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} be defined as follows:

f(x)=(∣x∣2−x)(x−∣x∣2)f(x)=\left(\frac{|x|}{2}-x\right)\left(x-\frac{|x|}{2}\right)

Which of the following statements is/are true?

One or more options are correct.

Q47Graph Theory2 marksMSQ
Let G(V,E)G(V, E) be a simple, undirected graph. A vertex cover of GG is a subset V′⊆VV^{\prime} \subseteq V such that for every (u,v)∈E,u∈V′(u, v) \in E, u \in V^{\prime} or v∈V′v \in V^{\prime}. Let the size of the smallest vertex cover in GG be kk. Let SS be any vertex cover of size kk.

For a vertex v∈Vv \in V, which of the following constraints will always ensure that v∈Sv \in S ?

One or more options are correct.

Q48Boolean Algebra2 marksMSQ
Consider a Boolean function FF with the following minterm expression:

F(P,Q,R,S)=∑m(1,2,3,4,5,7,10,12,13,14)F(P, Q, R, S)=\sum m(1,2,3,4,5,7,10,12,13,14)

Which of the following options is/are the minimal sum-of-products expression(s) of FF ?

One or more options are correct.

Q49Minimum Spanning Tree2 marksMSQ
Let G(V,E)G(V, E) be a simple, undirected, edge-weighted graph with unique edge weights. Which of the following statements about the minimum spanning trees (MST) of GG is/are true?

One or more options are correct.

Q50Graph Traversal (BFS and DFS)2 marksMSQ
Consider the following pseudocode for depth-first search (DFS) algorithm which takes a directed graph G(V,E)G(V, E) as input, where d[v]d[v] and f[v]f[v] are the discovery time and finishing time, respectively, of the vertex v∈Vv \in V. DFS(G):unmark all v∈Vt←0for each v∈Vif v is unmarkedt←Explore(G,v,t)end ifend forExplore(G,v,t):mark vt←t+1d[v]←tfor each (v,w)∈Eif w is unmarkedt←Explore(G,w,t)end ifend fort←t+1f[v]←treturn t\begin{array}{|l|l|} \hline \begin{array}{l} \textbf{DFS}(G): \\ \text{unmark all } v \in V \\ t \leftarrow 0 \\ \text{for each } v \in V \\ \quad \text{if } v \text{ is unmarked} \\ \qquad t \leftarrow \text{Explore}(G,v,t) \\ \quad \text{end if} \\ \text{end for} \end{array} & \begin{array}{l} \textbf{Explore}(G,v,t): \\ \text{mark } v \\ t \leftarrow t+1 \\ d[v] \leftarrow t \\ \text{for each } (v,w) \in E \\ \quad \text{if } w \text{ is unmarked} \\ \qquad t \leftarrow \text{Explore}(G,w,t) \\ \quad \text{end if} \\ \text{end for} \\ t \leftarrow t+1 \\ f[v] \leftarrow t \\ \text{return } t \end{array} \\ \hline \end{array}

Suppose that the input directed graph G(V,E)G(V, E) is a directed acyclic graph (DAG). For an edge (u,v)∈E(u, v) \in E, which of the following options will NEVER be correct?

One or more options are correct.