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
Consider a network with five nodes, to , as shown as below. The network uses a Distance Vector Routing protocol. Once the routes have been stabilized, the distance vectors at different nodes are as follows. N1: N2: N3: N4: N5: Each distance vector …
Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration. If at some instance prior to the occurrence of the clock edge, and have a value , and respectively, what shall be the value of after the clock edge?
Consider the following recursive C function that takes two arguments. unsigned int foo(unsigned int n, unsigned int r) { if (n>0) return ((n%r) + foo(n/r, r)); else return 0; } What is the return value of the function when it is called as ?
The following is the comment written for a C function. /* This function computes the roots of a quadratic equation a.x^2 + b.x + c = 0. The function stores two real roots in *root1 and *root2 and returns the status of validity of roots. It handles four different kinds of cases. (i) When coefficient a is zero irrespective of discriminant (ii) When …
Database table by name is given below. …
A deterministic finite automaton () with alphabet is given below. Which of the following finite state machines is a valid minimal which accepts the same languages as ?
An application loads libraries at startup. Loading each library requires exactly one disk access. The seek time of the disk to a random location is given as ms. Rotational speed of disk is rpm. If all libraries are loaded from random locations on the disk, how long does it take to load all libraries? (The time to transfer data …
An direct-mapped write-back cache is organized as multiple blocks, each size of . The processor generates addresses. The cache controller contains the tag information for each cache block comprising of the following. valid bit modified bit As many bits as the minimum needed to identify the …
Definition of a language with alphabet is given as following.What is the minimum number of states needed in a DFA to recognize ?
Consider the matrix as given below. Which one of the following options provides the CORRECT values of the eigenvalues of the matrix?
Consider an instruction pipeline with four stages each with combinational circuit only. The pipeline registers are required between each stage and at the end of the last stage. Delays for the stages and for the pipeline registers are as given in the figure. What is the approximate speed up of the pipeline in steady state under …
Consider a relational table with sufficient number of records, having attributes and let . Two queries and are given below. where is a constant …
Four Matrices and of dimensions and respectively can be multiplied in several ways with different number of total scalar multiplications. For example when multiplied as , the total number of scalar multiplications is …
Which of the given options provides the increasing order of asymptotic complexity of functions and ?
Consider evaluating the following expression tree on a machine with load-store architecture in which memory can be accessed only through load and store instructions. The variables and are initially stored in memory. The binary operators used in this expression tree can be evaluated by the machine only when operands are in registers. The …
A deck of cards (each carrying a distinct number from to ) is shuffled thoroughly. Two cards are then removed one at a time from the deck. What is the probability that the two cards are selected with the number on the first card being one higher than the number on the second card?
Consider a finite sequence of random values . Let be the mean and be the standard deviation of . Let another finite sequence of equal length be derived from this as , where and are positive constants. Let be the mean and be the standard deviation of …
Consider a database table T containing two columns and each of type . After the creation of the table, one record is inserted in the table. Let and denote the respective maximum values of and among all records in the table at any point in …
We are given a set of distinct elements and an unlabeled binary tree with nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?
Which one of the following options is CORRECT given three positive integers and , and a predicate
