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
The number of elements in the power set of the set is:
Let be a symmetric and transitive relation on a set . Then
A binary tree has leaf nodes. The number of nodes of degree in is
For merging two sorted lists of sizes and into a sorted list of size , we require comparisons of
Which scheduling policy is most suitable for a time shared operating system?
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?
What is the distance of the following code , , , , ?
What are and in the following macro definition? macro Add x, y Load y Mul x Store y end macro
Consider a grammar with the following productions The above grammar is:
Which of the following page replacement algorithms suffers from Belady’s anamoly?
In some programming language, an identifier is permitted to be a letter followed by any number of letters or digits. If and denote the sets of letters and digits respectively, which of the following expressions defines an identifier?
In a paged segmented scheme of memory management, the segment table itself must have a page table because
The principle of locality justifies the use of:
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;
In a vectored interrupt:
Merge sort uses:
Which of the following statements is true?
The probability that a number selected at random between and (both inclusive) will not contain the digit is:
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.
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 bytes. Assuming that only return address and parameter are passed on the stack, and that an integer value and an address takes bytes each, …
