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.

7 on this page
Official PYQ2003Programming and Data StructuresProgramming in CMCQ · 1 mark
Assume the following C variable declaration: int *A[10], B[10][10]; Of the following expressions: A[2]A[2] A[2][3]A[2][3] B[1]B[1] B[2][3]B[2][3] which will not give compile-time errors if used as left hand sides of assignment statements in a C program?
Official PYQ2003AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
Consider the following CC function. For large values of yy, the return value of the function ff best approximates float f,(float x, int y) { float p, s; int i; for (s=1,p=1,i=1; i<y; i++) { p *= x/i; s += p; } return s; }
Official PYQ2003Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
A processor uses 2−level2-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are both 3232 bits wide. The memory is byte addressable. For virtual to physical address translation, the 1010 most significant bits of the virtual address are used as index into …
Official PYQ2003Theory of ComputationUndecidabilityMCQ · 1 mark
Consider two languages L1L_1 and L2L_2 each on the alphabet Σ\Sigma. Let f:Σ∗→Σ∗f : \Sigma^* \to \Sigma^* be a polynomial time computable bijection such that (∀x)[x∈L1(\forall x) [ x\in L_1 iff f(x)∈L2]f(x) \in L_2]. Further, let f−1f^{-1} be also polynomial time computable. Which of the following CANNOT be true?
Official PYQ2003Theory of ComputationUndecidabilityMCQ · 1 mark
Define languages L0L_0 and L1L_1 as follows : L0={⟨M,w,0⟩∣M halts on w}L_0 = \{\langle M, w, 0 \rangle \mid M \text{ halts on }w\} L1={⟨M,w,1⟩∣M does not halts on w}L_1 = \{\langle M, w, 1 \rangle \mid M \text{ does not halts on }w\} Here ⟨M,w,i⟩\langle M, w, i \rangle is a triplet, whose first component MM is an encoding of a Turing Machine, second component ww is a string, and third component ii …
Official PYQ2003AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
The cube root of a natural number nn is defined as the largest natural number mm such that (m3≤n)(m^3 \leq n) . The complexity of computing the cube root of nn (nn is represented by binary notation) is
Official PYQ2003Theory of ComputationUndecidabilityMCQ · 1 mark
If the strings of a language LL can be effectively enumerated in lexicographic (i.e., alphabetic) order, which of the following statements is true?