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
In an latch made by cross-coupling two NAND gates, if both and inputs are set to , then it will result in
A Boolean function is equivalent to
Which of the following is NOT true with respect to a transparent bridge and a router?
Choose the best matching between and …
Consider the following relation schema pertaining to a students database: Students (rollno, name, address) Enroll (rollno, courseno, coursename) where the primary keys are shown underlined. The number of tuples in the student and Enroll tables are and respectively. What are the maximum and minimum number of tuples that can be present in …
Consider an operating system capable of loading and executing a single sequential user process at a time. The disk head scheduling algorithm used is First Come First Served (FCFS). If FCFS is replaced by Shortest Seek Time First (SSTF), claimed by the vendor to give better benchmark results, what is the expected improvement in the I/O performance …
Consider the following statements with respect to user-level threads and kernel-supported threads context switch is faster with kernel-supported threads for user-level threads, a system call can block the entire process Kernel supported threads can be scheduled independently User level threads are transparent to the kernel Which of the above statements are …
Let and be two relation schema, where the primary keys are shown underlined, and let C be a foreign key in referring to . Suppose there is no violation of the above referential integrity constraint in the corresponding relation instances and . Which …
Consider a program that consists of two source modules and contained in two different files. If contains a reference to a function defined in the reference will be resolved at
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 …
A processor uses page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are both bits wide. The memory is byte addressable. For virtual to physical address translation, the most significant bits of the virtual address are used as index …
Consider the following assembly language program for a hypothetical processor and are bit registers. The meanings of various instructions are shown as comments. MOV B, #0 ; MOV C, #8 ; Z: CMP C, #0 ; compare C with 0 JZ X ; jump to X if zero flag is set SUB C, #1 ; RRC A, #1 ; right …
