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 PYQ1995Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
The number of elements in the power set P(S)P(S) of the set S={{∅},1,{2,3}}S=\{\{\emptyset\}, 1, \{2, 3\}\} is:
Official PYQ1995Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let RR be a symmetric and transitive relation on a set AA. Then
Official PYQ1995Programming and Data StructuresTreesMCQ · 1 mark
A binary tree TT has nn leaf nodes. The number of nodes of degree 22 in TT is
Official PYQ1995AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
For merging two sorted lists of sizes mm and nn into a sorted list of size m+nm+n, we require comparisons of
Official PYQ1995Operating SystemCPU SchedulingMCQ · 1 mark
Which scheduling policy is most suitable for a time shared operating system?
Official PYQ1995Compiler DesignRuntime EnvironmentsMCQ · 1 mark
A linker is given object modules for a set of programs that were compiled separately. What information need not be included in an object module?
Official PYQ1995Computer NetworksData Link Layer: Framing, Error Detection, MAC, Ethernet BridgingMCQ · 1 mark
What is the distance of the following code 000000000000, 010101010101, 000111000111, 011001011001, 111111111111?
Official PYQ1995Compiler DesignLexical AnalysisMCQ · 1 mark
What are xx and yy in the following macro definition? macro Add x, y Load y Mul x Store y end macro
Official PYQ1995Compiler DesignParsing (LL, LR)MCQ · 1 mark
Consider a grammar with the following productions S→aαb∣bαc∣aBS \rightarrow a \alpha b \mid b \alpha c \mid aB S→αS∣bS \rightarrow \alpha S\mid b S→αbb∣abS \rightarrow \alpha b b\mid ab Sα→bdb∣bS \alpha \rightarrow bd b\mid b The above grammar is:
Official PYQ1995Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
Which of the following page replacement algorithms suffers from Belady’s anamoly?
Official PYQ1995Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
In some programming language, an identifier is permitted to be a letter followed by any number of letters or digits. If LL and DD denote the sets of letters and digits respectively, which of the following expressions defines an identifier?
Official PYQ1995Operating SystemMemory Management and Virtual MemoryMCQ · 1 mark
In a paged segmented scheme of memory management, the segment table itself must have a page table because
Official PYQ1995Computer Organization and ArchitectureMemory Hierarchy: Cache, Main Memory and Secondary StorageMCQ · 1 mark
The principle of locality justifies the use of:
Official PYQ1995AlgorithmsAsymptotic Worst Case Time and Space ComplexityMCQ · 1 mark
In the following Pascal program segment, what is the value of X after the execution of the program segment? X := -10; Y := 20; If X > Y then if X < 0 then X := abs(X) else X := 2*X;
Official PYQ1995Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
In a vectored interrupt:
Official PYQ1995AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Merge sort uses:
Official PYQ1995Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
Which of the following statements is true?
Official PYQ1995Engineering MathematicsProbability: Random Variables and DistributionsMCQ · 1 mark
The probability that a number selected at random between 100100 and 999999 (both inclusive) will not contain the digit 77 is:
Official PYQ1994Compiler DesignLexical AnalysisNAT · 1 mark
State whether the following statements are True or False with reasons for your answer A symbol declared as ‘external’ in an assembly language program is assigned an address outside the program by the assembler itself.
Official PYQ1994Programming and Data StructuresRecursionNAT · 1 mark
Consider the following recursive function: function fib (n:integer);integer; begin if (n=0) or (n=1) then fib := 1 else fib := fib(n-1) + fib(n-2) end; The above function is run on a computer with a stack of 6464 bytes. Assuming that only return address and parameter are passed on the stack, and that an integer value and an address takes 22 bytes each, …