Skip to content

Tag Archives: GATE-GATE-CS-2003

Consider the function f defined below. struct item {     int data;     struct item * next; }; int f(struct item *p) {     return ((p == NULL)… Read More
Consider the C program shown below. #include <stdio.h> #define print(x) printf("%d ", x) int x; void Q(int z) {     z += x;     print(z); } void… Read More
In the following C program fragment, j, k n and TwoLog_n are interger variables, and A is an array of integers. The variable n is… Read More
Consider three data items D1, D2 and D3 and the following execution schedule of transactions T1, T2 and T3. In the diagram, R(D) and W(D)… Read More
Consider the set of relations shown below and the SQL query that follows. Students: (Roll_number, Name, Date_of_birth) Courses: (Course number, Course_name, Instructor) Grades: (Roll_number, Course_number,… Read More
Consider the following functional dependencies in a database: Data_of_Birth → Age Age → Eligibility Name → Roll_number Roll_number → Name Course_number → Course_name Course_number →… Read More
Host A is sending data to host B over a full duplex link. A and B are using the sliding window protocol for flow control.… Read More
A 2 km long broadcast LAN has 107 bps bandwidth and uses CSMA/CD. The signal travels along the wire at 2 × 108 m/s. What… Read More
The subnet mask for a particular network is 255.255.31.0. Which of the following pairs of IP addresses could belong to this network? (A) 172.57.88.62 and… Read More
Suppose we want to synchronize two concurrent processes P and Q using binary semaphores S and T. The code for the processes P and Q… Read More
Suppose we want to synchronize two concurrent processes P and Q using binary semaphores S and T. The code for the processes P and Q… Read More
A processor uses 2-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and… Read More
A processor uses 2-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and… Read More
A uni-processor computer system only has two processes, both of which alternate 10ms CPU bursts with 90ms I/O bursts. Both the processes were created at… Read More
Which of the following is NOT an advantage of using shared, dynamically linked libraries as opposed to using statically linked libraries ? (A) Smaller sizes… Read More