GATE-CS-2009Last Updated : 22 Nov, 2021ReadDiscussCourses GATE-CS-2009Please 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 againQuestion 1Which one of the following in NOT necessarily a property of a Group?CommutativityAssociativityExistence of inverse for every elementExistence of identityGATE-CS-2009 Set Theory & Algebra Discuss itQuestion 1-Explanation: A group is a set, G, together with an operation • (called the group law of G) that combines any two elements a and b to form another element, denoted a • b or ab. To qualify as a group, the set and operation, (G, •), must satisfy four requirements known as the group axioms: Closure For all a, b in G, the result of the operation, a • b, is also in G.b Associativity For all a, b and c in G, (a • b) • c = a • (b • c). Identity element There exists an element e in G, such that for every element a in G, the equation e • a = a • e = a holds. Such an element is unique (see below), and thus one speaks of the identity element. Inverse element For each a in G, there exists an element b in G such that a • b = b • a = e, where e is the identity element. The result of an operation may depend on the order of the operands. In other words, the result of combining element a with element b need not yield the same result as combining element b with element a; the equation a • b = b • a may not always be true. This equation always holds in the group of integers under addition, because a + b = b + a for any two integers (commutativity of addition). Groups for which the commutativity equation a • b = b • a always holds are called abelian groups (in honor of Niels Abel) Source: http://en.wikipedia.org/wiki/Group_(mathematics)Question 2What is the chromatic number of an n-vertex simple connected graph which does not contain any odd length cycle? Assume n >= 2. n-1 3 2 n GATE-CS-2009 Top MCQs on Graph Theory in Mathematics Discuss itQuestion 2-Explanation: The chromatic number of a graph is the smallest number of colours needed to colour the vertices of so that no two adjacent vertices share the same colour. These types of questions can be solved by substitution with different values of n. 1) n = 2 This simple graph can be coloured with 2 colours. 2) n = 3 Here, in this graph let us suppose vertex A is coloured with C1 and vertices B, C can be coloured with colour C2 => chromatic number is 2 In the same way, you can check with other values, Chromatic number is equals to 2 A simple graph with no odd cycles is bipartite graph and a Bipartite graph can be colored using 2 colors Question 3Which one of the following is TRUE for any simple connected undirected graph with more than 2 vertices?No two vertices have the same degree.At least two vertices have the same degree.At least three vertices have the same degree.All vertices have the same degree.GATE-CS-2009 Top MCQs on Graph Theory in Mathematics Discuss itQuestion 3-Explanation: Since the graph is simple, there must not be any self loop and parallel edges. Since the graph is connected, the degree of any vertex cannot be 0. Therefore, degree of all vertices should be from 1 to n-1. So the degree of at least two vertices must be same.Question 4Consider the binary relation R = {(x, y), (x, z), (z, x), (z, y)} on the set {x, y, z}. Which one of the following is TRUE?R is symmetric but NOT antisymmetricR is NOT symmetric but antisymmetricR is both symmetric and antisymmetricR is neither symmetric nor antisymmetricGATE-CS-2009 Set Theory & Algebra Discuss itQuestion 4-Explanation: R is not symmetric as (x, y) is present, but (y, x) is not present in R. R is also not antisymmetric as both (x, z) and (z, x) are present in R.Question 5(1217)8 is equivalent to(1217)16(028F)16(2297)10(0B17)16GATE-CS-2009 Number Representation Discuss itQuestion 5-Explanation: (1217)8 = (001 010 001 111)8 = (0010 1000 1111) = (28F)16Question 6What is the minimum number of gates required to implement the Boolean function (AB+C)if we have to use only 2-input NOR gates?2345GATE-CS-2009 Digital Logic & Number representation Logic functions and Minimization Discuss itQuestion 6-Explanation: AB+C = (A+C)(B+C) = ((A+C)' + (B+C)')' So, '3' 2-input NOR gates are required.Question 7A CPU generally handles an interrupt by executing an interrupt service routineAs soon as an interrupt is raisedBy checking the interrupt register at the end of fetch cycle.By checking the interrupt register after finishing the execution of the current instruction.By checking the interrupt register at fixed time intervals.GATE-CS-2009 OS Input Output Systems Discuss itQuestion 7-Explanation: Hardware detects interrupt immediately, but CPU acts only after its current instruction. This is followed to ensure integrity of instructions.Question 8In which one of the following page replacement policies, Belady’s anomaly may occur?FIFOOptimalLRUMRUGATE-CS-2009 OS Memory Management Discuss itQuestion 8-Explanation: Belady’s anomaly proves that it is possible to have more page faults when increasing the number of page frames while using the First in First Out (FIFO) page replacement algorithm. See the wiki page for an example of increasing page faults with number of page frames.Question 9The essential content(s) in each entry of a page table is / areVirtual page numberPage frame numberBoth virtual page number and page frame numberAccess right informationGATE-CS-2009 OS Memory Management Discuss itQuestion 9-Explanation: A page table entry must contain Page frame number. Virtual page number is typically used as index in page table to get the corresponding page frame number. See this for details.Question 10What is the number of swaps required to sort n elements using selection sort, in the worst case? (A) (n) (B) (n log n) (C) (n^2 ) (D) (n^2 log n)Theta(n)Theta(nLogn)Theta(n*n)Theta(n*nLogn)GATE-CS-2009 Discuss itQuestion 10-Explanation: Here is Selection Sort algorithm for sorting in ascending order. 1. Find the minimum value in the list 2. Swap it with the value in the first position 3. Repeat the steps above for the remainder of the list (starting at the second position and advancing each time)As we can see from the algorithm, selection sort performs swap only after finding the appropriate position of the current picked element. So there are O(n) swaps performed in selection sort. Because swaps require writing to the array, selection sort is preferable if writing to memory is significantly more expensive than reading. This is generally the case if the items are huge but the keys are small. Another example where writing times are crucial is an array stored in EEPROM or Flash. There is no other algorithm with less data movement. References: http://en.wikipedia.org/wiki/Selection_sort 123456 There are 60 questions to complete.You have completedquestionsquestionYour accuracy isCorrectWrongPartial-CreditYou have not finished your quiz. If you leave this page, your progress will be lost.Correct AnswerYou SelectedNot AttemptedFinal Score on QuizAttempted Questions CorrectAttempted Questions WrongQuestions Not AttemptedTotal Questions on QuizQuestion DetailsResultsDateScoreHintTime allowedminutessecondsTime usedAnswer Choice(s) SelectedQuestion Text All doneNeed more practice!Keep trying!Not bad!Good work!Perfect!