GATE CS 2018 question paper
The official GATE CS 2018 paper, set by IIT Guwahati. PrepWiser has 57 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
57 of the paper's 65 questions (86 of 100 marks) on PrepWiser. 28 one-mark and 29 two-mark questions.
- Question types: 38 MCQ · 0 MSQ · 19 NAT
- General Aptitude: 9 questions, 13 marks
- Core CS: 48 questions, 73 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 11 | 16 |
| General Aptitude | 9 | 13 |
| Programming and Data Structures | 8 | 12 |
| Computer Organization and Architecture | 5 | 8 |
| Algorithms | 3 | 6 |
| Databases | 4 | 6 |
| Digital Logic | 4 | 6 |
| Operating System | 4 | 6 |
| Theory of Computation | 4 | 6 |
| Computer Networks | 3 | 4 |
| Compiler Design | 2 | 3 |
General Aptitude
- Q1. “From where are they bringing their books? ______ bringing ______ books from ______.”…
- Q2. “A ______ investigation can sometimes yield new facts, but typically organized ones are…
- Q3. The area of a square is d. What is the area of the circle which has the diagonal of the…
- Q4. What would be the smallest natural number which when divided either by 20 or by 42 or by…
- Q5. What is the missing number in the following sequence? 2, 12, 60, 240, 720, 1440, ______, 0
- Q6. In appreciation of the social improvements completed in a town, a wealthy philanthropist…
- Q8. In a party, 60% of the invited guests are male and 40% are female. If 80% of the invited…
- Q9. In the figure below, ∠ DEC + ∠ BFC is equal to ______ . Geometric figure with labelled…
- Q10. A six sided unbiased die with four green faces and two red faces is rolled seven times…
Engineering Mathematics
- Q11. Which one of the following is a closed form expression for the generating function of…
- Q25. Two people, P and Q, decide to independently roll two identical dice, each with 6 faces…
- Q26. The value of ∫₀^(π/4) x cos(x²) dx correct to three decimal places (assuming that π =…
- Q27. Consider a matrix A = uvᵀ where u = (1; 2), v = (1; 1). Note that vᵀ denotes the…
- Q28. The chromatic number of the following graph is ______. Undirected graph with 6 vertices…
- Q29. Let G be a finite group on 84 elements. The size of a largest possible proper subgroup…
- Q36. Consider a matrix P whose only eigenvectors are the multiples of [1; 4]. Consider the…
- Q37. Let N be the set of natural numbers. Consider the following sets. P: Set of Rational…
- Q38. Consider the first-order logic sentence φ ≡ ∃ s ∃ t ∃ u ∀ v ∀ w ∀ x ∀ y ψ(s,t,u,v,w,x,y)…
- Q53. Let G be a graph with 100! vertices, with each vertex labelled by a distinct permutation…
- Q54. Consider Guwahati (G) and Delhi (D) whose temperatures can be classified as high (H)…
Programming and Data Structures
- Q12. Consider the following C program. #include<stdio.h> struct Ournode{ char x,y,z; }; int…
- Q13. A queue is implemented using a non-circular singly linked list. The queue has a head…
- Q30. The postorder traversal of a binary tree is 8,9,6,7,4,5,2,3,1. The inorder traversal of…
- Q31. Consider the following C program: #include <stdio.h> int counter = 0; int calc (int a…
- Q39. Consider the following C program: #include<stdio.h> void fun1(char *s1, char *s2){ char…
- Q42. Consider the following C code. Assume that unsigned long int type length is 64 bits…
- Q55. Consider the following program written in pseudo-code. Assume that x and y are integers…
- Q56. The number of possible min-heaps containing each value from {1, 2, 3, 4, 5, 6, 7}…
Digital Logic
- Q14. Let ⊕ and denote the Exclusive OR and Exclusive NOR operations, respectively. Which one…
- Q32. Consider the sequential circuit shown in the figure, where both flip-flops used are…
- Q43. Consider the unsigned 8-bit fixed point binary number representation below, b₇ b₆ b₅ b₄…
- Q59. Consider the minterm list form of a Boolean function F given below. F(P,Q,R,S) = Σ…
Computer Organization and Architecture
- Q15. Consider the following processor design characteristics. I. Register-to-register…
- Q19. The following are some events that occur after a device controller issues an interrupt…
- Q44. The size of the physical address space of a processor is 2^P bytes. The word length is…
- Q61. A processor has 16 integer registers (R0, R1, …, R15) and 64 floating point registers…
- Q63. Consider a storage disk with 4 platters (numbered as 0, 1, 2 and 3), 200 cylinders…
Theory of Computation
- Q16. Let N be an NFA with n states. Let k be the number of states of a minimal DFA which is…
- Q17. The set of all recursively enumerable languages is
- Q45. Consider the following languages: I. {aᵐ bⁿ cᵖ d^q | m + p = n + q, where m, n, p, q ≥…
- Q62. Given a language L, define Lⁱ as follows: L⁰ = {ε}Lⁱ = Lⁱ⁻¹ · L for all i > 0 The order…
Compiler Design
- Q18. Which one of the following statements is FALSE ?
- Q47. A lexical analyzer uses the following patterns to recognize three tokens T₁, T₂, and T₃…
Operating System
- Q20. Consider a process executing on an operating system that uses demand paging. The average…
- Q34. Consider a system with 3 processes that share 4 instances of the same resource type…
- Q49. In a system, there are three types of resources: E, F and G. Four processes P₀, P₁, P₂…
- Q50. Consider the following solution to the producer-consumer synchronization problem. The…
Databases
- Q21. In an Entity-Relationship (ER) model, suppose R is a many-to-one relationship from…
- Q22. Consider the following two tables and four queries in SQL. Book (isbn, bname), Stock…
- Q51. Consider the relations r(A, B) and s(B, C), where s.B is a primary key and r.B is a…
- Q52. Consider the following four relational schemas. For each schema, all non-trivial…
Computer Networks
- Q23. Match the following: Field | Length in bits; P. UDP Header's Port Number | I. 48; Q…
- Q24. Consider the following statements regarding the slow start phase of the TCP congestion…
- Q64. Consider an IP packet with a length of 4,500 bytes that includes a 20-byte IPv4 header…