GATE 2025 (Session 1)
65 questions
MCQ 30 · MSQ 13 · NAT 221-mark 30 · 2-mark 35
Questions 41–45 of 65
Let be a 2x2 matrix as given:
What are the eigenvalues of the matrix ?
What are the eigenvalues of the matrix ?
Answer: (D)
Use the characteristic equation to get the eigenvalues of :
Say is an eigenvalue of . Then is an eigenvalue of (the eigenvalues of a matrix power are the original eigenvalues raised to the same power):
, and in the same way .
Answer: 64√2, -64√2
Say is an eigenvalue of . Then is an eigenvalue of (the eigenvalues of a matrix power are the original eigenvalues raised to the same power):
, and in the same way .
Answer: 64√2, -64√2
Consider the following four-variable Boolean function in sum-of-product form
.
Where the value of the function is computed by considering as a 4-bit binary number, where denotes the most significant bit and denotes the least significant bit. Note that there are no don't care terms. Which ONE of the following options is the CORRECT minimized Boolean expression for ?
.
Where the value of the function is computed by considering as a 4-bit binary number, where denotes the most significant bit and denotes the least significant bit. Note that there are no don't care terms. Which ONE of the following options is the CORRECT minimized Boolean expression for ?
Answer: (A)
Minterms as : 0=0000, 2=0010, 4=0100, 8=1000, 10=1010, 11=1011, 12=1100.
Groups on the K-map:
- (b1=0, b0=0) covers 0, 4, 8, 12.
- (b2=0, b0=0) covers 0, 2, 8, 10.
- (b3=1, b2=0, b1=1) covers 10, 11.
Together they cover exactly 0, 2, 4, 8, 10, 11, 12 and nothing else. Each group is needed: 4 and 12 are only in the first, 2 only in the second, and 11 only in the third.
Why the others fail: (B) has no term for 11, so it misses 11. (C) has , which is 14 and 15 (not in F), and it misses 4, 11 and 12. (D) contains , which is 0 to 7, so it includes 1, 3, 5, 6, 7 (not in F).
Answer: (A)
Groups on the K-map:
- (b1=0, b0=0) covers 0, 4, 8, 12.
- (b2=0, b0=0) covers 0, 2, 8, 10.
- (b3=1, b2=0, b1=1) covers 10, 11.
Together they cover exactly 0, 2, 4, 8, 10, 11, 12 and nothing else. Each group is needed: 4 and 12 are only in the first, 2 only in the second, and 11 only in the third.
Why the others fail: (B) has no term for 11, so it misses 11. (C) has , which is 14 and 15 (not in F), and it misses 4, 11 and 12. (D) contains , which is 0 to 7, so it includes 1, 3, 5, 6, 7 (not in F).
Answer: (A)
Let be an undirected and unweighted graph with 100 vertices. Let denote the number of edges in a shortest path between vertices and in . Let the maximum value of , such that , be 30. Let be any breadth-first-search tree of . Which ONE of the given options is CORRECT for every such graph ?
Answer: (C)
Let be the root of the BFS tree . BFS puts each vertex at a level equal to its distance from , so the height is .
Lower bound. Some pair has . For any root , , so .
Why the other options fail. The height can also be larger. Take a path of 31 vertices (length 30) and attach the other 69 vertices to its middle vertex. The diameter is still 30. BFS from the middle vertex has height 15, so (B) and (D) are not true for every such graph. BFS from an end of the path has height 30, so (A) is not true for every such graph.
Answer: (C)
Lower bound. Some pair has . For any root , , so .
Why the other options fail. The height can also be larger. Take a path of 31 vertices (length 30) and attach the other 69 vertices to its middle vertex. The diameter is still 30. BFS from the middle vertex has height 15, so (B) and (D) are not true for every such graph. BFS from an end of the path has height 30, so (A) is not true for every such graph.
Answer: (C)
Consider the following two languages over the alphabet :
Which ONE of the following statements is CORRECT?
Which ONE of the following statements is CORRECT?
Answer: (C)
is not regular. Use prefixes for . Take and the suffix .
- is in : take and , which is non-empty because .
- is not in . must be a prefix, so it starts with , and a suffix, so it ends with . The only suffix that starts with and is shorter than the whole string is . Then is the whole string and nothing is left for .
So the prefixes are pairwise distinguishable, and a finite automaton would need infinitely many states.
is regular. Here has only 's, so taking works whenever any longer works. So is the set of strings of length at least 3 that start and end with . Its regular expression is .
Answer: (C)
- is in : take and , which is non-empty because .
- is not in . must be a prefix, so it starts with , and a suffix, so it ends with . The only suffix that starts with and is shorter than the whole string is . Then is the whole string and nothing is left for .
So the prefixes are pairwise distinguishable, and a finite automaton would need infinitely many states.
is regular. Here has only 's, so taking works whenever any longer works. So is the set of strings of length at least 3 that start and end with . Its regular expression is .
Answer: (C)
Consider the following two languages over the alphabet , where and are natural numbers:
Which ONE of the following statements is CORRECT?
Which ONE of the following statements is CORRECT?
Answer: (C)
needs the number of a's to equal the number of b's, and the number of c's to be more than that number (). Use the pumping lemma on with , , . Since , it cannot touch both a's and c's.
- No c in : pump up (). Either the a's and b's become unequal, or both grow to while there are still only c's, so c's are no longer more than .
- No a in : pump down (). If has a b, the b's drop below the a's. Otherwise only c's are removed, leaving at most c's, which is not more than .
Every split fails, so is not context-free.
: the c's only need to match the total of a's and b's. One stack does this: push a symbol for each a and each b, then pop one for each c, and accept if the stack is empty exactly at the end of input. As a grammar: . is context-free.
Answer: (C)
- No c in : pump up (). Either the a's and b's become unequal, or both grow to while there are still only c's, so c's are no longer more than .
- No a in : pump down (). If has a b, the b's drop below the a's. Otherwise only c's are removed, leaving at most c's, which is not more than .
Every split fails, so is not context-free.
: the c's only need to match the total of a's and b's. One stack does this: push a symbol for each a and each b, then pop one for each c, and accept if the stack is empty exactly at the end of input. As a grammar: . is context-free.
Answer: (C)