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
From the following instance of a relation schema , we can conclude that:
Relation is decomposed using a set of functional dependencies, , and relation is decomposed using another set of functional dependencies, . One decomposition is definitely , the other is definitely , but it is not known which is which. To make a guaranteed identification, which one of the following tests should be …
A - tree index is to be built on the Name attribute of the relation STUDENT. Assume that all the student names are of length bytes, disk blocks are of size bytes, and index pointers are of size bytes. Given the scenario, what would be the best choice of the degree (i.e. number of pointers per node) of the - tree?
In the index allocation scheme of blocks to a file, the maximum possible size of the file depends on
Which combination of the following features will suffice to characterize an OS as a multi-programmed OS? More than one program may be loaded into main memory at the same time for execution If a program waits for certain events such as I/O, another program is immediately scheduled for execution If the execution of a program terminates, another program is …
Dynamic linking can cause security concerns because
To evaluate an expression without any embedded function calls
The C language is:
The binary relation on a set is
Four fair coins are tossed simultaneously. The probability that at least one head and one tail turn up is
The smallest finite automaton which accepts the language length of is divisible by has
Which of the following is true?
The running time of the following algorithm Procedure If return () else return ; is best described by
A weight-balanced tree is a binary tree in which for each node, the number of nodes in the left sub tree is at least half and at most twice the number of nodes in the right sub tree. The maximum possible height (number of nodes on the path from the root to the furthest leaf) of such a tree on n nodes is best described by which of the following?
The number of leaf nodes in a rooted tree of n nodes, with each node having or children is:
Consider the following algorithm for searching for a given number in an unsorted array having distinct values: Choose an at random from If , then Stop else Goto 1; Assuming that is present in , what is the expected number of comparisons made by the algorithm before it terminates?
Consider the following declaration of a two-dimensional array in C: char ; Assuming that the main memory is byte-addressable and that the array is stored starting from memory address , the address of is:
Horizontal microprogramming:
The performance of a pipelined processor suffers if:
The finite state machine described by the following state diagram with as starting state, where an arc label is and stands for -bit input and stands for -bit output
