Skip to content
GATEiit

All subjects · 30 November 2026

GATE CS 2027 | 25-30 Questions Daily - 30-11-2026

GATE CS 2027 | 25-30 Questions Daily - 30-11-2026 - www.gateiit.in

25 questions · PDF 124 KB · practise free, log in to save answers and take the timed exam · GATE CSE syllabus

Engineering Mathematics

  1. Question 1MSQ · 1 mark

    Let an denote the number of non-negative integer solutions of x1 + x2 + x3 + x4 = n, subject to: x1 ≤ 2, x2 ≥ 1, and x3 is even. Which of the following statements are TRUE?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 2NAT · 1 marklinear-algebra

    Let M be a real 4 × 4 matrix in which every diagonal entry is 3 and every off-diagonal entry is 1. Find the trace of the inverse of M. (Give your answer correct to three decimal places.) Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  3. Question 3NAT · 1 markprobability-and-statistics

    A random variable X has the probability density function: f(x) = 2x for 0 < x < 1, and f(x) = 0 otherwise. Given X = x, another random variable Y is uniformly distributed over the interval (0, x). Find the conditional expectation E[ Y | Y < X/2 ]. (Give your answer correct to three decimal places.) Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Digital Logic

  1. Question 4no optionsNAT · 1 mark

    A normalized binary floating-point system uses: • 1 sign bit • 4 exponent bits (bias = 7) • 5 fraction bits • IEEE-style normalized representation • No subnormal numbers, infinities or NaN values The number X = (1.10101)2 × 23 is represented in this system. The operation Y = X / 4 is performed. Let fl(Y) denote Y rounded to the nearest representable number, with ties rounded to even. Find the absolute error | Y − fl(Y) | as a decimal value. Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 5MSQ · 1 mark

    A 3-bit synchronous sequential circuit has state variables Q2, Q1 and Q0. A prime (′) denotes the complement. The next-state equations are: Next Q2 = Q1 Q0 + Q2 Q0′ Next Q1 = Q2′ Q0 + Q1 Q0′ Next Q0 = Q1′ Q0′ + Q2 Q1 Assume that all 8 states are valid. Which of the following statements are TRUE?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Computer Organization and Architecture

  1. Question 6MSQ · 1 markprogramming-data-structures-and-algorithms

    A microprogrammed control unit uses a word-addressable control memory of 256 words. Each microinstruction contains only the following fields: 32 control bits, a 2-bit branch control field, a 4-bit condition selection field and a next-address field. The next-address field is used only for conditional or unconditional branching, with these rules: • Sequential execution uses CAR + 1, where CAR is the Control Address Register. • A conditional branch selects either CAR + 1 or the address in the next-address field. • An unconditional branch always loads the address in the next-address field. Which of the following statements are TRUE?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 7no optionsNAT · 1 mark

    A DMA (Direct Memory Access) controller transfers a block of 4096 bytes using cycle stealing, with the following parameters: • CPU clock frequency = 100 MHz • Each DMA transfer steals exactly one bus cycle. • One bus cycle takes 4 CPU clock cycles. • DMA transfers 4 bytes per stolen bus cycle. • Total CPU execution time without DMA = 2 ms Ignore setup overhead and all other delays, and assume that CPU execution is delayed by every stolen bus cycle. Find the percentage increase in CPU execution time due to DMA cycle stealing. (Give your answer correct to three decimal places.) Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Programming and Data Structures

  1. 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, 6, 9, 12, 15, 18};
        int *p = a + 1;
        int *q = a + 5;
        printf("%d ", q[-2]);
        q -= 2;
        printf("%d ", *q);
        printf("%d", (int)(q - p));
        return 0;
    }
    Select one option
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 9no optionsNAT · 1 markprogramming-data-structures-and-algorithms

    Consider the following recursive function: Let T(n) denote the total number of invocations of F, including the initial call F(n). Find the exact value of T(6). Answer: ____________

    int F(int n) {
        if (n <= 1)
            return 1;
        return F(n-1) + F(n-1) + n;
    }
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  3. Question 10MSQ · 1 markartificial-intelligence

    Consider a connected, undirected graph G = (V, E) with distinct vertex labels. Depth-First Search (DFS) is performed using a recursive implementation. Whenever several unvisited adjacent vertices are available, the vertex with the smallest label is visited first. Which of the following statements are necessarily TRUE?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Algorithms

  1. Question 11MSQ · 1 markprogramming-data-structures-and-algorithms

    A hash table uses separate chaining with n keys and m slots. The hash function is deterministic and computable in constant time, the universe of keys is very large, and the input keys may be chosen by an adversary. Which of the following statements are necessarily TRUE?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 12NAT · 1 markprogramming-data-structures-and-algorithms

    You are given the array A = [2, 7, 3, 8, 4, 6]. Find the number of strictly increasing subsequences of length exactly 3. A subsequence need not be contiguous, but the relative order of the elements must be preserved. Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  3. Question 13MSQ · 1 markprogramming-data-structures-and-algorithms

    Consider a directed weighted graph G = (V, E) with source vertex s. All edge weights are non-zero, and some may be negative. The standard Bellman-Ford algorithm is executed from s. Which of the following statements are TRUE?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Theory of Computation

  1. Question 14MSQ · 1 mark

    In the following options, i and j are non-negative integers. Which of the following languages are context-free?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 15HardMCQ · 1 mark

    Let ATM = { ⟨M, w⟩ | Turing machine M accepts input w }. Let B be a language such that ATM is many-one reducible to B by a computable reduction. Which of the following statements is necessarily TRUE?

    Select one option
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Compiler Design

  1. Question 16no optionsNAT · 1 mark

    Consider the following grammar: S → L L → L1 , E | E E → E1 + T | T T → digit The semantic rules are: E → E1 + T E.val = E1.val + T.val E → T E.val = T.val T → digit T.val = digit.lexval L → L1 , E L.count = L1.count + 1 L → E L.count = 1 For the input string 2+3,4+5,6 find the value of L.count × L.sum at the root L. Answer: ____________

    L.sum = L1.sum + E.val
    L.sum = E.val
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 17MSQ · 1 mark

    Consider the following control-flow graph: Assume standard reaching-definitions analysis, and that the condition in B2 does not modify any variable. Which of the following statements are TRUE?

    B1: a = 2; b = 3
                                                            |
    B2: if (a > 0)
                                    / \
                        True False
                            / \
    B3: c = a + b B4: b = a + 1
                            \ /
    B5: d = a + b
    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Operating Systems

  1. Question 18MSQ · 1 mark

    Two processes P1 and P2 execute the following semaphore-based code. Initially, the semaphore S = 1 and the shared variable X = 0. Assume that wait() and signal() are atomic, and that each assignment is executed while holding the semaphore. Which of the following statements are TRUE?

    Process P1: Process P2:
        wait(S); wait(S);
        X = X + 1; X = X + 2;
        signal(S); signal(S);
    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 19no optionsNAT · 1 mark

    A system has three resource types R1, R2 and R3 with total instances (8, 6, 7), and three processes. The current allocation and maximum demand are: Allocation (R1,Maximum (R1, ProcessR2, R3)R2, R3) P1 2, 1, 1 4, 3, 3 P2 1, 2, 1 3, 4, 2 P3 1, 1, 2 3, 2, 4 Considering the currently available resources and the remaining needs, find the number of processes that can each execute to completion immediately. Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  3. Question 20NAT · 1 mark

    A system uses a 32-bit virtual address and two-level paging with the following parameters: • Page size = 4 KB • Each page table entry = 4 bytes • Each page table, including the first-level table, occupies exactly one page. • Second-level page table pages are allocated only when needed. Ignoring any other metadata, find the maximum number of second-level page table pages that can be required by one process. Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Database Management Systems

  1. Question 21MSQ · 1 markdatabase-management-and-warehousing

    Consider the relations Student(SID, Name), Enroll(SID, CID) and Course(CID, Dept) under set semantics. Here π denotes projection and ⋈ denotes natural join. Define: R = πSID (Student) S = πSID (Enroll) T = πSID (Student ⋈ Enroll) Which of the following statements are necessarily TRUE?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 22NAT · 1 markdatabase-management-and-warehousing

    Consider the relation R(A, B, C, D) with the following functional dependencies: F = { A → B, B → C, C → A, C → D } The relation is decomposed into R1(A, B), R2(B, C) and R3(C, D). Find the number of candidate keys of the original relation R. Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  3. Question 23no optionsNAT · 1 markdatabase-management-and-warehousing

    A B+ tree has the following properties: • Each internal node can have at most 5 children. • Each non-root internal node must have at least 3 children. • The root is an internal node and has at least 2 children. • Each leaf can store at most 4 search-key entries. • Each non-root leaf must contain at least 2 entries. • All leaves are at the same depth. The tree has exactly 4 levels, counting the root as level 1. Find the minimum total number of search-key entries that must be present in the leaf nodes. Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

Computer Networks

  1. Question 24MSQ · 1 mark

    Consider a traditional shared-medium Ethernet using CSMA/CD. Let T be the one-way propagation delay between the two farthest stations and L be the frame transmission time. Initially L > 2T. Ignore the jam signal transmission time and the inter-frame gap. Which of the following statements are TRUE?

    Select one or more options
    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST
  2. Question 25NAT · 1 mark

    A TCP sender uses congestion avoidance with additive increase and multiplicative decrease. Initially, the congestion window is 20 MSS and the slow-start threshold is 32 MSS. Assume: • One MSS is acknowledged per acknowledgment. • During congestion avoidance, the congestion window increases by about 1 / (current window) MSS per acknowledgment. • A single packet loss is detected by three duplicate acknowledgments when the congestion window is 40 MSS. • The sender follows the classic TCP Reno fast recovery rule, and no further losses occur. Find the value of (slow-start threshold + congestion window), in MSS, immediately after fast recovery completes. Answer: ____________

    Log in to save your answerCheck answer opens 1 Dec, 12:00 am IST

More daily sets