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.
9 on this page
Which of the following grammar rules violate the requirements of an operator grammar? are nonterminals, and are terminals.
Given the following input and the hash function mod , which of the following statements are true? hash to the same value hash to the same value All elements hash to the same value Each element hashes to a different value
Level order traversal of a rooted tree can be done by starting from the root and performing
The best data structure to check whether an arithmetic expression has balanced parentheses is a
The following numbers are inserted into an empty binary search tree in the given order: . What is the height of the binary search tree (the height is the maximum distance of a leaf node from the root)?
A single array is used to implement two stacks. The two stacks grow from opposite ends of the array. Variables and point to the location of the topmost element in each of the stacks. If the space is to be used efficiently, the condition for is
Consider the following function void swap(int a, int b) { int temp; temp = a; a = b; b = temp; } In order to exchange the values of two variables and .
The goal of structured programming is to:
Consider a system with a two-level paging scheme in which a regular memory access takes , and servicing a page fault takes . An average instruction takes nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is %, and the page fault rate is one in every instructions. What is …
