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.

18 on this page
Official PYQ1987Compiler DesignRuntime EnvironmentsMCQ · 1 mark
For the program given below what will be printed by the write statements marked (1)(1) and (2)(2) in the program if the variables are dynamically scoped? Var x, y:interger; procedure P(n:interger); begin x := (n+2)/(n-3); end; procedure Q Var x, y:interger; begin x:=3; y:=4; P(y); Write(x); __(1) end; begin x:=7; y:=8; Q; Write(x); __(2) end.
Official PYQ1987Compiler DesignRuntime EnvironmentsMCQ · 1 mark
Study the following program written in a block-structured language: Var x, y:interger; procedure P(n:interger); begin x:=(n+2)/(n-3); end; procedure Q Var x, y:interger; begin x:=3; y:=4; P(y); Write(x) __(1) end; begin x:=7; y:=8; Q; Write(x); __(2) end. What will be printed by the write statements marked (1)(1) and (2)(2) in the program if the variables …
Official PYQ1987Operating SystemConcurrency and SynchronizationMCQ · 1 mark
A critical region is
Official PYQ1987AlgorithmsSearching, Sorting, HashingMCQ · 1 mark
Let PP be a quicksort program to sort numbers in ascending order. Let t1t_{1} and t2t_{2} be the time taken by the program for the inputs [1 2 3 4]\left[1 \ 2 \ 3 \ 4\right] and [5 4 3 2 1]\left[5 \ 4 \ 3 \ 2 \ 1\right], respectively. Which of the following holds?
Official PYQ1987Programming and Data StructuresLinked ListsMCQ · 1 mark
In a circular linked list organization, insertion of a record involves modification of
Official PYQ1987Compiler DesignLexical AnalysisMCQ · 1 mark
Using longer identifiers in a program will necessarily lead to:
Official PYQ1987Compiler DesignParsing (LL, LR)MCQ · 1 mark
An operator precedence parser is a
Official PYQ1987Compiler DesignParsing (LL, LR)MCQ · 1 mark
A context-free grammar is ambiguous if:
Official PYQ1987Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
FORTRAN is a:
Official PYQ1987Compiler DesignLexical AnalysisMCQ · 1 mark
In a compiler the module that checks every character of the source text is called:
Official PYQ1987Computer Peripherals (Historical)MCQ · 1 mark
The data transfer rate of a double-density floppy disk system is about:
Official PYQ1987Digital LogicNumber Representations (Fixed and Floating Point)MCQ · 1 mark
The exponent of a floating-point number is represented in excess-N\text{N} code so that:
Official PYQ1987Computer Organization and ArchitectureI/O Interface: Interrupt and DMA ModeMCQ · 1 mark
On receiving an interrupt from a I/O device the CPU:
Official PYQ1987Computer Organization and ArchitectureALU, Data-path and Control UnitMCQ · 1 mark
A microprogrammed control unit
Official PYQ1987Computer Organization and ArchitectureMachine Instructions and Addressing ModesMCQ · 1 mark
The most relevant addressing mode to write position-independent codes is:
Official PYQ1987Digital LogicCombinational CircuitsMCQ · 1 mark
The output FF of the below multiplexer circuit can be represented by
Official PYQ1987Digital LogicBoolean AlgebraMCQ · 1 mark
The total number of Boolean functions which can be realised with four variables is:
Official PYQ1987Digital LogicSequential CircuitsMCQ · 1 mark
The above circuit produces the output sequence: