GateAI

GATE CSE 2012 Question Paper with Solutions & Answer Key

All 65 questions of the GATE CSE 2012 paper (100 marks: 30 one-mark and 35 two-mark; 65 MCQ, 0 MSQ, 0 NAT), with the answer key and a verified solution for each. See more GATE CSE question papers or all GATE CSE PYQs.

Questions
65
Total marks
100
MCQ / MSQ / NAT
65 / 0 / 0
Topics
40

GATE CSE 2012 paper analysis

Engineering Mathematics and General Aptitude together made up 31 of 100 marks, up 3 from GATE CSE 2011. 0 of 65 questions were NAT, the most since 2011. Quantitative Aptitude was the heaviest single topic with 9 marks across 5 questions. Databases moved the most against GATE CSE 2011: up 4 marks.

All GATE CSE 2012 questions

Each question opens its full verified solution.

  1. Q1 · MCQ · 1 mark · Discrete MathematicsConsider the following logical inferences. I1: If it rains then the cricket match will not be played. The cricket match was played. Inference: There was no rain. I2: If…
  2. Q2 · MCQ · 1 mark · Integrity Constraints and Normal FormsWhich of the following is TRUE?
  3. Q3 · MCQ · 1 mark · Programming in CWhat will be the output of the following C program segment? char inChar = 'A' ; switch ( inChar ) { case 'A' : printf ("Choice A n") ; case 'B' : case 'C' : printf ("Cho…
  4. Q4 · MCQ · 1 mark · Turing Machines and UndecidabilityAssuming P ≠ NP, which of the following is TRUE?
  5. Q5 · MCQ · 1 mark · Binary Search TreesThe worst case running time to search for an element in a balanced binary search tree with n2n elements is
  6. Q6 · MCQ · 1 mark · Boolean Algebra and MinimizationThe truth table represents the Boolean function
  7. Q7 · MCQ · 1 mark · Number Representation and ArithmeticThe decimal value 0.5 in IEEE single precision floating point representation has
  8. Q8 · MCQ · 1 mark · Processes, Threads and IPCA process executes the code fork(); fork(); fork(); The total number of child processes created is
  9. Q9 · MCQ · 1 mark · CalculusConsider the function f(x) = sin(x) in the interval x ∈ [ /4, 7 /4]. The number and location(s) of the local minima of this function are
  10. Q10 · MCQ · 1 mark · Principles of LayeringThe protocol data unit (PDU) for the application layer in the Internet stack is
  11. Q11 · MCQ · 1 mark · Linear AlgebraLet A be the 2 × 2 matrix with elements a11 = a12 = a21 = +1 and a22 = -1. Then the eigenvalues of the matrix A19 are
  12. Q12 · MCQ · 1 mark · Regular Expressions and Finite AutomataWhat is the complement of the language accepted by the NFA shown below? Assume = {a} and is the empty string.
  13. Q13 · MCQ · 1 mark · Propositional and First-Order LogicWhat is the correct translation of the following statement into mathematical logic? “Some real numbers are rational”
  14. Q14 · MCQ · 1 mark · ER ModelGiven the basic ER and relational models, which of the following is INCORRECT?
  15. Q15 · MCQ · 1 mark · SQLWhich of the following statements are TRUE about an SQL query? P : An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause Q : An SQL query c…
  16. Q16 · MCQ · 1 mark · RecursionThe recurrence relation capturing the optimal execution time of the Towers of Hanoi problem with n discs is
  17. Q17 · MCQ · 1 mark · Graph TheoryLet G be a simple undirected planar graph on 10 vertices with 15 edges. If G is a connected graph, then the number of bounded faces in any embedding of G on the plane is…
  18. Q18 · MCQ · 1 mark · Asymptotic AnalysisLet W(n) and A(n) denote respectively, the worst case and average case running time of an algorithm executed on an input of size n. Which of the following is ALWAYS TRUE?
  19. Q19 · MCQ · 1 mark · Combinational and Sequential CircuitsThe amount of ROM needed to implement a 4 bit multiplier is
  20. Q20 · MCQ · 1 mark · Instruction PipeliningRegister renaming is done in pipelined processors
  21. Q21 · MCQ · 1 mark · Probability and StatisticsConsider a random variable X that takes values +1 and -1 with probability 0.5 each. The values of the cumulative distribution function F(x) at x = -1 and +1 are
  22. Q22 · MCQ · 1 mark · Principles of LayeringWhich of the following transport layer protocols is used to support electronic mail?
  23. Q23 · MCQ · 1 mark · IPv4, CIDR and NATIn the IPv4 addressing format, the number of networks allowed under Class C addresses is
  24. Q24 · MCQ · 1 mark · Turing Machines and UndecidabilityWhich of the following problems are decidable? 1) Does a given program ever produce an output? 2) If L is a context-free language, then, is L also context-free? 3) If L…
  25. Q25 · MCQ · 1 mark · Regular Expressions and Finite AutomataGiven the language L = {ab, aa, baa}, which of the following strings are in L*? 1) abaabaabaa 2) aaaabaaa 3) baaaaabaaab 4) baaaabaa
  26. Q26 · MCQ · 2 marks · Discrete MathematicsWhich of the following graphs is isomorphic to
  27. Q27 · MCQ · 2 marks · Transactions and Concurrency ControlConsider the following transactions with data items P and Q initialized to zero: T1 : read (P); read (Q); if P = 0 then Q := Q + 1 ; write (Q). T2 : read (Q); read (P);…
  28. Q28 · MCQ · 2 marks · CalculusThe bisection method is applied to compute a zero of the function f(x) = x4 - x3 - x2 - 4 in the interval [1,9]. The method converges to a solution after … iterations.
  29. Q29 · MCQ · 2 marks · Minimum Spanning TreesLet G be a weighted graph with edge weights greater than one and G' be the graph constructed by squaring the weights of edges in G. Let T and T' be the minimum spanning…
  30. Q30 · MCQ · 2 marks · Boolean Algebra and MinimizationWhat is the minimal form of the Karnaugh map shown below? Assume that X denotes a don’t care term.
  31. Q31 · MCQ · 2 marks · CPU and I/O SchedulingConsider the 3 processes, P1, P2 and P3 shown in the table. The completion order of the 3 processes under the policies FCFS and RR2 (round robin scheduling with CPU quan…
  32. Q32 · MCQ · 2 marks · Concurrency and SynchronizationFetchAndAdd(X, i) is an atomic Read-Modify-Write instruction that reads the value of memory location X, increments it by the value i, and returns the old value of X. It…
  33. Q33 · MCQ · 2 marks · Probability and StatisticsSuppose a fair six-sided die is rolled once. If the value on the die is 1, 2, or 3, the die is rolled a second time. What is the probability that the sum total of values…
  34. Q34 · MCQ · 2 marks · IPv4, CIDR and NATAn Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20. The ISP wants to give half of this chunk of ad…
  35. Q35 · MCQ · 2 marks · Linear Structures, Trees and HeapsSuppose a circular queue of capacity (n - 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operations are carried out using…
  36. Q36 · MCQ · 2 marks · Runtime EnvironmentsConsider the program given below, in a block-structured pseudo-language with lexical scoping and nesting of procedures permitted. Program main; Var ... Procedure A1; Var…
  37. Q37 · MCQ · 2 marks · CombinatoricsHow many onto (or surjective) functions are there from an n-element (n ≥ 2) set to a 2-element set?
  38. Q38 · MCQ · 2 marks · CombinatoricsLet G be a complete undirected graph on 6 vertices. If vertices of G are labeled, then the number of distinct cycles of length 4 in G is equal to
  39. Q39 · MCQ · 2 marks · Searching, Sorting and HashingA list of n strings, each of length n, is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is
  40. Q40 · MCQ · 2 marks · Shortest PathsConsider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by Dijkstra’s shortest path…
  41. Q41 · MCQ · 2 marks · File SystemsA file system with 300 GByte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each di…
  42. Q42 · MCQ · 2 marks · Memory Management and Virtual MemoryConsider the virtual page reference string 1, 2, 3, 2, 4, 1, 3, 2, 4, 1 on a demand paged virtual memory system running on a computer system that has main memory size of…
  43. Q43 · MCQ · 2 marks · Integrity Constraints and Normal FormsSuppose R1(A, B) and R2( C, D) are two relation schemas. Let r1 and r2 be the corresponding relation instances. B is a foreign key that refers to C in R2. If data in r1…
  44. Q44 · MCQ · 2 marks · Principles of LayeringConsider a source computer (S) transmitting a file of size 106 bits to a destination computer (D) over a network of two routers (R1 and R2) and three links (L1, L2, and…
  45. Q45 · MCQ · 2 marks · TCP Flow and Congestion ControlConsider an instance of TCP's Additive Increase Multiplicative Decrease (AIMD) algorithm where the window size at the start of the slow start phase is 2 MSS and the thre…
  46. Q46 · MCQ · 2 marks · Regular Expressions and Finite AutomataConsider the set of strings on {0,1} in which, *every substring of 3 symbols* has at most *two* zeros. For example, 001110 and 011001 are in the language, but 100010 is…
  47. Q47 · MCQ · 2 marks · TreesThe height of a tree is defined as the number of edges on the longest path in the tree. The function shown in the pseudocode below is invoked as height(root) to compute…
  48. Q48 · MCQ · 2 marks · Programming in CCommon Data for Questions 48 and 49: Consider the following C code segment. int a, b, c = 0; void prtFun(void); main( ) { static int a = 1; /* Line 1 */ prtFun( ); a +=…
  49. Q49 · MCQ · 2 marks · Programming in CCommon Data for Questions 48 and 49: Consider the following C code segment. int a, b, c = 0; void prtFun(void); main( ) { static int a = 1; /* Line 1 */ prtFun( ); a +=…
  50. Q50 · MCQ · 2 marks · Relational AlgebraCommon Data for Questions 50 and 51: Consider the following relations A, B and C: How many tuples does the result of the following relational algebra expression contain?…
  51. Q51 · MCQ · 2 marks · SQLCommon Data for Questions 50 and 51: Consider the following relations A, B and C: How many tuples does the result of the following SQL query contain? SELECT A.Id FROM A…
  52. Q52 · MCQ · 2 marks · ParsingStatement for Linked Answer Questions 52 and 53: For the grammar below, a partial LL(1) parsing table is also presented along with the grammar. Entries that need to be f…
  53. Q53 · MCQ · 2 marks · ParsingStatement for Linked Answer Questions 52 and 53: For the grammar below, a partial LL(1) parsing table is also presented along with the grammar. Entries that need to be f…
  54. Q54 · MCQ · 2 marks · Cache Memory and HierarchyStatement for Linked Answer Questions 54 and 55: A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor send…
  55. Q55 · MCQ · 2 marks · Cache Memory and HierarchyStatement for Linked Answer Questions 54 and 55: A computer has a 256 KByte, 4-way set associative, write back data cache with block size of 32 Bytes. The processor send…
  56. Q56 · MCQ · 1 mark · Quantitative AptitudeThe cost function for a product in a firm is given by 5q2, where q is the amount of production. The firm can sell the product at a market price of ₹ 50 per unit. The num…
  57. Q57 · MCQ · 1 mark · Verbal AptitudeChoose the most appropriate alternative from the options given below to complete the following sentence: Despite several … the mission succeeded in its attempt to resolv…
  58. Q58 · MCQ · 1 mark · Verbal AptitudeWhich one of the following options is the closest in meaning to the word given below? Mitigate
  59. Q59 · MCQ · 1 mark · Verbal AptitudeChoose the grammatically INCORRECT sentence:
  60. Q60 · MCQ · 1 mark · Verbal AptitudeChoose the most appropriate alternative from the options given below to complete the following sentence: Suresh’s dog is the one … was hurt in the stampede.
  61. Q61 · MCQ · 2 marks · Verbal AptitudeWanted Temporary, Part-time persons for the post of Field Interviewer to conduct personal interviews to collect and collate economic data. Requirements: High School-pass…
  62. Q62 · MCQ · 2 marks · Quantitative AptitudeA political party orders an arch for the entrance to the ground in which the annual convention is being held. The profile of the arch follows the equation y = 2x - 0.1x2…
  63. Q63 · MCQ · 2 marks · Quantitative AptitudeAn automobile plant contracted to buy shock absorbers from two suppliers X and Y. X supplies 60% and Y supplies 40% of the shock absorbers. All shock absorbers are subje…
  64. Q64 · MCQ · 2 marks · Quantitative AptitudeWhich of the following assertions are CORRECT? P: Adding 7 to each entry in a list adds 7 to the mean of the list Q: Adding 7 to each entry in a list adds 7 to the stand…
  65. Q65 · MCQ · 2 marks · Quantitative AptitudeGiven the sequence of terms, AD CG FK JP, the next term is

GATE CSE 2012 answer key

Official answers. Open a question for the full solution.

QTypeMarksAnswerTopic
Q1MCQ1BDiscrete Mathematics
Q2MCQ1CIntegrity Constraints and Normal Forms
Q3MCQ1—Programming in C
Q4MCQ1BTuring Machines and Undecidability
Q5MCQ1CBinary Search Trees
Q6MCQ1ABoolean Algebra and Minimization
Q7MCQ1BNumber Representation and Arithmetic
Q8MCQ1CProcesses, Threads and IPC
Q9MCQ1DCalculus
Q10MCQ1CPrinciples of Layering
Q11MCQ1DLinear Algebra
Q12MCQ1BRegular Expressions and Finite Automata
Q13MCQ1CPropositional and First-Order Logic
Q14MCQ1CER Model
Q15MCQ1CSQL
Q16MCQ1DRecursion
Q17MCQ1DGraph Theory
Q18MCQ1CAsymptotic Analysis
Q19MCQ1DCombinational and Sequential Circuits
Q20MCQ1CInstruction Pipelining
Q21MCQ1CProbability and Statistics
Q22MCQ1CPrinciples of Layering
Q23MCQ1CIPv4, CIDR and NAT
Q24MCQ1DTuring Machines and Undecidability
Q25MCQ1CRegular Expressions and Finite Automata
Q26MCQ2BDiscrete Mathematics
Q27MCQ2BTransactions and Concurrency Control
Q28MCQ2BCalculus
Q29MCQ2—Minimum Spanning Trees
Q30MCQ2BBoolean Algebra and Minimization
Q31MCQ2CCPU and I/O Scheduling
Q32MCQ2BConcurrency and Synchronization
Q33MCQ2BProbability and Statistics
Q34MCQ2AIPv4, CIDR and NAT
Q35MCQ2ALinear Structures, Trees and Heaps
Q36MCQ2DRuntime Environments
Q37MCQ2CCombinatorics
Q38MCQ2—Combinatorics
Q39MCQ2—Searching, Sorting and Hashing
Q40MCQ2DShortest Paths
Q41MCQ2BFile Systems
Q42MCQ2BMemory Management and Virtual Memory
Q43MCQ2AIntegrity Constraints and Normal Forms
Q44MCQ2APrinciples of Layering
Q45MCQ2—TCP Flow and Congestion Control
Q46MCQ2DRegular Expressions and Finite Automata
Q47MCQ2ATrees
Q48MCQ2CProgramming in C
Q49MCQ2DProgramming in C
Q50MCQ2ARelational Algebra
Q51MCQ2BSQL
Q52MCQ2AParsing
Q53MCQ2CParsing
Q54MCQ2CCache Memory and Hierarchy
Q55MCQ2ACache Memory and Hierarchy
Q56MCQ1AQuantitative Aptitude
Q57MCQ1BVerbal Aptitude
Q58MCQ1AVerbal Aptitude
Q59MCQ1DVerbal Aptitude
Q60MCQ1—Verbal Aptitude
Q61MCQ2DVerbal Aptitude
Q62MCQ2BQuantitative Aptitude
Q63MCQ2BQuantitative Aptitude
Q64MCQ2CQuantitative Aptitude
Q65MCQ2AQuantitative Aptitude

Subject-wise weightage

Where the marks came from in GATE CSE 2012, against GATE CSE 2011 and the average paper.

GATE CSE 2012 FAQ

How many questions were in GATE CSE 2012?
GATE CSE 2012 had 65 questions for 100 marks: 65 MCQ, 0 MSQ and 0 NAT.
Which subject carried the most marks in GATE CSE 2012?
Engineering Mathematics carried the most marks (16 of 100). The top three were Engineering Mathematics (16), General Aptitude (15), Databases (11).
Where can I find the GATE CSE 2012 answer key?
The answer key table on this page lists the answer to every question of GATE CSE 2012. Open any question for its full verified solution.
Is the GATE CSE 2012 paper useful for GATE 2027 preparation?
Yes. Solving past GATE CSE papers shows how marks are spread across subjects and which topics repeat. Compare it with other GATE CSE question papers and the topic-wise GATE CSE PYQs.

Explore more GATE CSE papers