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
Consider the relational schema given below, where eId of the relation dependent is a foreign key referring to empId of the relation employee. Assume that every employee has at least one associated dependent in the dependent relation. employee (empId, empName, empAge) dependent (depId, eId, depName, depAge) Consider the following relational algebra query: …
Consider the transactions and the schedules given below. …
An router with a of bytes has received an packet of size with an header of length . The values of the relevant fields in the header of the third fragment generated by the router for this packet are:
Every host in an network has a resolution real-time clock with battery backup. Each host needs to generate up to unique identifiers per second. Assume that each host has a globally unique address. Design a globally unique ID for this purpose. After what period (in seconds) …
An IP router implementing Classless Inter-domain Routing (CIDR) receives a packet with address . The router's routing table has the following entries: …
Host A (on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP v4 network B). Assume that no error occurred during the transmission of D. When D reaches B, which of the following IP header field(s) may be different from that of the original datagram D? TTL Checksum Fragment Offset
A bit-stuffing based framing protocol uses an delimiter pattern of If the output bit-string after stuffing is then the input bit-string is:
In the following pairs of OSI protocol layer/sub-layer and its functionality, the INCORRECT pair is
A prime attribute of a relation scheme is an attribute that appears
What is the optimized version of the relation algebra expression , where are sets of attributes in with and are Boolean expressions based on the attributes in ?
A system uses page frames for storing process pages in main memory. It uses the Least Recently Used (LRU) page replacement policy. Assume that all the page frames are initially empty. What is the total number of page faults that will occur while processing the page reference string given below?
In the context of modular software design, which one of the following combinations is desirable?
One of the purposes of using intermediate code in compilers is to
Which of the following statements are CORRECT? Static allocation of all data areas by a compiler makes it impossible to implement recursion. Automatic garbage collection is essential to implement recursion. Dynamic allocation of activation records is essential to implement recursion. Both heap and stack are essential to implement recursion.
Let be a finite non-empty alphabet and let be the power set of . Which one of the following is TRUE?
The length of the shortest string NOT in the language (over of the following regular expression is _______.
You have an array of elements. Suppose you implement quicksort by always choosing the central element of the array as the pivot. Then the tightest upper bound for the worst case performance is
Suppose depth first search is executed on the graph below starting at some unknown vertex. Assume that a recursive call to visit a vertex is made only after first checking that the vertex has not been visited earlier. Then the maximum possible recursion depth (including the initial call) is _________.
Consider the following rooted tree with the vertex labeled as the root: The order in which the nodes are visited during an in-order traversal of the tree is
The minimum number of arithmetic operations required to evaluate the polynomial for a given value of , using only one temporary variable is ______.
