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
For the program given below what will be printed by the write statements marked and 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.
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 and in the program if the variables …
A critical region is
Let be a quicksort program to sort numbers in ascending order. Let and be the time taken by the program for the inputs and , respectively. Which of the following holds?
In a circular linked list organization, insertion of a record involves modification of
Using longer identifiers in a program will necessarily lead to:
An operator precedence parser is a
A context-free grammar is ambiguous if:
FORTRAN is a:
In a compiler the module that checks every character of the source text is called:
The data transfer rate of a double-density floppy disk system is about:
The exponent of a floating-point number is represented in excess- code so that:
On receiving an interrupt from a I/O device the CPU:
A microprogrammed control unit
The most relevant addressing mode to write position-independent codes is:
The output of the below multiplexer circuit can be represented by
The total number of Boolean functions which can be realised with four variables is:
The above circuit produces the output sequence:
