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 following expression grammar : Which of the following grammars is not left recursive, but is equivalent to ?
For any discrete random variable , with probability mass function , and , define the polynomial function . For a certain discrete random variable , there exists a scalar such that …
In a two-level cache system, the access times of and caches are and clock cycles, respectively. The miss penalty from the cache to main memory is clock cycles. The miss rate of cache is twice that of . The average memory access time (AMAT) of this cache system is cycles. The miss rates of …
Given ; where represents the 'don't-care' condition in Karnaugh maps. Which of the following is a minimum product-of-sums (POS) form of ?
and are considering to apply for a job. The probability that applies for the job is the probability that applies for the job given that applies for the job is and the probability that applies for the job given that applies for the job is Then the probability that …
Let and be two matrices. Then the rank of is ___________ .
Which of the following statements about parser is/are CORRECT? is more powerful than is more powerful than is more powerful than
Consider the following statements about the routing protocols. Routing Information Protocol (RIP) and Open Shortest Path First (OSPF) in an network. RIP uses distance vector routing RIP packets are sent using UDP OSPF packets are sent using TCP OSPF operation is based on link-state routing Which of the above statements are CORRECT?
The representation of the value of a unsigned integer in hexadecimal number system is . The representation of the value of in octal number system is
Consider the following C program. #include<stdio.h> #include<string.h> int main() { char* c="GATECSIT2017"; char* p=c; printf("%d", (int)strlen(c+2[p]-6[p]-1)); return 0; } The output of the program is _______
Consider the following C function int fun(int n) { int i, j; for(i=1; i<=n; i++) { for (j=1; j<n; j+=i) { printf("%d %d", i, j); } } } Time complexity of in terms of notation is
Consider the following C program. #include<stdio.h> int main () { int m=10; int n, n1; n=++m; n1=m++; n--; --n1; n-=n1; printf(“%d”, n); return 0; } The output of the program is ______
Consider the set under partial ordering The Hasse diagram of the partial order is shown below. The minimum number of ordered pairs that need to be added to to make a lattice is ______
If and , then the constants and are
A circular queue has been implemented using a singly linked list where each node consists of a value and a single pointer pointing to the next node. We maintain exactly two external pointers FRONT and REAR pointing to the front node and the rear node of the queue, respectively. Which of the following statements is/are CORRECT for such a circular queue, so …
Consider the following function implemented in C: void printxy(int x, int y) { int *ptr; x=0; ptr=&x; y=*ptr; *ptr=1; printf(“%d, %d”, x, y); } The output of invoking is:
Identify the language generated by the following grammar, where is the start variable.
Which of the following is/are shared by all the threads in a process? Program counter Stack Address space Registers
Consider the following tables and …
Consider socket API on a Linux machine that supports connected UDP sockets. A connected UDP socket is a UDP socket on which connect function has already been called. Which of the following statements is/are CORRECT? A connected UDP socket can be used to communicate with multiple peers simultaneously. A process can successfully call connect function again for …
