GATE 2026 (Session 1)
65 questions
MCQ 28 · MSQ 24 · NAT 131-mark 30 · 2-mark 35
Questions 46–50 of 65
Let be defined as follows:
Which of the following statements is/are true?
Which of the following statements is/are true?
One or more options are correct.
Answer: (A), (C), (D)
First simplify . This value is always .
- When , we have . So .
- When , we have . So .
Both pieces are equal to at . They are negative, and they go down towards , as we move away from on either side. So has a clear local (in fact global) maximum at . Since on both sides and there is no dip inside, has no local minimum.
Now take the derivative. We get for and for . Both pieces go to as . So is continuous everywhere, including at . But the slope of changes from (just right of ) to (just left of ). So has a corner at . It is not differentiable there, so it is not differentiable "over ".
Answer: f has a local maximum; f' is continuous over R; f' is not differentiable over R.
- When , we have . So .
- When , we have . So .
Both pieces are equal to at . They are negative, and they go down towards , as we move away from on either side. So has a clear local (in fact global) maximum at . Since on both sides and there is no dip inside, has no local minimum.
Now take the derivative. We get for and for . Both pieces go to as . So is continuous everywhere, including at . But the slope of changes from (just right of ) to (just left of ). So has a corner at . It is not differentiable there, so it is not differentiable "over ".
Answer: f has a local maximum; f' is continuous over R; f' is not differentiable over R.
Let be a simple, undirected graph. A vertex cover of is a subset such that for every or . Let the size of the smallest vertex cover in be . Let be any vertex cover of size .
For a vertex , which of the following constraints will always ensure that ?
For a vertex , which of the following constraints will always ensure that ?
One or more options are correct.
Answer: (A)
Take a vertex of degree at least . Suppose, for contradiction, that for some minimum vertex cover of size . Every edge at must then be covered by its other endpoint, so all neighbours of are in . Then , a contradiction. So always. (A) is correct.
The other options each have a small counterexample:
(B) Path (2 edges): and is a minimum cover. Vertex is on the path but not in .
(C) Triangle : and the cycle has length . But is a minimum cover that leaves out , which is on the cycle.
(D) Same triangle: is a clique of size , yet . A clique of size forces only of its vertices into a cover.
Answer: (A)
The other options each have a small counterexample:
(B) Path (2 edges): and is a minimum cover. Vertex is on the path but not in .
(C) Triangle : and the cycle has length . But is a minimum cover that leaves out , which is on the cycle.
(D) Same triangle: is a clique of size , yet . A clique of size forces only of its vertices into a cover.
Answer: (A)
Consider a Boolean function with the following minterm expression:
Which of the following options is/are the minimal sum-of-products expression(s) of ?
Which of the following options is/are the minimal sum-of-products expression(s) of ?
One or more options are correct.
Answer: (B), (D)
Write each minterm as bits : 1=0001, 2=0010, 3=0011, 4=0100, 5=0101, 7=0111, 10=1010, 12=1100, 13=1101, 14=1110.
Prime implicants (K-map groups): covers 1, 3, 5, 7. covers 4, 5, 12, 13. covers 2, 3. covers 2, 10. covers 10, 14. covers 12, 14.
Minterm 1 and 7 are covered only by , and 13 only by , so both are essential. They cover 1, 3, 4, 5, 7, 12, 13. Left to cover: 2, 10, 14. No single group covers all three, so two more terms are needed, which makes 4 terms in all.
Pairs that cover 2, 10 and 14: with (option B); with (option D); with (also a 4-term cover, but it is not one of the options).
Option A leaves 14 uncovered. Option C leaves 2 uncovered. So neither equals F.
Answer: (B), (D)
Prime implicants (K-map groups): covers 1, 3, 5, 7. covers 4, 5, 12, 13. covers 2, 3. covers 2, 10. covers 10, 14. covers 12, 14.
Minterm 1 and 7 are covered only by , and 13 only by , so both are essential. They cover 1, 3, 4, 5, 7, 12, 13. Left to cover: 2, 10, 14. No single group covers all three, so two more terms are needed, which makes 4 terms in all.
Pairs that cover 2, 10 and 14: with (option B); with (option D); with (also a 4-term cover, but it is not one of the options).
Option A leaves 14 uncovered. Option C leaves 2 uncovered. So neither equals F.
Answer: (B), (D)
Let be a simple, undirected, edge-weighted graph with unique edge weights. Which of the following statements about the minimum spanning trees (MST) of is/are true?
One or more options are correct.
Answer: (A), (D)
Weights are distinct, so the MST is unique.
(A) True. Let be the heaviest edge of a cycle and suppose it is in the MST . Removing splits in two. The rest of the cycle joins the two ends of , so some other cycle edge crosses between the two parts. is lighter, so is a lighter spanning tree. This contradicts being minimum.
(B) False. Take a cycle with . Edge is the smallest on it. Add a vertex with . Now is the heaviest edge of the cycle , so by (A) it is in no MST.
(C) False. If has only one edge (a leaf), that edge is the largest at and it must be in every spanning tree.
(D) True. The cheapest edge at is the lightest edge crossing the cut versus the rest. By the cut property, with distinct weights it is in every MST.
Answer: (A), (D)
(A) True. Let be the heaviest edge of a cycle and suppose it is in the MST . Removing splits in two. The rest of the cycle joins the two ends of , so some other cycle edge crosses between the two parts. is lighter, so is a lighter spanning tree. This contradicts being minimum.
(B) False. Take a cycle with . Edge is the smallest on it. Add a vertex with . Now is the heaviest edge of the cycle , so by (A) it is in no MST.
(C) False. If has only one edge (a leaf), that edge is the largest at and it must be in every spanning tree.
(D) True. The cheapest edge at is the lightest edge crossing the cut versus the rest. By the cut property, with distinct weights it is in every MST.
Answer: (A), (D)
Consider the following pseudocode for depth-first search (DFS) algorithm which takes a directed graph as input, where and are the discovery time and finishing time, respectively, of the vertex .
Suppose that the input directed graph is a directed acyclic graph (DAG). For an edge , which of the following options will NEVER be correct?
Suppose that the input directed graph is a directed acyclic graph (DAG). For an edge , which of the following options will NEVER be correct?
One or more options are correct.
Answer: (B), (D)
DFS on a DAG gives discovery and finish time intervals . These follow the standard parenthesis theorem: for any two vertices, the intervals are either fully nested (one inside the other) or fully disjoint. They can never partly overlap.
For an edge in a DAG, DFS treats it as one of two kinds. It is a tree/forward edge if is discovered while exploring from , so the interval sits inside and we get . It is a cross edge if was already fully explored before started, so the intervals are disjoint and do not overlap, giving . Since the input is a DAG, there are no back edges, so the intervals can never partly overlap (interleave).
- : this is valid nesting, so it can happen (tree/forward edge).
- : these are valid disjoint intervals, so it can happen (cross edge).
- : this would mean started before , but the whole subtree of nests inside . Then the edge would go from a later, nested vertex back to an earlier, ancestor vertex that is still open. This is exactly a back edge, so it is impossible in a DAG.
- : this is a partly overlapping (interleaved) interval. The parenthesis theorem says it can never happen in any DFS on any graph, whatever the edge type.
Answer: and can NEVER happen.
For an edge in a DAG, DFS treats it as one of two kinds. It is a tree/forward edge if is discovered while exploring from , so the interval sits inside and we get . It is a cross edge if was already fully explored before started, so the intervals are disjoint and do not overlap, giving . Since the input is a DAG, there are no back edges, so the intervals can never partly overlap (interleave).
- : this is valid nesting, so it can happen (tree/forward edge).
- : these are valid disjoint intervals, so it can happen (cross edge).
- : this would mean started before , but the whole subtree of nests inside . Then the edge would go from a later, nested vertex back to an earlier, ancestor vertex that is still open. This is exactly a back edge, so it is impossible in a DAG.
- : this is a partly overlapping (interleaved) interval. The parenthesis theorem says it can never happen in any DFS on any graph, whatever the edge type.
Answer: and can NEVER happen.