GATE CS 2024, set 2 question paper
The official GATE CS 2024 set 2 paper, set by IISc Bangalore. PrepWiser has 65 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
65 questions, 100 marks in all. 30 one-mark and 35 two-mark questions.
- Question types: 32 MCQ · 18 MSQ · 15 NAT
- General Aptitude: 10 questions, 15 marks
- Core CS: 55 questions, 85 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 11 | 16 |
| General Aptitude | 10 | 15 |
| Operating System | 6 | 10 |
| Programming and Data Structures | 6 | 10 |
| Computer Networks | 6 | 9 |
| Compiler Design | 5 | 8 |
| Computer Organization and Architecture | 5 | 8 |
| Databases | 6 | 8 |
| Theory of Computation | 4 | 7 |
| Digital Logic | 4 | 6 |
| Algorithms | 2 | 3 |
General Aptitude
- Q1. If '→' denotes increasing order of intensity, then the meaning of the words [walk → jog…
- Q2. Two wizards try to create a spell using all the four elements, water , air , fire , and…
- Q3. In an engineering college of 10,000 students, 1,500 like neither their core branches nor…
- Q4. For positive non-zero real variables x and y, if ln((x+y)/2) = 1/2[ln(x) + ln(y)] then…
- Q5. In the sequence 6, 9, 14, x, 30, 41, a possible value of x is
- Q6. Sequence the following sentences in a coherent passage. P: This fortuitous geological…
- Q7. A person sold two different items at the same price. He made 10% profit in one item, and…
- Q8. The pie charts depict the shares of various power generation technologies in the total…
- Q9. A cube is to be cut into 8 pieces of equal size and shape. Here, each cut should be…
- Q10. In the 4 × 4 array shown below, each cell of the first three rows has either a cross (X)…
Computer Organization and Architecture
- Q11. Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1…
- Q31. An instruction format has the following structure: Instruction Number: Opcode…
- Q57. A processor with 16 general purpose registers uses a 32-bit instruction format. The…
- Q58. A non-pipelined instruction execution unit operating at 2 GHz takes an average of 6…
- Q61. A processor uses a 32-bit instruction format and supports byte-addressable memory…
Engineering Mathematics
- Q12. Let p and q be the following propositions: p: Fail grade can be given. q: Student scores…
- Q15. Let T(n) be the recurrence relation defined as follows: T(0) = 1, T(1) = 2, and T(n) =…
- Q16. Let f(x) be a continuous function from ℝ to ℝ such that f(x) = 1 - f(2 - x) Which one of…
- Q17. Let A be the adjacency matrix of a simple undirected graph G. Suppose A is its own…
- Q18. When six unbiased dice are rolled simultaneously, the probability of getting all…
- Q34. Let P be the partial order defined on the set {1,2,3,4} as follows P = {(x,x) | x ∈…
- Q44. Let x and y be random variables, not necessarily independent, that take real values in…
- Q47. Let A be an n × n matrix over the set of all real numbers ℝ. Let B be a matrix obtained…
- Q51. Let G be an undirected connected graph in which every edge has a positive integer…
- Q60. The chromatic number of a graph is the minimum number of colours used in a proper…
- Q63. Let Zₙ be the group of integers {0, 1, 2, …, n-1} with addition modulo n as the group…
Programming and Data Structures
- Q13. Consider the following C program. Assume parameters to a function are evaluated from…
- Q33. Consider the following C function definition. int fX(char *a){ char *b = a; while(*b)…
- Q36. What is the output of the following C program? #include <stdio.h> int main() { double…
- Q39. You are given a set V of distinct integers. A binary search tree T is created by…
- Q42. Consider an array X that contains n positive integers. A subarray of X is defined to be…
- Q48. Let S1 and S2 be two stacks. S1 has capacity of 4 elements. S2 has capacity of 2…
Digital Logic
- Q14. The format of a single-precision floating-point number as per the IEEE 754 standard is…
- Q30. For a Boolean variable x, which of the following statements is/are FALSE?
- Q49. Which of the following is/are EQUAL to 224 in radix-5 ( i.e. , base-5) notation?
- Q50. Consider 4-variable functions f1, f2, f3, f4 expressed in sum-of-minterms form as given…
Databases
- Q19. Once the DBMS informs the user that a transaction has been successfully completed, its…
- Q20. In the context of owner and weak entity sets in the ER (Entity-Relationship) data model…
- Q26. Which of the following file organizations is/are I/O efficient for the scan operation in…
- Q27. Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?
- Q45. The relation schema, Person(pid,city), describes the city of residence for every person…
- Q56. A functional dependency F: X → Y is termed as a useful functional dependency if and only…
Compiler Design
- Q21. Consider the following two sets: Set X | Set Y ; P. Lexical Analyzer | 1. Abstract…
- Q29. Which of the following statements is/are FALSE?
- Q40. Consider the following context-free grammar where the start symbol is S and the set of…
- Q43. Consider the following expression: x[i] = (p + r) * -s[i] + u/w. The following sequence…
- Q65. Consider the following augmented grammar, which is to be parsed with a SLR parser. The…
Theory of Computation
- Q22. Which one of the following regular expressions is equivalent to the language accepted by…
- Q41. Let M be the 5-state NFA with ε-transitions shown in the diagram below. NFA with 5…
- Q52. Consider a context-free grammar G with the following 3 rules. S → aS, S → aSbS, S → c…
- Q62. Let L₁ be the language represented by the regular expression b^*ab^*(ab^*ab^*)^* and L₂…
Computer Networks
- Q23. Node X has a TCP connection open to node Y. The packets from X to Y go through an…
- Q28. Which of the following statements about IPv4 fragmentation is/are TRUE?
- Q32. Which of the following fields of an IP header is/are always modified by any router…
- Q38. Which one of the following CIDR prefixes exactly represents the range of IP addresses…
- Q54. Consider a TCP connection operating at a point of time with the congestion window of…
- Q55. Consider an Ethernet segment with a transmission speed of 10⁸ bits/sec and a maximum…
Operating System
- Q24. Which of the following tasks is/are the responsibility/responsibilities of the memory…
- Q25. Consider a process P running on a CPU. Which one or more of the following events will…
- Q37. Consider a single processor system with four processes A, B, C, and D, represented as…
- Q46. Consider a multi-threaded program with two threads T1 and T2. The threads share two…
- Q53. Consider a disk with the following specifications: rotation speed of 6000 RPM, average…
- Q64. Consider a 32-bit system with 4 KB page size and page table entries of size 4 bytes…