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
A language with string manipulation facilities uses the following operations head(s): first character of a string tail(s): all but exclude the first character of a string concat(s1, s2): s1s2 For the string "" what will be the output of concat(head(s), head(tail(tail(s))))
The address sequence generated by tracing a particular program executing in a pure demand based paging system with records per page with free main memory frame is recorded as follows. What is the number of page faults?
The sequence __________ is an optimal non-preemptive scheduling sequence for the following jobs which leaves the CPU idle for ________ unit(s) of time. …
What values of and satisfy the following simultaneous Boolean equations?
What is the value of printed by the following program? program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 FIND(X); writeln(X); end.
Assume that and are non-zero positive integers. What does the following Pascal program segment do? while X <> Y do if X > Y then X := X - Y else Y := Y - X; write(X);
The capacity of a memory unit is defined by the number of words multiplied by the number of bits/word. How many separate address and data lines are needed for a memory of ?
The minimum number of edges in a connected cyclic graph on vertices is:
The rank of the following matrix, where is a real number is …
In the interval the equation has
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?
