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.
7 on this page
Consider the following program #include <stdio.h> int foo(int x, int y, int q) { if ((x<=0) && (y<=0)) return q; if (x<=0) return foo(x, y-q, q); if (y<=0) return foo(x-q, y, q); return foo(x, y-q, q) + foo(x-q, y, q); } int main( ) { int r = foo(15, 15, 10); printf(“%d”, r); return 0; } The output of the program …
Let be a set consisting of elements. The number of tuples of the form such that and are subsets of , and is ___________
Consider the following augmented grammar with as the set of terminals. Let …
Consider a Boolean function such that The number of literals in the minimal sum-of-products expression of is _________
Consider a network using the pure medium access control protocol, where each frame is of length bits. The channel transmission rate is Mbps ( bits per second). The aggregate number of transmissions across all the nodes (including new frame transmissions and retransmitted frames due to collisions) is modelled as a …
Consider a pipelined processor with stages, , , , , and . Each stage of the pipeline, except the stage, takes one cycle. Assume that the …
In a directed acyclic graph with a source vertex , the of a directed path is defined to be the product of the weights of the edges on the path. Further, for a vertex other than , the quality-score of is defined to be the maximum among the quality-scores of all the paths from to …
