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
Let be an undirected graph. Consider a depth-first traversal of , and let be the resulting depth-first search tree. Let be a vertex in and let be the first new (unvisited) vertex visited after visiting in the traversal. Which of the following statement is always true?
In SQL, relations can contain null values, and comparisons with null values are treated as unknown. Suppose all comparisons with a null value are treated as false. Which of the following pairs is not equivalent?
Given relations r(w, x) and s(y, z) the result of select distinct w, x from r, s is guaranteed to be same as r, provided.
Given the following relation instance. Which of the following functional dependencies are …
Which of the following is not a valid deadlock prevention scheme?
Suppose the time to service a page fault is on the average milliseconds, while a memory access takes microsecond. Then a hit ratio results in average memory access time of
Given the following expression grammar: Which of the following is true?
The value of at the end of the execution of the following C program: int incr (int i) { static int count = 0; count = count + i; return (count); } main () { int i, j; for (i = 0; i <= 4; i++) j = incr (i); } is:
Let be an undirected connected graph with distinct edge weights. Let be the edge with maximum weight and the edge with minimum weight. Which of the following statements is false?
Consider the following functions Which of the following is true?
Let LASTPOST, LASTIN and LASTPRE denote the last vertex visited `in a postorder, inorder and preorder traversal respectively, of a complete binary tree. Which of the following is always true?
Suppose you are given an array and a procedure reverse which reverses the order of elements in between positions and (both inclusive). What does the following sequence do, where : reverse (s, 1, k); reverse (s, k+1, n); reverse (s, 1, n);
Consider the values of and the sequence X:= A + B Y:= A + C X:= X + C Y:= Y + B executed on a computer where floating point numbers are represented with bits. The values for and will be
A graphics card has on board memory of MB. Which of the following modes can the card not support?
The following arrangement of master-slave flip flops has the initial state of as (respectively). After three clock cycles the output state is (respectively),
Which functions does NOT implement the Karnaugh map given below?
The simultaneous equations on the Boolean variables and , have the following solution for and respectively:
Consider the following decision problems: Does a given finite state machine accept a given string? Does a given context free grammar generate an infinite number of strings? Which of the following statements is true?
Let be propositions. Assume that the equivalence and hold. Then the truth-value of the formula is always
What can be said about a regular language over whose minimal finite state automaton has two states?
