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 a new instruction named branch-on-bit-set (mnemonic bbs). The instruction “bbs reg, pos, label” jumps to label if bit in position pos of register operand reg is one. A register is -bits wide and the bits are numbered to bit in position being the least significant. Consider the following emulation of this instruction on a …
A CPU has a five-stage pipeline and runs at GHz frequency. Instruction fetch happens in the first stage of the pipeline. A conditional branch instruction computes the target address and evaluates the condition in the third stage of the pipeline. The processor stops fetching new instructions following a conditional branch until the branch outcome is …
A CPU has a cache with block size bytes. The main memory has banks, each bank being bytes wide. Consecutive − byte chunks are mapped on consecutive banks with wrap-around. All the banks can be accessed in parallel, but two accesses to the same bank must be serialized. A cache block access may involve multiple iterations of …
Consider numbers represented in 4-bit Gray code. Let be the Gray code representation of a number and let be the Gray code of value of the number. Which one of the following functions is correct?
We consider the addition of two complement numbers and . A binary adder for adding unsigned binary numbers is used to add the two numbers. The sum is denoted by and the carry-out by . Which one of the following options correctly identifies the overflow …
Consider a Boolean function . Suppose that exactly one of its inputs is allowed to change at a time. If the function happens to be true for two input vectors and , we would like the function to remain true as the input …
Consider the circuit in the diagram. The operator represents Ex-OR. The D flip-flops are initialized to zeroes (cleared). The following data: is supplied to the “data” terminal in nine clock cycles. After that the values of are:
Given two three bit numbers and and the carry in, the function that represents the carry generate function when these two numbers are added is:
Consider the circuit above. Which one of the following options correctly represents
Consider the regular language The minimum number of states in any DFA accepting this languages is:
Let be a regular language, be a deterministic context-free language and a recursively enumerable, but not recursive, language. Which one of the following statements is false?
Consider the following statements about the context free grammar is ambiguous produces all strings with equal number of ’s and ’s can be accepted by a deterministic PDA. Which combination below expresses all the true statements …
Let SHAM be the problem of finding a Hamiltonian cycle in a graph with divisible by and DHAM be the problem of determining if a Hamiltonian cycle exists in such graphs. Which one of the following is true?
For let denote the decimal value of e.g. Let Which one of the following statements is true?
If is a string over then let denote the number of ’s in and the number of ’s in . Which one of the following languages is not regular?
A logical binary relation , is defined as follows: …
Consider the following propositional statements: Which one of the following is true?
Which one of the first order predicate calculus statements given below correctly expresses the following English statement? Tigers and lions attack if they are hungry or threatened.
Let Let be subsets of each of size Define a function from to the set of natural numbers as, is the number of sets that contain the element That is then is:
Given a set of elements and two arbitrary subsets and , how many of the n! permutations from to satisfy , where is the smallest integer in the set of integers , and (S) is the set of integers obtained by applying permutation to each …
