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 PYQ2003Digital LogicMinimization (K-Maps etc.)MCQ · 1 mark
The literal count of a Boolean expression is the sum of the number of times each literal appears in the expression. For example, the literal count of (xy+xz′)\left(xy+xz'\right) is 4.4. What are the minimum possible literal counts of the product-of-sum and sum-of-product representations respectively of the function given by the following Karnaugh map? Here, …
Official PYQ2003Digital LogicSequential CircuitsMCQ · 1 mark
A 1-input\text{1-input}, 2-output\text{2-output} synchronous sequential circuit behaves as follows: Let zk,nkz_k, n_k denote the number of 0’s0’s and 1’s1’s respectively in initial kk bits of the input (zk+nk=k)(z_k+n_k=k). The circuit outputs 0000 until one of the following conditions holds. zk−nk=2z_k-n_k=2. In this case, the output at the k-th and all subsequent …
Official PYQ2003Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
The following is a scheme for floating point number representation using 1616 bits. Let s,e,s, e, and mm be the numbers represented in binary in the sign, exponent, and mantissa fields respectively. Then the floating point number represented is: …
Official PYQ2003Engineering MathematicsLinear Algebra: Matrices, Determinants, System of Linear EquationsMCQ · 1 mark
Consider the following system of linear equations (21−443−1212−8)(xyz)=(α57)\left( \begin{array}{ccc} 2 & 1 & -4 \\ 4 & 3 & -12 \\ 1 & 2 & -8 \end{array} \right) \left( \begin{array}{ccc} x \\ y \\ z \end{array} \right) = \left( \begin{array}{ccc} \alpha \\ 5 \\ 7 \end{array} \right) Notice that the second and the third columns of the coefficient matrix …
Official PYQ2003Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
A graph G=(V,E)G=(V,E) satisfies ∣E∣≤3∣V∣−6\mid E \mid \leq 3 \mid V \mid - 6. The min-degree of GG is defined as min⁡v∈V{degree (v)}\min_{v\in V}\left\{ \text{degree }(v)\right \}. Therefore, min-degree of GG cannot be
Official PYQ2003Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let Σ={a,b,c,d,e}\Sigma = \left\{a, b, c, d, e\right\} be an alphabet. We define an encoding scheme as follows: g(a)=3,g(b)=5,g(c)=7,g(d)=9,g(e)=11g(a) = 3, g(b) = 5, g(c) = 7, g(d) = 9, g(e) = 11. Let pip_i denote the i-th prime number (p1=2)\left(p_1 = 2\right). For a non-empty string s=a1…ans=a_1 \dots a_n, where each ai∈Σa_i \in \Sigma, define f(s)=Πi=1nPig(ai)f(s)= \Pi^n_{i=1}P_i^{g(a_i)}. For a non-empty …
Official PYQ2003Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let f:A→Bf : A \to B be an injective (one-to-one) function. Define g:2A→2Bg : 2^A \to 2^B as: g(C)={f(x)∣x∈C}g(C) = \left \{f(x) \mid x \in C\right\}, for all subsets CC of AA. Define h:2B→2Ah : 2^B \to 2^A as: h(D)={x∣x∈A,f(x)∈D}h(D) = \{x \mid x \in A, f(x) \in D\}, for all subsets DD of BB. Which of the following statements is always true?
Official PYQ2003Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the set {a,b,c}\{a, b, c\} with binary operators ++ and ∗* defined as follows: …
Official PYQ2003Engineering MathematicsGraphs: Connectivity, Matching, ColouringMCQ · 1 mark
How many perfect matching are there in a complete graph of 66 vertices?
Official PYQ2003AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the following recurrence relation T(1)=1T(1)=1 T(n+1)=T(n)+⌊n+1⌋T(n+1) = T(n)+\lfloor \sqrt{n+1} \rfloor for all n≥1n \geq 1 The value of T(m2)T(m^2) for m≥1m \geq 1 is
Official PYQ2003Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
mm identical balls are to be placed in nn distinct bags. You are given that m≥knm \geq kn, where kk is a natural number ≥1\geq 1. In how many ways can the balls be placed in the bags if each bag must contain at least kk balls?
Official PYQ2003Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Consider the following formula and its two interpretations I1I_1 and I2I_2. α:(∀x)[Px⇔(∀y)[Qxy⇔¬Qyy]]⇒(∀x)[¬Px]\alpha: (\forall x)\left[P_x \Leftrightarrow (\forall y)\left[Q_{xy} \Leftrightarrow \neg Q_{yy} \right]\right] \Rightarrow (\forall x)\left[\neg P_x\right] I1I_1 : Domain: the set of natural numbers PxP_x = 'xx is a prime number' QxyQ_{xy} = 'yy divides xx' …
Official PYQ2003Engineering MathematicsPropositional and First Order LogicMCQ · 1 mark
Which of the following is a valid first order formula? (Here α\alpha and β\beta are first order formulae with xx as their only free variable)
Official PYQ2003Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let (S,≤)(S, \leq) be a partial order with two minimal elements a and b, and a maximum element c. Let P: S →\to {True, False} be a predicate defined on S. Suppose that P(a) = True, P(b) = False and P(x)   ⟹  \implies P(y) for all x,y∈Sx, y \in S satisfying x≤yx \leq y, where   ⟹  \implies stands for logical implication. Which of the following statements …
Official PYQ2003DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Consider the following SQL query Select distinct a1,a2,…,ana_1, a_2, …, a_n from r1,r2,…,rmr_1, r_2, …, r_m where P For an arbitrary predicate P, this query is equivalent to which of the following relational algebra expressions?
Official PYQ2003DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Which of the following scenarios may lead to an irrecoverable error in a database system?
Official PYQ2003Computer NetworksConcept of Layering: OSI and TCP/IP Protocol StacksMCQ · 1 mark
Which of the following functionality must be implemented by a transport protocol over and above the network protocol?
Official PYQ2003Computer NetworksFragmentation and IP Addressing, IPv4, CIDRMCQ · 1 mark
Which of the following assertions is FALSE about the Internet Protocol (IP)?
Official PYQ2003Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
In a system with 32 bit\text{32 bit} virtual addresses and 1 KB\text{1 KB} page size, use of one-level page tables for virtual to physical address translation is not practical because of
Official PYQ2003Operating SystemI/O SchedulingMCQ · 1 mark
Using a larger block size in a fixed block size file system leads to