GATE-CS-2007 Read Discuss Courses GATE-CS-2007 Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1 Consider the following two statements about the function f(x)=|x| P. f(x) is continuous for all real values of x Q. f(x) is differentiable for all real values of x Which 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. GATE-CS-2007 Numerical Methods and Calculus Discuss itQuestion 1-Explanation: A function is continuous if for every value of 'x', we have a corresponding f(x). Here, for every x, we have f(x) which is actually the value of x itself, without the negative sign for x < 0. 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. Question 2Let S be a set of nelements. The number of ordered pairs in the largest and the smallest equivalence relations on S are: n and nn2 and nn2 and 0 n and 1GATE-CS-2007 Set Theory & Algebra Discuss itQuestion 2-Explanation: 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 3What is the maximum number of different Boolean functions involving n Boolean variables? n2 2n 22n 2n2GATE-CS-2007 Combinatorics Discuss itQuestion 3-Explanation: 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 6 vertices 10 edges and 5 vertices 9 edges and 6 vertices 9 edges and 5 vertices GATE-CS-2007 Top MCQs on Graph Theory in Mathematics Discuss itQuestion 4-Explanation: 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 Consider the DAG with Consider V = {1, 2, 3, 4, 5, 6}, shown below. Which of the following is NOT a topological ordering? 1 2 3 4 5 6 1 3 2 4 5 6 1 3 2 4 6 5 3 2 4 1 6 5 GATE-CS-2007 Top MCQs on Graph Traversals with Answers Discuss itQuestion 5-Explanation: In option D, 1 appears after 2 and 3 which is not possible in Topological Sorting. In the given DAG it is directly visible that there is an outgoing edge from vertex 1 to vertex 2 and 3 hence 2 and 3 cannot come before vertex 1 so clearly option D is an incorrect topological sort. But for questions in which it is not directly visible, we should know how to find a topological sort of a DAG. Hence Option(D) is the correct answer. Question 6Which of the following problems is undecidable? [2007] Membership problem for CFGsAmbiguity problem for CFGs.Finiteness problem for FSAs. Equivalence problem for FSAs. GATE-CS-2007 Undecidability Discuss itQuestion 6-Explanation: 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 7Which of the following is TRUE? 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.GATE-CS-2007 Regular languages and finite automata Discuss itQuestion 7-Explanation: Some points for Regular Sets: A set is always regular if it is finite. A set is always regular if a DFA/NFA can be drawn for it. Option A: Every subset of a regular set is regular is False. For input alphabets a and b, a*b* is regular. A DFA can be drawn for a*b* but a n b n for n≥0 which is a subset of a*b* is not regular as we cannot define a DFA 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 8How many 3-to-8 line decoders with an enable input are needed to construct a 6-to-64 line decoder without using any other logic gates?78910GATE-CS-2007 Digital Logic & Number representation Combinational Circuits Discuss itQuestion 8-Explanation: So total signals in=a, b, c, x, y, z i.e. 6 And total output =8*8=64 hence required decoders (from fig.) = 9 so ans is ( C) part.Question 9Consider the following Boolean function of four variables: f(w,x,y,z) = ∑(1,3,4,6,9,11,12,14) The function is:independent of one variables. independent of two variables. independent of three variables. dependent on all the variables.GATE-CS-2007 Digital Logic & Number representation Logic functions and Minimization Discuss itQuestion 9-Explanation: On solving K-MAP we get ZX’+XZ’ so it is independent of w,y Ans (B) part.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 GATE-CS-2007 Computer Organization and Architecture Cache and main memory Discuss itQuestion 10-Explanation: 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 123456789 There are 85 questions to complete. You have completed questions question Your accuracy is Correct Wrong Partial-Credit You have not finished your quiz. If you leave this page, your progress will be lost. Correct Answer You Selected Not Attempted Final Score on Quiz Attempted Questions Correct Attempted Questions Wrong Questions Not Attempted Total Questions on Quiz Question Details Results Date Score Hint Time allowed minutes seconds Time used Answer Choice(s) Selected Question Text All doneNeed more practice!Keep trying!Not bad!Good work!Perfect! Last Updated : 02 Dec, 2021