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
The minimum number of comparisons required to find the minimum and the maximum of numbers is ________
Consider a hash table with slots. The hash function is . The collisions are resolved by chaining. The following keys are inserted in the order: . The maximum, minimum, and average chain lengths in the hash table, respectively, are
Suppose a polynomial time algorithm is discovered that correctly computes the largest clique in a given graph. In this scenario, which one of the following represents the correct Venn diagram of the complexity classes P, NP and NP Complete (NPC)?
There are bags labeled to . All the coins in a given bag have the same weight. Some bags have coins of weight gm, others have coins of weight gm. I pick coins respectively from bags to Their total weight comes out to gm. Then the product of the labels of the bags having gm coins is …
Which of the regular expressions given below represent the following DFA?
Let be a language and be its complement. Which one of the following is NOT a viable possibility?
A canonical set of items is given below On input symbol the set has
Assume that there are page frames which are initially empty. If the page reference string is the number of page faults using the optimal replacement policy is__________.
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds. …
An operating system uses the Banker's algorithm for deadlock avoidance when managing the allocation of three resource types and to three processes and The table given below presents the current system state. Here, the Allocation matrix shows the current number of resources of each type allocated to each process and the Max …
Given the following two statements: S1: Every table with two single-valued attributes is in and S2: is a minimal cover for the set of functional dependencies . Which one of the following is CORRECT?
Consider the following four schedules due to three transactions (indicated by the subscript) using read and write on a data item x, denoted by and respectively. Which one of them is conflict serializable?
Consider a selective repeat sliding window protocol that uses a frame size of to send data on a link with a one-way latency of . To achieve a link utilization of , the minimum number of bits required to represent the sequence number field is ________.
Let the size of congestion window of a TCP connection be KB when a timeout occurs. The round trip time of the connection is msec and the maximum segment size used is KB. The time taken (in msec) by the TCP connection to get back to KB congestion window is _________.
Consider a token ring network with a length of 2 km having 10 stations including a monitoring station. The propagation speed of the signal is and the token transmission time is ignored. If each station is allowed to hold the token for , the minimum time for which the monitoring station should wait (in ) before assuming …
Identify the correct order in which the following actions take place in an interaction between a web browser and a web server. The web browser requests a webpage using HTTP. The web browser establishes a TCP connection with the web server. The web server sends the requested webpage using HTTP. The web browser resolves the domain name using DNS.
Which of the following are used to generate a message digest by the network security protocols? RSA SHA- DES MD5
Given the following statements: S1: A foreign key declaration can always be replaced by an equivalent check assertion in SQL. S2: Given the table where and together form the primary key, the following is a valid table definition. CREATE TABLE S ( a INTEGER, d INTEGER, e INTEGER, PRIMARY KEY (d), FOREIGN KEY (a) references R) Which …
Consider the following three statements about link state and distance vector routing protocols, for a large network with network nodes and links. [S1]: The computational overhead in link state protocols is higher than in distance vector protocols. [S2]: A distance vector protocol (with split horizon) avoids persistent routing loops, but not …
Consider the relation scheme and the set of functional dependencies on . What is the key for ?
