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 operators and defined by , for positive integers. Which of the following statements is/are TRUE?
Consider two set-associative cache memory architectures: , which uses the write back policy, and , which uses the write through policy. Both of them use the (Least Recently Used) block replacement policy. The cache memory is connected to the main memory. Which of the following statements is/are TRUE?
Consider a GB hard disk with storage surfaces. There are sectors per track and each sector holds bytes of data. The number of cylinders in the hard disk is _________.
Consider the following code snippet using the fork () and wait () system calls. Assume that the code compiles and runs correctly, and that the system calls run successfully without any errors. int x=3; while (x>0){ fork (); printf("hello"); wait (NULL) ; X-- ; } The total number of times the printf statement is executed is __________.
A given program has load/store instructions. Suppose the ideal (cycles per instruction) without any memory stalls is . The program exhibits miss rate on instruction cache and miss rate on data cache. The miss penalty is cycles. The speedup (rounded off to two decimal places) achieved with a perfect …
The baseline execution time of a program on a single core machine is nanoseconds ( . The code corresponding to of the execution time can be fully parallelized. The overhead for using an additional core is when running on a multicore system. Assume that all cores in the multicore system run their share …
Let be a context-free grammar in Chomsky Normal Form with and containing variable symbols including the start symbol . The string is derivable from . The number of steps (application of rules) in the derivation is __________.
Consider the entries shown below in the forwarding table of an router. Each entry consists of an prefix and the corresponding next hop router for packets whose destination address matches the prefix. The notation " / " in a prefix indicates a subnet mask with the most significant bits set …
The number of edges present in the forest generated by the traversal of an undirected graph with vertices is . The number of connected components in is __________.
Consider the following two regular expressions over the alphabet : The total number of strings of length less than or equal to , which are neither in nor in , is ________.
Consider a memory management system that uses a page size of . Assume that both the physical and virtual addresses start from . Assume that the pages , and are stored in the page frames , and , respectively. The physical address (in decimal format) corresponding to the virtual address (in decimal …
A bag contains red balls and blue balls. Two balls are drawn randomly without replacement. Given that the first ball drawn is red, the probability (rounded off to decimal places) that both balls drawn are red is ___________.
Consider a digital logic circuit consisting of three -to- multiplexers , and as shown below. and are inputs of . and are inputs of . , and are select lines of , and , …
Consider sending an datagram of size bytes (including bytes of header) from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an (Maximum Transmission Unit) size of bytes, while the second link (router to receiver) has an …
If ' ' denotes increasing order of intensity, then the meaning of the words [dry arid parched] is analogous to [diet fast ________ ]. Which one of the given options is appropriate to fill the blank?
If two distinct non-zero real variables and are such that is proportional to then the value of
Consider the following sample of numbers: The median of the sample is
The number of coins of ₹, ₹, and ₹ denominations that a person has are in the ratio . Of the total amount, the percentage of money in ₹ coins is
For positive non-zero real variables and , if then, the value of is
In the given text, the blanks are numbered . Select the best match for all the blanks. Steve was advised to keep his head (i) before heading (ii) to bat; for, while he had a head (iii) batting, he could only do so with a cool head iv his shoulders.
