Skip to content

GATE CS question library

Practise GATE CS Computer Science previous year questions free. Browse by subject, syllabus topic, year and question type, with answers and available solutions.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2023Compiler DesignLexical AnalysisMCQ · 1 mark
Consider the following statements regarding the front-end and back-end of a compiler. S1: The front-end includes phases that are independent of the target hardware. S2: The back-end includes phases that are specific to the target hardware. S3: The back-end includes phases that are specific to the programming language used in the source code. Identify the …
Official PYQ2023Programming and Data StructuresBinary HeapsMCQ · 1 mark
Which one of the following sequences when stored in an array at locations A[1],…,A[10]A[1], \ldots, A[10] forms a max-heap?
Official PYQ2023Programming and Data StructuresLinked ListsMCQ · 1 mark
Let SLLdel\textsf{SLLdel} be a function that deletes a node in a singly-linked list given a pointer to the node and a pointer to the head of the list. Similarly, let DLLdel\textsf{DLLdel} be another function that deletes a node in a doubly-linked list given a pointer to the node and a pointer to the head of the list. Let nn denote the number of nodes in each …
Official PYQ2023Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the Deterministic Finite-state Automaton (DFA\text{DFA}) A\mathcal{A} shown below. The DFA\text{DFA} runs on the alphabet {0,1}\{0,1\}, and has the set of states {s,p,q,r}\{s, p, q, r\}, with ss being the start state and pp being the only final state. Which one of the following regular expressions correctly describes the language accepted by …
Official PYQ2023Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
The Lucas sequence LnL_{n} is defined by the recurrence relation: Ln=Ln−1+Ln−2, for n≥3,L_{n}=L_{n-1}+L_{n-2}, \quad \text{ for } \quad n \geq 3, with L1=1L_{1}=1 and L2=3L_{2}=3. Which one of the options given is TRUE?
Official PYQ2023DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
Official PYQ2023Computer NetworksTransport Layer: Flow Control, Congestion Control, UDP, TCP, SocketsMCQ · 1 mark
Suppose two hosts are connected by a point-to-point link and they are configured to use Stop-and-Wait\textsf{Stop-and-Wait} protocol for reliable data transfer. Identify in which one of the following scenarios, the utilization of the link is the lowest.
Official PYQ2023Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
Let A=[1234412334122341]A=\left[\begin{array}{llll} 1 & 2 & 3 & 4 \\ 4 & 1 & 2 & 3 \\ 3 & 4 & 1 & 2 \\ 2 & 3 & 4 & 1 \end{array}\right] and B=[3412412312342341]B=\left[\begin{array}{llll} 3 & 4 & 1 & 2 \\ 4 & 1 & 2 & 3 \\ 1 & 2 & 3 & 4 \\ 2 & 3 & 4 & 1 \end{array}\right] Let …
Official PYQ2023Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the following definition of a lexical token id\textbf{id} for an identifier in a programming language, using extended regular expressions: …
Official PYQ2023AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
An algorithm has to store several keys generated by an adversary in a hash table. The adversary is malicious who tries to maximize the number of collisions. Let kk be the number of keys, mm be the number of slots in the hash table, and k>mk>m. Which one of the following is the best hashing strategy to counteract the adversary?
Official PYQ2023Digital LogicCombinational CircuitsMCQ · 1 mark
The output of a 22-input multiplexer is connected back to one of its inputs as shown in the figure. Match the functional equivalence of this circuit to one of the following options.
Official PYQ2023Operating SystemProcesses and ThreadsMSQ · 1 mark
Which one or more of the following need to be saved on a context switch from one thread (T1)\text{(T1)} of a process to another thread (T2)\text{(T2)} of the same process?
Official PYQ2023Operating SystemSystem CallsMSQ · 1 mark
Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?
Official PYQ2023Theory of ComputationRegular and Context-free LanguagesMSQ · 1 mark
Which of the following statements is/are CORRECT?\text{CORRECT}?
Official PYQ2023Computer NetworksRouting Protocols: Shortest Path, Flooding, Distance Vector, Link StateMSQ · 1 mark
Which of the following statements is/are INCORRECT\text{INCORRECT} about the OSPF (Open Shortest Path First)\textsf{OSPF (Open Shortest Path First)} routing protocol used in the Internet?
Official PYQ2023Engineering MathematicsPropositional and First Order LogicMSQ · 1 mark
Geetha has a conjecture about integers, which is of the form ∀x(P(x)⟹∃yQ(x,y)),\forall x(P(x) \Longrightarrow \exists y Q(x, y)), where PP is a statement about integers, and QQ is a statement about pairs of integers. Which of the following (one or more) option(s) would imply Geetha's conjecture?
Official PYQ2023Operating SystemCPU SchedulingMSQ · 1 mark
Which one or more of the following CPU\text{CPU} scheduling algorithms can potentially cause starvation?
Official PYQ2023Engineering MathematicsMaxima and Minima, Mean Value Theorem, IntegrationMSQ · 1 mark
Let f(x)=x3+15x2−33x−36\qquad f(x)=x^{3}+15 x^{2}-33 x-36 be a real-valued function. Which of the following statements is/are TRUE?\text{TRUE}?
Official PYQ2023AlgorithmsAsymptotic Worst Case Time and Space ComplexityMSQ · 1 mark
Let ff and gg be functions of natural numbers given by f(n)=nf(n)=n and g(n)=n2.g(n)=n^{2}. Which of the following statements is/are TRUE?\text{TRUE}?
Official PYQ2023Engineering MathematicsEigenvalues and Eigenvectors, LU DecompositionNAT · 1 mark
Let AA be the adjacency matrix of the graph with vertices {1,2,3,4,5}.\{1,2,3,4,5\}. Let λ1,λ2,λ3,λ4\lambda_{1}, \lambda_{2}, \lambda_{3}, \lambda_{4}, and λ5\lambda_{5} be the five eigenvalues of AA. Note that these eigenvalues need not be distinct. The value of λ1+λ2+λ3+λ4+λ5=\lambda_{1}+\lambda_{2}+\lambda_{3}+\lambda_{4}+\lambda_{5}=____________