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.

8 on this page
Official PYQ2017AlgorithmsGraph Traversals (BFS, DFS)MCQ · 1 mark
The Breadth First Search (BFS) algorithm has been implemented using the queue data structure. Which one of the following is a possible order of visiting the nodes in the graph below?
Official PYQ2017Programming and Data StructuresProgramming in CMCQ · 1 mark
Match the following: …
Official PYQ2017Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
Consider the quadratic equation x2−13x+36=0x^2-13x+36=0 with coefficients in a base bb. The solutions of this equation in the same base bb are x=5x=5 and x=6x=6. Then b=b= _____
Official PYQ2017Theory of ComputationRegular Expressions and Finite AutomataNAT · 1 mark
The minimum possible number of states of a deterministic finite automaton that accepts the regular language LL = {w1aw2w_{1}aw_{2} | w1,w2w_{1},w_{2} ∈\in {a,b}∗\left \{ a,b \right \}^{*} , ∣w1∣=2,∣w2∣≥3\left | w_{1} \right | = 2, \left | w_{2} \right |\geq 3} is ______________ .
Official PYQ2017DatabasesER-modelMCQ · 1 mark
An ER model of a database consists of entity types AA and BB. These are connected by a relationship RR which does not have its own attribute. Under which one of the following conditions, can the relational table for R be merged with that of A?
Official PYQ2017AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Match the algorithms with their time complexities: …
Official PYQ2017Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Let p,q,rp, q, r denote the statements ”It is raining”, “It is cold”, and “It is pleasant”, respectively. Then the statement “It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold” is represented by
Official PYQ2017Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Let L1,L2L_1, L_2 be any two context-free languages and RR be any regular language. Then which of the following is/are CORRECT? L1∪L2L_1 \cup L_2 is context-free L1‾\overline{L_1} is context-free L1−RL_1 - R is context-free L1∩L2L_1 \cap L_2 is context-free