All subjects · 2 December 2026
GATE CS 2027 | 25-30 Questions Daily - 02-12-2026
GATE CS 2027 | 25-30 Questions Daily - 02-12-2026 - www.gateiit.in
25 questions · PDF 113 KB · practise free, log in to save answers and take the timed exam · GATE CSE syllabus
Engineering Mathematics
Question 1NAT · 1 mark
A sequence is defined by an = 4 an−1 − 4 an−2 + 2n for n ≥ 2, with a0 = 1 and a1 = 3. Find the exact value of a6. (Give your answer as an integer.) Answer: ____________
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 2MSQ · 1 marklinear-algebra
Let A be a real 5 × 5 matrix satisfying A3 − 3A2 + 3A − I = O and rank(A − I) = 2, where I is the identity matrix and O is the zero matrix. Which of the following statements are necessarily TRUE?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 3MCQ · 1 markprobability-and-statistics
A machine has three components C1, C2 and C3, whose probabilities of being defective are 0.1, 0.2 and 0.3 respectively. Exactly one component is selected uniformly at random, and two independent tests T1 and T2 are performed on the selected component. If the selected component is defective, each test is positive with probability 0.8. If it is not defective, each test is positive with probability 0.1. The two tests are conditionally independent given the defect status of the component. If both tests are positive, what is the probability that the selected component is defective?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Digital Logic
Question 4HardMCQ · 1 mark
A Boolean function of four variables is specified by F(A, B, C, D) = Σm(0, 2, 5, 7, 8, 10, 13), with the don’t-care set d(A, B, C, D) = Σm(1, 9, 15). A prime (′) denotes the complement. Which of the following is a valid sum-of-products (SOP) expression for F that has the minimum number of literals?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 5AIR 1 ChallengeMCQ · 1 mark
A synchronous sequential circuit has two D flip-flops with state variables Q1 and Q0. The next-state equations are: D1 = Q1 XOR Q0 D0 = Q1′ The initial state (Q1 Q0) is 01, and the output is Z = Q1 XNOR Q0. What is the minimum number of clock cycles required for the circuit to return to its initial state, and how many times does Z = 1 occur in the states of one complete state cycle?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Computer Organization and Architecture
Question 6no optionsNAT · 1 markprogramming-data-structures-and-algorithms
A microprogrammed control unit has a control memory of 512 words. Each microinstruction contains 24 control bits, 2 condition-selection bits, 1 branch-control bit and 9 next-address bits. The microsequencer supports sequential execution (next address = current address + 1), unconditional branching (the address is taken from the next-address field) and conditional branching (the branch is taken if the selected condition is true, otherwise execution continues sequentially). Find the total number of bits required to store the complete control memory. Answer: ____________
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 7AIR 1 ChallengeMCQ · 1 mark
A processor has a two-level cache hierarchy with the following characteristics: • L1 hit time = 1 ns, L1 hit ratio = 0.90 • L2 hit time = 5 ns, L2 local hit ratio = 0.80 (defined only among L1 misses) • Main memory access time = 50 ns The L2 lookup begins only after an L1 miss, and main memory is accessed only after an L2 miss. All times are serial, with no overlap or additional overhead. What is the average memory access time?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Programming and Data Structures
Question 8HardMCQ · 1 markprogramming-data-structures-and-algorithms
Consider the following C program: What is the output?
#include <stdio.h> int main() { int a[] = {3, 5, 7, 9, 11}; int *p = a + 1; printf("%d ", *p++); printf("%d ", (*p)++); printf("%d ", *++p); printf("%d\n", a[2]); return 0; }Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 9NAT · 1 markprogramming-data-structures-and-algorithms
Consider the following recursive function: Every invocation, including base-case invocations, counts as one function call. Find the total number of function calls made during the execution of F(5). Answer: ____________
int F(int n) { if (n <= 1) return 1; return F(n-1) + F(n-2) + F(n-2); }Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 10MSQ · 1 marklinear-algebra
Let G be a simple undirected graph with adjacency matrix A. The graph has 5 vertices and exactly 4 edges. Which of the following statements are necessarily TRUE?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Algorithms
Question 11NAT · 1 markprogramming-data-structures-and-algorithms
A stack supports PUSH (inserts one element), POP (removes one element) and MULTIPOP(k) (removes k elements, or all elements if fewer than k are present). Each PUSH and each individual element removal costs 1 unit. The stack is initially empty. Consider the following sequence of operations with n = 25: n PUSH operations, then MULTIPOP(n), then n PUSH operations, then MULTIPOP(n). Find the total actual cost of the entire sequence. Answer: ____________
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 12NAT · 1 markprogramming-data-structures-and-algorithms
A binary string of length n is called valid if it contains no two consecutive 1s and it contains an even number of 1s. Let f(n) denote the number of valid binary strings of length n. Find f(10). Answer: ____________
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 13MSQ · 1 markprogramming-data-structures-and-algorithms
Consider a connected, undirected, weighted graph on the vertices A, B, C, D and E with the following edges: Edge Weight AB 1 BC 2 AC 2 BD 3 CD 3 CE 4 DE 4 BE 6 Which of the following statements are necessarily TRUE?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Theory of Computation
Question 14HardMCQ · 1 mark
Let Σ = {0, 1} and let L be the set of strings in which the number of occurrences of the substring 01 is even. Overlapping occurrences are counted separately. What is the minimum number of states required by a complete DFA that recognizes L?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 15MSQ · 1 mark
Let L be a context-free language and R be a regular language over the same alphabet. Which of the following languages are necessarily context-free?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Compiler Design
Question 16HardMCQ · 1 mark
A lexical analyzer uses the following token specifications, listed in priority order: Token Pattern IF if ID [a-z][a-z0-9]* RELOP <= LT < ASSIGN = NUM [0-9]+ The lexer follows the maximal munch rule: at each position it selects the longest matching lexeme, and priority is used only when several rules match the same longest lexeme. White space is skipped. Consider the input: ifx<=10 if=2 Which token sequence is produced?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 17MSQ · 1 mark
Consider the following basic block: All variables are scalar and there are no side effects or exceptions. Dead-code elimination is applied repeatedly, until no further statement can be removed. A statement is removable if its computed value is never used by any statement that remains. Which of the following statements can be removed?
1. a = b + c 2. d = a * 2 3. b = e + f 4. a = d + 1 5. d = b + 3 6. return aLog in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Operating Systems
Question 18MSQ · 1 markprogramming-data-structures-and-algorithms
Two processes P0 and P1 use the following code, where i is the process number (0 or 1) and j = 1 − i: Assume sequential consistency and atomic reads and writes. Which of the following properties are guaranteed?
boolean flag[2] = {false, false}; int turn; Process Pi: while (true) { flag[i] = true; turn = j; while (flag[j] && turn == j) ; /* Critical Section */ flag[i] = false; /* Remainder Section */ }Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 19NAT · 1 mark
A system has three processes P1, P2 and P3 and three single-instance resources R1, R2 and R3. R1 is allocated to P1, R2 to P2 and R3 to P3. P1 requests R2, P2 requests R3 and P3 requests R1. Now the system takes R2 away from P2 and grants it to P1. Is the system deadlocked after this operation? Answer 1 if it is deadlocked, and 0 otherwise. Answer: ____________
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 20NAT · 1 mark
A process generates the following page reference string: 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 The process has 3 page frames, which are initially empty. Using the FIFO page replacement algorithm, calculate the total number of page faults. (A page hit does not change the FIFO order.) Answer: ____________
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Database Management Systems
Question 21HardMCQ · 1 markdatabase-management-and-warehousing
Consider the relations Student(SID, Name), Course(CID, Dept) and Enroll(SID, CID). A student is eligible if the student is enrolled in every course offered by the CSE department. Here π is projection, σ is selection and ÷ is the division operator. Which relational algebra expression correctly retrieves the SID values of all eligible students?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 22MSQ · 1 markdatabase-management-and-warehousing
Consider a relation R(A, B, C, D) with the functional dependencies { A → B, B → C, C → D }. It is decomposed into R1(A, B), R2(B, C) and R3(C, D). Which of the following statements are necessarily TRUE?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 23MSQ · 1 markdatabase-management-and-warehousing
Two transactions T1 and T2 execute the schedule S: W1(X), W2(X), W1(X), where Wi(X) denotes a write of X by transaction Ti. There are no other operations. Which of the following statements are TRUE?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
Computer Networks
Question 24no optionsNAT · 1 mark
A sender uses CRC (Cyclic Redundancy Check) with the generator polynomial G(x) = x4 + x + 1, that is, the bit pattern 10011. The data bits are 1101011011. The sender appends four zeros to the data and performs modulo-2 division by the generator. Find the 4-bit CRC remainder. (Give your answer as a 4-bit binary number.) Answer: ____________
Log in to save your answerCheck answer opens 3 Dec, 12:00 am ISTQuestion 25AIR 1 ChallengeMCQ · 1 mark
A TCP sender has the following state: • Initial sequence number = 1000 • Receiver advertised window = 5000 bytes, measured from the last cumulative acknowledgment number • Last cumulative acknowledgment received = 3000 • Unacknowledged data already transmitted = 2000 bytes There is no congestion window limitation, no data is retransmitted, and the sender has more application data available. What is the maximum number of new bytes that the sender can transmit immediately without violating the receiver’s advertised window?
Log in to save your answerCheck answer opens 3 Dec, 12:00 am IST
More daily sets
- 2026-12-03GATE CS 2027 | 25-30 Questions Daily - 03-12-2026
- 2026-12-01GATE CS 2027 | 25-30 Questions Daily - 01-12-2026
- 2026-11-30GATE CS 2027 | 25-30 Questions Daily - 30-11-2026
- 2026-11-29GATE CS 2027 | 25-30 Questions Daily - 29-11-2026
- 2026-11-28GATE CS 2027 | 25-30 Questions Daily - 28-11-2026
- 2026-11-27GATE CS 2027 | 25-30 Questions Daily - 27-11-2026
- 2026-11-26GATE CS 2027 | 25-30 Questions Daily - 26-11-2026