GATE-CS-2007
Question 1 |
P. f(x) is continuous for all real values of x Q. f(x) is differentiable for all real values of xWhich of the following is TRUE?
P is true and Q is false. | |
P is false and Qis true. | |
Both P and Q are true | |
Both P and Q are false. |
Discuss it
But, the given function is not differentiable for x = 0 because for x < 0, the derivative is negative and for x > 0, the derivative is positive. So, the left hand derivative and right hand derivative do not match.
Hence, P is correct and Q is incorrect. Thus, A is the correct option.
Please comment below if you find anything wrong in the above post.
Question 2 |
n and n | |
n2 and n | |
n2 and 0 | |
n and 1 |
Discuss it
Consider an example set, S = (1,2,3) Equivalence property follows, reflexive, symmetric and transitive Largest ordered set are s x s = { (1,1) (1,2) (1,3) (2,1) (2,2) (2,3) (3,1) (3,2) (3,3) } which are 9 which equal to 3^2 = n^2 Smallest ordered set are { (1,1) (2,2) ( 3,3)} which are 3 and equals to n. number of elements.
Question 3 |
n2 | |
2n | |
22n | |
2n2 |
Discuss it
No of inputs sequences possible for a n variable Boolean function = 2n Each input sequence can give either T or F as output ( 2 possible values ) So, Total no of Boolean functions are - 2X2X2X2X2X2X.............X2X2X2X2X2X2 <-------------------- 2n Times --------------> 22n
Question 4 |
Let G be the non-planar graph with the minimum possible number of edges. Then G has
10 edges and 5 vertices | |
10 edges and 6 vertices | |
9 edges and 6 vertices | |
9 edges and 5 vertices |
Discuss it
According to Kuratowski's Theorem, a graph is planar if and only if it does not contain any subdivisions of the graphs K5 or K3,3.
That means K5 and K3,3 are minimum non-planar graphs. These graphs have 5 vertices with 10 edges in K5 and 6 vertices with 9 edges in K3,3 graph.
So, graph K5 has minimum vertices and maximum edges than K3,3.
Alternative method:
A plane graph having ‘n’ vertices, cannot have more than ‘2*n-4’ number of edges. Hence using the logic we can derive that for 6 vertices, 8 edges is required to make it a plane graph. So adding one edge to the graph will make it a non planar graph.
So, 6 vertices and 9 edges is the correct answer.
So, option (B) is correct.
Question 5 |

1 2 3 4 5 6 | |
1 3 2 4 5 6 | |
1 3 2 4 6 5 | |
3 2 4 1 6 5 |
Discuss it

Question 6 |
Membership problem for CFGs | |
Ambiguity problem for CFGs. | |
Finiteness problem for FSAs. | |
Equivalence problem for FSAs. |
Discuss it
A set is closed under an operation means when we operate an element of that set with that operator we get an element from that set.
Here, CFG generates a CFL and set of all CFLs is the set. But ambiguity is not an operation and hence we can never say that CFG is closed under such operation.
Only ambiguity problem for CFGs are undecidable.
Thus, option (B) is correct.
Please comment below if you find anything wrong in the above post.
Question 7 |
Every subset of a regular set is regular. | |
Every finite subset of a non-regular set is regular. | |
The union of two non-regular sets is not regular. | |
Infinite union of finite sets is regular. |
Discuss it
- A set is always regular if it is finite.
- A set is always regular if a DFA/NFA can be drawn for it.
Option B: Every finite subset of a non-regular set is regular is True. Each and every set which is finite can have a well-defined DFA for it so whether it is a subset of a regular set or non-regular set it is always regular.
Option C: The union of two non-regular sets is not regular is False. For input alphabets a and b, an bn for all n≥0 is non-regular as well as an bm for n≠m is also non- regular but their union is a*b* which is regular.
Option D: TInfinite union of finite sets is regular is False. For input alphabets a and b sets {ab}, {aabb}, {aaabbb}…….. are regular but their union {ab} U {aabb} U {aaabbb} U …………………….. gives {a n b n for n>0} which is not regular.
This solution is contributed by Yashika Arora.
Question 8 |
7 | |
8 | |
9 | |
10 |
Discuss it
Question 9 |
independent of one variables. | |
independent of two variables. | |
independent of three variables. | |
dependent on all the variables. |
Discuss it
Question 10 |
Consider a 4-way set associative cache consisting of 128 lines with a line size of 64 words. The CPU generates a 20-bit address of a word in main memory. The number of bits in the TAG, LINE and WORD fields arerespectively:
9,6,5 | |
7, 7, 6 | |
7, 5, 8 | |
9, 5, 6 |
Discuss it
Here the number of sets = 128/4 = 32 (as it is 4 way set associative) We have total 64 words then we need 6 bits to identify the word So the line offset is 5 bits and the word offset is 6 bits and the TAG = 20-(5+6) =9 bits so it should be 9,5,6