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.
- 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…
- Q2 · MCQ · 1 mark · Integrity Constraints and Normal FormsWhich of the following is TRUE?
- 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…
- Q4 · MCQ · 1 mark · Turing Machines and UndecidabilityAssuming P ≠ NP, which of the following is TRUE?
- 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
- Q6 · MCQ · 1 mark · Boolean Algebra and MinimizationThe truth table represents the Boolean function
- Q7 · MCQ · 1 mark · Number Representation and ArithmeticThe decimal value 0.5 in IEEE single precision floating point representation has
- Q8 · MCQ · 1 mark · Processes, Threads and IPCA process executes the code fork(); fork(); fork(); The total number of child processes created is
- 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
- Q10 · MCQ · 1 mark · Principles of LayeringThe protocol data unit (PDU) for the application layer in the Internet stack is
- 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
- 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.
- 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”
- Q14 · MCQ · 1 mark · ER ModelGiven the basic ER and relational models, which of the following is INCORRECT?
- 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…
- Q16 · MCQ · 1 mark · RecursionThe recurrence relation capturing the optimal execution time of the Towers of Hanoi problem with n discs is
- 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…
- 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?
- Q19 · MCQ · 1 mark · Combinational and Sequential CircuitsThe amount of ROM needed to implement a 4 bit multiplier is
- Q20 · MCQ · 1 mark · Instruction PipeliningRegister renaming is done in pipelined processors
- 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
- Q22 · MCQ · 1 mark · Principles of LayeringWhich of the following transport layer protocols is used to support electronic mail?
- Q23 · MCQ · 1 mark · IPv4, CIDR and NATIn the IPv4 addressing format, the number of networks allowed under Class C addresses is
- 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…
- 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
- Q26 · MCQ · 2 marks · Discrete MathematicsWhich of the following graphs is isomorphic to
- 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);…
- 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.
- 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…
- 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.
- 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…
- 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…
- 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…
- 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…
- 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…
- 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…
- Q37 · MCQ · 2 marks · CombinatoricsHow many onto (or surjective) functions are there from an n-element (n ≥ 2) set to a 2-element set?
- 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
- 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
- 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…
- 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…
- 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…
- 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…
- 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…
- 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…
- 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…
- 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…
- 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 +=…
- 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 +=…
- 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?…
- 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…
- 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…
- 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…
- 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…
- 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…
- 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…
- 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…
- Q58 · MCQ · 1 mark · Verbal AptitudeWhich one of the following options is the closest in meaning to the word given below? Mitigate
- Q59 · MCQ · 1 mark · Verbal AptitudeChoose the grammatically INCORRECT sentence:
- 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.
- 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…
- 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…
- 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…
- 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…
- 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.
| Q | Type | Marks | Answer | Topic |
|---|---|---|---|---|
| Q1 | MCQ | 1 | B | Discrete Mathematics |
| Q2 | MCQ | 1 | C | Integrity Constraints and Normal Forms |
| Q3 | MCQ | 1 | — | Programming in C |
| Q4 | MCQ | 1 | B | Turing Machines and Undecidability |
| Q5 | MCQ | 1 | C | Binary Search Trees |
| Q6 | MCQ | 1 | A | Boolean Algebra and Minimization |
| Q7 | MCQ | 1 | B | Number Representation and Arithmetic |
| Q8 | MCQ | 1 | C | Processes, Threads and IPC |
| Q9 | MCQ | 1 | D | Calculus |
| Q10 | MCQ | 1 | C | Principles of Layering |
| Q11 | MCQ | 1 | D | Linear Algebra |
| Q12 | MCQ | 1 | B | Regular Expressions and Finite Automata |
| Q13 | MCQ | 1 | C | Propositional and First-Order Logic |
| Q14 | MCQ | 1 | C | ER Model |
| Q15 | MCQ | 1 | C | SQL |
| Q16 | MCQ | 1 | D | Recursion |
| Q17 | MCQ | 1 | D | Graph Theory |
| Q18 | MCQ | 1 | C | Asymptotic Analysis |
| Q19 | MCQ | 1 | D | Combinational and Sequential Circuits |
| Q20 | MCQ | 1 | C | Instruction Pipelining |
| Q21 | MCQ | 1 | C | Probability and Statistics |
| Q22 | MCQ | 1 | C | Principles of Layering |
| Q23 | MCQ | 1 | C | IPv4, CIDR and NAT |
| Q24 | MCQ | 1 | D | Turing Machines and Undecidability |
| Q25 | MCQ | 1 | C | Regular Expressions and Finite Automata |
| Q26 | MCQ | 2 | B | Discrete Mathematics |
| Q27 | MCQ | 2 | B | Transactions and Concurrency Control |
| Q28 | MCQ | 2 | B | Calculus |
| Q29 | MCQ | 2 | — | Minimum Spanning Trees |
| Q30 | MCQ | 2 | B | Boolean Algebra and Minimization |
| Q31 | MCQ | 2 | C | CPU and I/O Scheduling |
| Q32 | MCQ | 2 | B | Concurrency and Synchronization |
| Q33 | MCQ | 2 | B | Probability and Statistics |
| Q34 | MCQ | 2 | A | IPv4, CIDR and NAT |
| Q35 | MCQ | 2 | A | Linear Structures, Trees and Heaps |
| Q36 | MCQ | 2 | D | Runtime Environments |
| Q37 | MCQ | 2 | C | Combinatorics |
| Q38 | MCQ | 2 | — | Combinatorics |
| Q39 | MCQ | 2 | — | Searching, Sorting and Hashing |
| Q40 | MCQ | 2 | D | Shortest Paths |
| Q41 | MCQ | 2 | B | File Systems |
| Q42 | MCQ | 2 | B | Memory Management and Virtual Memory |
| Q43 | MCQ | 2 | A | Integrity Constraints and Normal Forms |
| Q44 | MCQ | 2 | A | Principles of Layering |
| Q45 | MCQ | 2 | — | TCP Flow and Congestion Control |
| Q46 | MCQ | 2 | D | Regular Expressions and Finite Automata |
| Q47 | MCQ | 2 | A | Trees |
| Q48 | MCQ | 2 | C | Programming in C |
| Q49 | MCQ | 2 | D | Programming in C |
| Q50 | MCQ | 2 | A | Relational Algebra |
| Q51 | MCQ | 2 | B | SQL |
| Q52 | MCQ | 2 | A | Parsing |
| Q53 | MCQ | 2 | C | Parsing |
| Q54 | MCQ | 2 | C | Cache Memory and Hierarchy |
| Q55 | MCQ | 2 | A | Cache Memory and Hierarchy |
| Q56 | MCQ | 1 | A | Quantitative Aptitude |
| Q57 | MCQ | 1 | B | Verbal Aptitude |
| Q58 | MCQ | 1 | A | Verbal Aptitude |
| Q59 | MCQ | 1 | D | Verbal Aptitude |
| Q60 | MCQ | 1 | — | Verbal Aptitude |
| Q61 | MCQ | 2 | D | Verbal Aptitude |
| Q62 | MCQ | 2 | B | Quantitative Aptitude |
| Q63 | MCQ | 2 | B | Quantitative Aptitude |
| Q64 | MCQ | 2 | C | Quantitative Aptitude |
| Q65 | MCQ | 2 | A | Quantitative Aptitude |
Subject-wise weightage
Where the marks came from in GATE CSE 2012, against GATE CSE 2011 and the average paper.
| Subject | Qs | Marks | Share | vs previous year | Avg marks / paper |
|---|---|---|---|---|---|
| GATE CSE Engineering Mathematics PYQs | 11 | 16 | 16% | +3 | 14.8 |
| GATE CSE General Aptitude PYQs | 10 | 15 | 15% | 0 | 7.4 |
| GATE CSE Databases PYQs | 7 | 11 | 11% | +4 | 6.8 |
| GATE CSE Programming and Data Structures PYQs | 6 | 10 | 10% | +1 | 9.5 |
| GATE CSE Operating Systems PYQs | 5 | 9 | 9% | +2 | 7.4 |
| GATE CSE Computer Networks PYQs | 6 | 9 | 9% | +2 | 7.6 |
| GATE CSE Algorithms PYQs | 5 | 8 | 8% | -1 | 7.2 |
| GATE CSE Theory of Computation PYQs | 5 | 6 | 6% | -2 | 6.9 |
| GATE CSE Compiler Design PYQs | 3 | 6 | 6% | 0 | 5.2 |
| GATE CSE Digital Logic PYQs | 4 | 5 | 5% | -2 | 5.5 |
| GATE CSE Computer Organization and Architecture PYQs | 3 | 5 | 5% | -3 | 6.8 |
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.