GATE Computer Science & IT 2025 — GATE 2025 · CS · Set 2

CS Set 2 · 65 of 65 questions publicly available

Held on: 2025-02-01

Sections: General Aptitude, Computer Science & IT

Subject marks
Subject1 mark questions2 mark questionsTotal marks
General Aptitude5515
Computer Science253085

Question 11 · 1 mark Q6322

If A=(122−1)A = \begin{pmatrix} 1 & 2 \\ 2 & -1 \end{pmatrix} ,then which ONE of the following is A8A^8 ?

  1. A.

    (250025)\begin{pmatrix} 25 & 0 \\ 0 & 25 \end{pmatrix}

  2. B.

    (12500125)\begin{pmatrix} 125 & 0 \\ 0 & 125 \end{pmatrix}

  3. C.

    (62500625)\begin{pmatrix} 625 & 0 \\ 0 & 625 \end{pmatrix}

  4. D.

    (3125003125)\begin{pmatrix} 3125 & 0 \\ 0 & 3125 \end{pmatrix}

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C

Solutions and video are in the course

Question 12 · 1 mark Q6323

The value of xx such that 𝑥>1𝑥 > 1, satisfying the equation ∫1xtln⁡t dt=14\int_1^x t \ln t \, dt = \frac 1 4 is

  1. A.

    e\sqrt{e}

  2. B.

    ee

  3. C.

    e2e^2

  4. D.

    𝑒−1𝑒 − 1

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 13 · 1 mark Q6324

Consider a binary tree 𝑇 in which every node has either zero or two children. Let 𝑛 > 0 be the number of nodes in 𝑇.

Which ONE of the following is the number of nodes in 𝑇 that have exactly two children?

  1. A.

    n−22\frac{n - 2}{2}

  2. B.

    n−12\frac{n - 1}{2}

  3. C.

    n2\frac{n }{2}

  4. D.

    n+12\frac{n + 1}{2}

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B

Solutions and video are in the course

Question 14 · 1 mark Q6325

Let L, M, and N be non-singular matrices of order 3 satisfying the equations L² = L⁻¹, M = L⁸ and N = L².

Which ONE of the following is the value of the determinant of (M − N)?

  1. A.

    0

  2. B.

    1

  3. C.

    2

  4. D.

    3

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 15 · 1 mark Q6326

Let 𝑃(𝑥)𝑃(𝑥) be an arbitrary predicate over the domain of natural numbers.

Which ONE of the following statements is TRUE?

  1. A.

    (𝑃(0)∧(∀𝑥[𝑃(𝑥)⇒𝑃(𝑥+1)]))⇒(∀𝑥𝑃(𝑥))(𝑃(0) ∧ (∀𝑥 [𝑃(𝑥) ⇒ 𝑃(𝑥 + 1)])) ⇒ (∀𝑥 𝑃(𝑥))

  2. B.

    (𝑃(0)∧(∀𝑥[𝑃(𝑥)⇒𝑃(𝑥−1)]))⇒(∀𝑥𝑃(𝑥))(𝑃(0) ∧ (∀𝑥 [𝑃(𝑥) ⇒ 𝑃(𝑥 − 1)])) ⇒ (∀𝑥 𝑃(𝑥))

  3. C.

    (𝑃(1000)∧(∀𝑥[𝑃(𝑥)⇒𝑃(𝑥−1)]))⇒(∀𝑥𝑃(𝑥))(𝑃(1000) ∧ (∀𝑥 [𝑃(𝑥) ⇒ 𝑃(𝑥 − 1)])) ⇒ (∀𝑥 𝑃(𝑥))

  4. D.

    (𝑃(1000)∧(∀𝑥[𝑃(𝑥)⇒𝑃(𝑥+1)]))⇒(∀𝑥𝑃(𝑥))(𝑃(1000) ∧ (∀𝑥 [𝑃(𝑥) ⇒ 𝑃(𝑥 + 1)])) ⇒ (∀𝑥 𝑃(𝑥))

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 16 · 1 mark Q6327

Consider the following statements:

(i) Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address.

(ii) A single TCP segment from a sender S to a receiver R cannot carry both data from S to R and acknowledgement for a segment from R to S.

Which ONE of the following is CORRECT?

  1. A.

    Both (i) and (ii) are TRUE

  2. B.

    (i) is TRUE and (ii) is FALSE

  3. C.

    (i) is FALSE and (ii) is TRUE

  4. D.

    Both (i) and (ii) are FALSE

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B

Solutions and video are in the course

Question 17 · 1 mark Q6328

Consider the routing protocols given in List I and the names given in List II:

List IList II(i)Distance Vector routing(a)Bellman-Ford(ii)Link state routing(b)Dijkstra\begin{array}{|ll|ll|}\hline & \textbf{List I} & & \textbf{List II} \\\hline \text{(i)} & \text{Distance Vector routing} & \text{(a)}& \text{Bellman-Ford} \\\hline \text{(ii)}& \text{Link state routing} & \text{(b)} & \text{Dijkstra} \\\hline \end{array}

For matching of items in List I with those in List II, which ONE of the following options is CORRECT?

  1. A.

    (i) – (a) and (ii) – (b)

  2. B.

    (i) – (a) and (ii) – (a)

  3. C.

    (i) – (b) and (ii) – (a)

  4. D.

    (i) – (b) and (ii) – (b)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 18 · 1 mark Q6329

A machine receives an IPv4 datagram. The protocol field of the IPv4 header has the protocol number of a protocol X. Which ONE of the following is NOT a possible candidate for X?

  1. A.

    Internet Control Message Protocol (ICMP)

  2. B.

    Internet Group Management Protocol (IGMP)

  3. C.

    Open Shortest Path First (OSPF)

  4. D.

    Routing Information Protocol (RIP)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 19 · 1 mark Q6330

Consider the following C program:

#include <stdio.h>

void stringcopy(char *, char *);

int main() {
    char a[30] = "@#Hello World!";
    stringcopy(a, a + 2);
    printf("%s\n", a);
    return 0;
}

void stringcopy(char *s, char *t) {
    while (*t)
        *s++ = *t++;
}

Which ONE of the following will be the output of the program?

  1. A.

    @#Hello World!

  2. B.

    Hello World!

  3. C.

    ello World!

  4. D.

    Hello World!d!

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 20 · 1 mark Q6331

Consider an unordered list of 𝑁 distinct integers.

What is the minimum number of element comparisons required to find an integer in the list that is NOT the largest in the list?

  1. A.

    1

  2. B.

    𝑁 − 1

  3. C.

    𝑁

  4. D.

    2𝑁 − 1

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 21 · 1 mark Q6332

Consider the following statements about the use of backpatching in a compiler for intermediate code generation:

(I) Backpatching can be used to generate code for Boolean expressions in one pass.

(II) Backpatching can be used to generate code for flow-of-control statements in one pass.

Which ONE of the following options is CORRECT?

  1. A.

    Only (I) is correct.

  2. B.

    Only (II) is correct.

  3. C.

    Both (I) and (II) are correct.

  4. D.

    Neither (I) nor (II) is correct.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C

Solutions and video are in the course

Question 22 · 1 mark Q6333

Given the following syntax directed translation rules:

Rule 1: 𝑅 → 𝐴𝐵 {𝐵. 𝑖 = 𝑅. 𝑖 − 1; 𝐴. 𝑖 = 𝐵. 𝑖; 𝑅. 𝑖 = 𝐴. 𝑖 + 1;}

Rule 2: 𝑃 → 𝐶𝐷 {𝑃. 𝑖 = 𝐶. 𝑖 + 𝐷. 𝑖;𝐷. 𝑖 = 𝐶. 𝑖 + 2;}

Rule 3: 𝑄 → 𝐸𝐹 {𝑄. 𝑖 = 𝐸. 𝑖 + 𝐹. 𝑖;}

Which ONE is the CORRECT option among the following?

  1. A.

    Rule 1 is S-attributed and L-attributed; Rule 2 is S-attributed and not L-attributed; Rule 3 is neither S-attributed nor L-attributed

  2. B.

    Rule 1 is neither S-attributed nor L-attributed; Rule 2 is S-attributed and L-attributed; Rule 3 is S-attributed and L-attributed

  3. C.

    Rule 1 is neither S-attributed nor L-attributed; Rule 2 is not S-attributed and is L-attributed; Rule 3 is S-attributed and L-attributed

  4. D.

    Rule 1 is S-attributed and not L-attributed; Rule 2 is not S-attributed and is L-attributed; Rule 3 is S-attributed and L-attributed

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C

Solutions and video are in the course

Question 23 · 1 mark Q6334

Consider a network that uses Ethernet and IPv4. Assume that IPv4 headers do not use any options field. Each Ethernet frame can carry a maximum of 1500 bytes in its data field. A UDP segment is transmitted. The payload (data) in the UDP segment is 7488 bytes.

Which ONE of the following choices has the CORRECT total number of fragments transmitted and the size of the last fragment including IPv4 header?

  1. A.

    5 fragments, 1488 bytes

  2. B.

    6 fragments, 88 bytes

  3. C.

    6 fragments, 108 bytes

  4. D.

    6 fragments, 116 bytes

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 24 · 1 mark Q6335

Which ONE of the following languages is accepted by a deterministic pushdown automaton?

  1. A.

    Any regular language.

  2. B.

    Any context-free language.

  3. C.

    Any language accepted by a non-deterministic pushdown automaton.

  4. D.

    Any decidable language.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 25 · 1 mark Q6336

Let 𝐺1,𝐺2𝐺_1, 𝐺_2 be Context Free Grammars (CFGs) and 𝑅𝑅 be a regular expression. For a grammar GG, let 𝐿(𝐺)𝐿(𝐺) denote the language generated by GG.

Which ONE among the following questions is decidable?

  1. A.

    Is𝐿(𝐺1)=𝐿(𝐺2)?Is 𝐿(𝐺_1) = 𝐿(𝐺_2)?

  2. B.

    Is𝐿(𝐺1)∩𝐿(𝐺2)=∅?Is 𝐿(𝐺_1) ∩ 𝐿(𝐺_2) = ∅?

  3. C.

    Is𝐿(𝐺1)=𝐿(𝑅)?Is 𝐿(𝐺_1) = 𝐿(𝑅)?

  4. D.

    Is𝐿(𝐺1)=∅?Is 𝐿(𝐺_1) = ∅?

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 26 · 1 mark Q1896

Processes 𝑃1, 𝑃2, 𝑃3, 𝑃4 arrive in that order at times 0, 1, 2, and 8 milliseconds respectively, and have execution times of 10, 13, 6, and 9 milliseconds respectively. Shortest Remaining Time First (SRTF) algorithm is used as the CPU scheduling policy. Ignore context switching times. 

Which ONE of the following correctly gives the average turnaround time of the four processes in milliseconds?

  1. A.

    22

  2. B.

    15

  3. C.

    37

  4. D.

    19

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 27 · 1 mark Q6338

An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account 𝐴 attempted simultaneous transfers of Rs. 10000 each from account 𝐴 to account 𝐵. Both transactions read the same value, Rs. 11000, as the initial balance in 𝐴 and were allowed to go through. 𝐵 was credited Rs. 10000 twice. 𝐴 was debited only once and ended up with a balance of Rs. 1000.

Which of the following properties is/are certain to have been violated by the system?

  1. A.

    Atomicity

  2. B.

    Consistency

  3. C.

    Isolation

  4. D.

    Durability

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B, C

Solutions and video are in the course

Question 28 · 1 mark Q6339

Which of the following is/are part of an Instruction Set Architecture of a processor?

  1. A.

    The size of the cache memory

  2. B.

    The clock frequency of the processor

  3. C.

    The number of cache memory levels

  4. D.

    The total number of registers

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 29 · 1 mark Q6340

Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph G is/are TRUE?

  1. A.

    A DFS tree of 𝐺 is a Shortest Path tree of 𝐺.

  2. B.

    Every non-tree edge of G with respect to a DFS tree is a forward/back edge.

  3. C.

    If (𝑢, 𝑣) is a non-tree edge of G with respect to a BFS tree, then the distances from the source vertex 𝑠 to 𝑢 and 𝑣 in the BFS tree are within ±1 of each other.

  4. D.

    Both BFS and DFS can be used to find the connected components of G.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B, C, D

Solutions and video are in the course

Question 30 · 1 mark Q6341

Consider the two lists List I and List II given below:

List IList II(i) Context-free languages(a) Closed under union(ii) Recursive languages(b) Not closed under complementation(iii) Regular languages(c) Closed under intersection\begin{array}{|l|l|}\hline \textbf{List I} & \textbf{List II} \\ \hline \text{(i) Context-free languages} & \text{(a) Closed under union} \\ \hline \text{(ii) Recursive languages} & \text{(b) Not closed under complementation} \\ \hline \text{(iii) Regular languages} & \text{(c) Closed under intersection} \\ \hline \end{array}

For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?

  1. A.

    (i) – (a), (ii) – (b), and (iii) – (c)

  2. B.

    (i) – (b), (ii) – (a), and (iii) – (c)

  3. C.

    (i) – (b), (ii) – (c), and (iii) – (a)

  4. D.

    (i) – (a), (ii) – (c), and (iii) – (b)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B, C

Solutions and video are in the course

Question 31 · 1 mark Q6342

Consider the following logic circuit diagram.

Which is/are the CORRECT option(s) for the output function 𝐹?

  1. A.

    XY‾\overline{X Y}

  2. B.

    X‾+Y‾+XY‾\overline{X}+\overline{Y}+X \overline{Y}

  3. C.

    XY‾+X‾+XY‾\overline{XY}+\overline{X}+X \overline{Y}

  4. D.

    X+Y‾X+\overline{Y}

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A, B, C

Solutions and video are in the course

Question 32 · 1 mark Q6343

The following two signed 2’s complement numbers (multiplicand M and multiplier Q) are being multiplied using Booth’s algorithm:

M: 1100 1101 1110 1101 and Q: 1010 0100 1010 1010

The total number of addition and subtraction operations to be performed is ___________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 13

Solutions and video are in the course

Question 33 · 1 mark Q6344

int x = 126, y = 105;

do {
    if (x > y)     x = x - y;
    else     y = y - x;
} while (x != y);

printf("%d", x);

The output of the given C code segment is ________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 21

Solutions and video are in the course

Question 34 · 1 mark Q6345

In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64 microseconds, then the frequency of the ripple counter in kHz is ________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 250 kHz

Solutions and video are in the course

Question 35 · 1 mark Q6346

Suppose the values 10, −4, 15, 30, 20, 5, 60, 19 are inserted in that order into an initially empty binary search tree. Let 𝑇 be the resulting binary search tree. The number of edges in the path from the node containing 19 to the root node of 𝑇 is ___________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 4 edges

Solutions and video are in the course

Question 36 · 2 marks Q6347

Suppose we are transmitting frames between two nodes using Stop-and-Wait protocol. The frame size is 3000 bits. The transmission rate of the channel is 2000 bps (bits/second) and the propagation delay between the two nodes is 100 milliseconds. Assume that the processing times at the source and destination are negligible. Also, assume that the size of the acknowledgement packet is negligible. Which ONE of the following most accurately gives the channel utilization for the above scenario in percentage?

  1. A.

    88.23

  2. B.

    93.75

  3. C.

    85.44

  4. D.

    66.67

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 37 · 2 marks Q6348

Let 𝐺 be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant 𝛼 is added to the weight of every edge.

Which ONE of the following statements is TRUE about the minimum spanning trees (MSTs) and shortest paths (SPs) in 𝐺 before and after the edge weight update?

  1. A.

    Every MST remains an MST, and every SP remains an SP.

  2. B.

    MSTs need not remain MSTs, and every SP remains an SP.

  3. C.

    Every MST remains an MST, and SPs need not remain SPs.

  4. D.

    MSTs need not remain MSTs, and SPs need not remain SPs.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C

Solutions and video are in the course

Question 38 · 2 marks Q6349

A meld operation on two instances of a data structure combines them into one single instance of the same data structure. Consider the following data structures:

P: Unsorted doubly linked list with pointers to the head node and tail node of the list.

Q: Min-heap implemented using an array.

R: Binary Search Tree.

Which ONE of the following options gives the worst-case time complexities for meld operation on instances of size 𝑛 of these data structures?

  1. A.

    P: Θ(1), Q: Θ(𝑛), R: Θ(𝑛)

  2. B.

    P: Θ(1), Q: Θ(𝑛 log 𝑛), R: Θ(𝑛)

  3. C.

    P: Θ(𝑛), Q: Θ(𝑛 log 𝑛), R: Θ(𝑛2)

  4. D.

    P: Θ(1), Q: Θ(𝑛), R: Θ(𝑛 log 𝑛)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 39 · 2 marks Q6350

For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to index into a cache block. The size of each cache block is one byte. Assume that there is no other information stored for each cache block.

Which ONE of the following is the CORRECT option for the sizes of the main memory and the cache memory in this system (byte addressable), respectively?

  1. A.

    64 KB and 4 KB

  2. B.

    128 KB and 16 KB

  3. C.

    64 KB and 8 KB

  4. D.

    128 KB and 6 KB

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 40 · 2 marks Q6351

Given a Context-Free Grammar 𝐺 as follows:

𝑆 → 𝐴𝑎 | 𝑏𝐴𝑐 | 𝑑𝑐 | 𝑏𝑑𝑎

𝐴 → 𝑑

Which ONE of the following statements is TRUE?

  1. A.

    𝐺 is neither LALR(1) nor SLR(1)

  2. B.

    𝐺 is CLR(1), not LALR(1)

  3. C.

    𝐺 is LALR(1), not SLR(1)

  4. D.

    𝐺 is LALR(1), also SLR(1)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C

Solutions and video are in the course

Question 41 · 2 marks Q6352

An array 𝐴 of length 𝑛 with distinct elements is said to be bitonic if there is an index 1 ≤ 𝑖 ≤ 𝑛 such that 𝐴[1. . 𝑖] is sorted in the non-decreasing order and 𝐴[𝑖 + 1 . . 𝑛] is sorted in the non-increasing order.

Which ONE of the following represents the best possible asymptotic bound for the worst-case number of comparisons by an algorithm that searches for an element in a bitonic array 𝐴?

  1. A.

    Θ(𝑛)

  2. B.

    Θ(1)

  3. C.

    Θ(log2𝑛)

  4. D.

    Θ(log 𝑛)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 42 · 2 marks Q6353

Let ℱ be the set of all functions from {1, … , 𝑛} to {0,1}. Define the binary relation ≼ on ℱ as follows:

∀𝑓, 𝑔 ∈ ℱ, 𝑓 ≼ 𝑔 if and only if ∀𝑥 ∈ {1, … , 𝑛}, 𝑓(𝑥) ≤ 𝑔(𝑥), where 0 ≤ 1.

Which of the following statement(s) is/are TRUE?

  1. A.

    ≼ is a symmetric relation

  2. B.

    (ℱ, ≼ ) is a partial order

  3. C.

    (ℱ, ≼ ) is a lattice

  4. D.

    ≼ is an equivalence relation

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B, C

Solutions and video are in the course

Question 43 · 2 marks Q6354

Given the following Karnaugh Map for a Boolean function 𝐹(𝑤, 𝑥, 𝑦, 𝑧):

Which one or more of the following Boolean expression(s) represent(s) 𝐹?

  1. A.

    wˉxˉyˉzˉ+wxˉyˉzˉ+wˉxˉyzˉ+wxˉyzˉ+xz\bar{w} \bar{x} \bar{y} \bar{z}+w \bar{x} \bar{y} \bar{z}+\bar{w} \bar{x} y \bar{z}+w \bar{x} y \bar{z}+x z

  2. B.

    wˉxˉyˉzˉ+wˉxˉyzˉ+wxˉyz+xz\bar{w} \bar{x} \bar{y} \bar{z}+\bar{w} \bar{x} y \bar{z}+w \bar{x} y z+x z

  3. C.

    wˉxˉyˉzˉ+wxˉyˉzˉ+wxˉyˉz+xz\bar{w} \bar{x} \bar{y} \bar{z}+w \bar{x} \bar{y} \bar{z}+w \bar{x} \bar{y} z+x z

  4. D.

    xˉzˉ+xz\bar{x} \bar{z}+x z

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A, D

Solutions and video are in the course

Question 44 · 2 marks Q6355

Consider a system of linear equations 𝑃𝑋=𝑄𝑃𝑋 = 𝑄 where 𝑃∈R3×3𝑃 ∈ ℝ^{3×3} and Q∈R3×1Q ∈ ℝ^{3×1} . Suppose PP has an LULU decomposition, 𝑃=𝐿𝑈𝑃 = 𝐿𝑈, where

image.png

Which of the following statement(s) is/are TRUE?

  1. A.

    The system 𝑃𝑋=𝑄𝑃𝑋 = 𝑄 can be solved by first solving 𝐿𝑌=𝑄𝐿𝑌 = 𝑄 and then 𝑈𝑋=𝑌𝑈𝑋 = 𝑌.

  2. B.

    If PP is invertible, then both LL and UU are invertible.

  3. C.

    If PP is singular, then at least one of the diagonal elements of UU is zero.

  4. D.

    If PP is symmetric, then both LL and UU are symmetric.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A, B, C

Solutions and video are in the course

Question 45 · 2 marks Q6356

Consider a stack data structure into which we can PUSH and POP records. Assume that each record pushed in the stack has a positive integer key and that all keys are distinct.

We wish to augment the stack data structure with an 𝑂(1) time MIN operation that returns a pointer to the record with smallest key present in the stack

1) without deleting the corresponding record, and

2) without increasing the complexities of the standard stack operations.

Which one or more of the following approach(es) can achieve it?

  1. A.

    Keep with every record in the stack, a pointer to the record with the smallest key below it.

  2. B.

    Keep a pointer to the record with the smallest key in the stack.

  3. C.

    Keep an auxiliary array in which the key values of the records in the stack are maintained in sorted order.

  4. D.

    Keep a Min-Heap in which the key values of the records in the stack are maintained.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 46 · 2 marks Q6357

Consider the following relational schema along with all the functional dependencies that hold on them.

R1(A,B,C,D,E):𝐷→𝐸,𝐸𝐴→𝐵,𝐸𝐵→𝐶R1(A, B, C, D, E): { 𝐷 → 𝐸, 𝐸𝐴 → 𝐵, 𝐸𝐵 → 𝐶} \\

R2(A,B,C,D):𝐴→𝐷,𝐴→𝐵,𝐶→𝐴R2(A, B, C, D): { 𝐴 → 𝐷, 𝐴 → 𝐵, 𝐶 → 𝐴}

Which of the following statement(s) is/are TRUE?

  1. A.

    R1R1 is in 3NF

  2. B.

    R2R2 is in 3NF

  3. C.

    R1R1 is NOT in 3NF

  4. D.

    R2R2 is NOT in 3NF

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C, D

Solutions and video are in the course

Question 47 · 2 marks Q102584

Consider a demand paging system with three frames, and the following page reference string: 1 2 3 4 5 4 1 6 4 5 1 3 2. The contents of the frames are as follows initially and after each reference (from left to right):

The *-marked references cause page replacements. 

Which one or more of the following could be the page replacement policy/policies in use?

  1. A.

    Least Recently Used page replacement policy

  2. B.

    Least Frequently Used page replacement policy

  3. C.

    Most Frequently Used page replacement policy

  4. D.

    Optimal page replacement policy

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 48 · 2 marks Q6359

𝑃={𝑃1,𝑃2,𝑃3,𝑃4}𝑃 = \{𝑃_1, 𝑃_2, 𝑃_3, 𝑃_4\} consists of all active processes in an operating system. 𝑅={𝑅1,𝑅2,𝑅3,𝑅4}𝑅 = \{𝑅_1, 𝑅_2, 𝑅_3, 𝑅_4\} consists of single instances of distinct types of resources in the system.

The resource allocation graph has the following assignment and claim edges.

Assignment edges: 𝑅1→𝑃1,𝑅2→𝑃2,𝑅3→𝑃3,𝑅4→𝑃4𝑅_1 → 𝑃_1, 𝑅_2 → 𝑃_2, 𝑅_3 → 𝑃_3, 𝑅_4 → 𝑃_4 (the assignment edge 𝑅1→𝑃1𝑅_1 → 𝑃_1 means resource 𝑅1𝑅_1 is assigned to process 𝑃1𝑃_1 , and so on for others)

Claim edges: 𝑃1→𝑅2,𝑃2→𝑅3,𝑃3→𝑅1,𝑃2→𝑅4,𝑃4→𝑅2𝑃_1 → 𝑅_2, 𝑃_2 → 𝑅_3, 𝑃_3 → 𝑅_1, 𝑃_2 → 𝑅_4, 𝑃_4 → 𝑅_2 (the claim edge 𝑃1→𝑅2𝑃_1 → 𝑅_2 means process 𝑃1𝑃_1 is waiting for resource 𝑅2𝑅_2 , and so on for others)

Which of the following statement(s) is/are CORRECT?

  1. A.

    Aborting P1P_1 makes the system deadlock free.

  2. B.

    Aborting P3P_3 makes the system deadlock free.

  3. C.

    Aborting P2P_2 makes the system deadlock free.

  4. D.

    Aborting P1P_1 and 𝑃4𝑃_4 makes the system deadlock free.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C, D

Solutions and video are in the course

Question 49 · 2 marks Q6360

Three floating point numbers 𝑋, 𝑌, and 𝑍 are stored in three registers RX, RY, and RZ, respectively in IEEE 754 single precision format as given below in hexadecimal:

RX = 0xC1100000, RY = 0x40C00000, and RZ = 0x41400000

Which of the following option(s) is/are CORRECT?

  1. A.

    4(𝑋 + 𝑌) + 𝑍 = 0

  2. B.

    2𝑌 – 𝑍 = 0

  3. C.

    4𝑋 + 3𝑍 = 0

  4. D.

    𝑋 + 𝑌 + 𝑍 = 0

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A, B, C

Solutions and video are in the course

Question 50 · 2 marks Q6361

Which of the following Boolean algebraic equation(s) is/are CORRECT?

  1. A.

    A‾BC+AB‾ C‾+A‾ B‾ C‾+AB‾C+ABC=BC+B‾ C‾+A‾B‾\overline{A}BC + A\overline{B}\,\overline{C} + \overline{A}\,\overline{B}\,\overline{C} + A\overline{B}C + ABC = BC + \overline{B}\,\overline{C} + \overline{A} \overline{B}

  2. B.

    AB+A‾C+BC=AB+A‾CAB + \overline{A}C + BC = AB + \overline{A}C

  3. C.

    (A+C)(A‾+B)=AB+A‾C(A + C)(\overline{A} + B) = AB + \overline{A}C

  4. D.

    (A+B‾+D‾)(C+D)(A‾+C+D)(A+B+D‾)‾=A‾D+C‾D‾\overline{(A + \overline{B} + \overline{D})(C + D)(\overline{A} + C + D)(A + B + \overline{D})} = \overline{A}D + \overline{C} \overline{D}

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B, C, D

Solutions and video are in the course

Question 51 · 2 marks Q6362

Consider two grammars 𝐺1 and 𝐺2 with the production rules given below:

    𝐺1: 𝑆 → 𝑖𝑓 𝐸 𝑡ℎ𝑒𝑛 𝑆 | 𝑖𝑓 𝐸 𝑡ℎ𝑒𝑛 𝑆 𝑒𝑙𝑠𝑒 𝑆 | 𝑎

          𝐸 → 𝑏

    𝐺2: 𝑆 → 𝑖𝑓 𝐸 𝑡ℎ𝑒𝑛 𝑆 | 𝑀

           𝑀 → 𝑖𝑓 𝐸 𝑡ℎ𝑒𝑛 𝑀 𝑒𝑙𝑠𝑒 𝑆 | 𝑐

           𝐸 → 𝑏

where 𝑖𝑓,𝑡ℎ𝑒𝑛,𝑒𝑙𝑠𝑒, 𝑎, 𝑏, 𝑐 are the terminals. Which of the following option(s) is/are CORRECT?

  1. A.

    𝐺1 is not 𝐿𝐿(1) and 𝐺2 is 𝐿𝐿(1).

  2. B.

    𝐺1 is 𝐿𝐿(1) and 𝐺2 is not 𝐿𝐿(1).

  3. C.

    𝐺1 and 𝐺2 are not 𝐿𝐿(1).

  4. D.

    𝐺1 and 𝐺2 are ambiguous.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C, D

Solutions and video are in the course

Question 52 · 2 marks Q6363

Let Σ = {𝑎, 𝑏, 𝑐}. For 𝑥 ∈ Σ∗ , and 𝛼 ∈ Σ, let #𝛼(𝑥) denote the number of occurrences of 𝛼 in 𝑥. Which one or more of the following option(s) define(s) regular language(s)?

  1. A.

    {𝑎𝑚𝑏𝑛 | 𝑚, 𝑛 ≥ 0}

  2. B.

    {𝑎, 𝑏}∗ ∩ {𝑎𝑚𝑏𝑛 𝑐𝑚−𝑛 | 𝑚 ≥ 𝑛 ≥ 0}

  3. C.

    {𝑤 | 𝑤 ∈ {𝑎, 𝑏}∗ , #𝑎 (𝑤) ≡ 2 (mod 7), and #𝑏 (𝑤) ≡ 3 (mod 9)}

  4. D.

    {𝑤 | 𝑤 ∈ {𝑎, 𝑏}∗ , #𝑎 (𝑤) ≡ 2 (mod 7), and #𝑎 (𝑤) = #𝑏(𝑤)}

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A, C

Solutions and video are in the course

Question 53 · 2 marks Q6364

Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?

  1. A.

    R1(X), W2(X), W1(Y), W2(Y), R1(X), W1(X), COMMIT(T2), COMMIT(T1)

  2. B.

    W2(X), R1(X), W2(Y), W1(Y), R1(X), COMMIT(T2), W1(X), COMMIT(T1)

  3. C.

    R1(X), W1(Y), W2(X), W2(Y), R1(X), W1(X), COMMIT(T1), COMMIT(T2)

  4. D.

    W2(X), R1(X), W1(Y), W2(Y), R1(X), COMMIT(T2), W1(X), COMMIT(T1)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B

Solutions and video are in the course

Question 54 · 2 marks Q6365

Consider the following relational schema:

Students (rollno: integer, name: string, age: integer, cgpa: real)

Courses (courseno: integer, cname: string, credits: integer)

Enrolled (rollno: integer, courseno: integer, grade: string)

Which of the following options is/are correct SQL query/queries to retrieve the names of the students enrolled in course number (i.e., courseno) 1470?

  1. A.

    SELECT S.name
    FROM Students S
    WHERE EXISTS (SELECT * FROM Enrolled E
                                  WHERE E.courseno = 1470
                                                        AND E.rollno = S.rollno);

  2. B.

    SELECT S.name
    FROM Students S
    WHERE SIZEOF (SELECT * FROM Enrolled E
                                  WHERE E.courseno = 1470
                                            AND E.rollno = S.rollno) > 0;

  3. C.

    SELECT S.name
    FROM Students S
    WHERE 0 < (SELECT COUNT(*)
                          FROM Enrolled E
                          WHERE E.courseno = 1470
                                                AND E.rollno = S.rollno);

  4. D.

    SELECT S.name
    FROM Students S NATURAL JOIN Enrolled E
    WHERE E.courseno = 1470;

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A, C, D

Solutions and video are in the course

Question 55 · 2 marks Q6366

Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is 1 nanosecond (ns) and the “hit rate” for L1 cache is 90% while the processor is accessing the data from L1 cache. Whereas, for the second level (L2) cache, the “hit rate” is 80% and the “miss penalty” for transferring data from L2 cache to L1 cache is 10 ns. The “miss penalty” for the data to be transferred from main memory to L2 cache is 100 ns.

Then the average memory access time in this system in nanoseconds is ___________ . (rounded off to one decimal place)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 4 ns

Solutions and video are in the course

Question 56 · 2 marks Q6367

A 5-stage instruction pipeline has stage delays of 180, 250, 150, 170, and 250, respectively, in nanoseconds. The delay of an inter-stage latch is 10 nanoseconds. Assume that there are no pipeline stalls due to branches and other hazards. The time taken to process 1000 instructions in microseconds is __________ . (rounded off to two decimal places)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 261.04 microseconds

Solutions and video are in the course

Question 57 · 2 marks Q6368

In a B+ - tree where each node can hold at most four key values, a root to leaf path consists of the following nodes:

A = (49, 77, 83, -), B = (7, 19, 33, 44), C = (20*, 22*, 25*, 26*)

The *-marked keys signify that these are data entries in a leaf.

Assume that a pointer between keys 𝑘1 and 𝑘2 points to a subtree containing keys in [𝑘1, 𝑘2), and that when a leaf is created, the smallest key in it is copied up into its parent.

A record with key value 23 is inserted into the B+ - tree.

The smallest key value in the parent of the leaf that contains 25* is __________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 33

Solutions and video are in the course

Question 58 · 2 marks Q1929

A computer system supports a logical address space of 232 bytes. It uses two-level hierarchical paging with a page size of 4096 bytes. A logical address is divided into a 𝑏-bit index to the outer page table, an offset within the page of the inner page table, and an offset within the desired page. Each entry of the inner page table uses eight bytes. All the pages in the system have the same size. 

The value of 𝑏 is ___________ . (Answer in integer)


Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 11 bits

Solutions and video are in the course

Question 59 · 2 marks Q6370

Consider the following algorithm someAlgo that takes an undirected graph 𝐺 as input.

someAlgo(𝐺)

1. Let 𝑣 be any vertex in 𝐺. Run BFS on 𝐺 starting at 𝑣. Let 𝑢 be a vertex in 𝐺 at maximum distance from 𝑣 as given by the BFS.

2. Run BFS on 𝐺 again with 𝑢 as the starting vertex. Let 𝑧 be the vertex at maximum distance from 𝑢 as given by the BFS.

3. Output the distance between 𝑢 and 𝑧 in 𝐺.

The output of someAlgo(𝑇) for the tree shown in the given figure is ___________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 6

Solutions and video are in the course

Question 60 · 2 marks Q6371

Let Σ = {1,2,3,4}. For 𝑥 ∈ Σ∗ , let 𝑝𝑟𝑜𝑑(𝑥) be the product of symbols in 𝑥 modulo 7. We take 𝑝𝑟𝑜𝑑(𝜖) = 1, where 𝜖 is the null string.

For example, 𝑝𝑟𝑜𝑑(124) = (1 × 2 × 4) mod 7 = 1.

Define 𝐿 = {𝑥 ∈ Σ∗ | 𝑝𝑟𝑜𝑑(𝑥) = 2}.

The number of states in a minimum state DFA for 𝐿 is ___________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 6 states

Solutions and video are in the course

Question 61 · 2 marks Q6372

An application executes 6.4 × 10⁸ number of instructions in 6.3 seconds. There are four types of instructions, the details of which are given in the table. The duration of a clock cycle in nanoseconds is _________. (rounded off to one decimal place)

Instruction type

Clock cycles required per instruction (CPI)

Number of instructions executed

Branch

2

2.25 × 10⁸

Load

5

1.20 × 10⁸

Store

4

1.65 × 10⁸

Arithmetic

3

1.30 × 10⁸

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 3 ns

Solutions and video are in the course

Question 62 · 2 marks Q6373

Consider the following C program:

#include <stdio.h>
int main(){
    int a;
    int arr[5] = {30, 50, 10};
    int *ptr;
    ptr = &arr[0] + 1;      
    a = *ptr;               
    (*ptr)++;                
    ptr++;                 
    printf("%d", a + (*ptr) + arr[1]);
    return 0;
}

The output of the above program is ___________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 111

Solutions and video are in the course

Question 63 · 2 marks Q6374

Consider the following C program:

#include <stdio.h>

int g(int n) {
    return (n + 10);
}

int f(int n) {
    return g(n * 2);
}

int main() {
    int sum, n;
    sum = 0;
    for (n = 1; n < 3; n++)
        sum += g(f(n));
    printf("%d", sum);
    return 0;
}

The output of the given C program is ________. (Answer in integer)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 46

Solutions and video are in the course

Question 64 · 2 marks Q6375

A quadratic polynomial (𝑥 − 𝛼)(𝑥 − 𝛽) over complex numbers is said to be square invariant if (𝑥 − 𝛼)(𝑥 − 𝛽) = (𝑥 − 𝛼2 )(𝑥 − 𝛽2 ). Suppose from the set of all square invariant quadratic polynomials we choose one at random.

The probability that the roots of the chosen polynomial are equal is __________. (rounded off to one decimal place)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 0.5

Solutions and video are in the course

Question 65 · 2 marks Q6376

The unit interval (0,1) is divided at a point chosen uniformly distributed over (0,1) in ℝ into two disjoint subintervals.

The expected length of the subinterval that contains 0.4 is ___________. (rounded off to two decimal places)

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): 0.7 to 0.8

Solutions and video are in the course

Question 1 · 1 mark Q6312

Despite his initial hesitation, Rehman’s _________ to contribute to the success of the project never wavered.

Select the most appropriate option to complete the above sentence.

  1. A.

    ambivalence

  2. B.

    satisfaction

  3. C.

    resolve

  4. D.

    revolve

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C

Solutions and video are in the course

Question 2 · 1 mark Q6313

Bird : Nest :: Bee : _______

Select the correct option to complete the analogy.

  1. A.

    Kennel

  2. B.

    Hammock

  3. C.

    Hive

  4. D.

    Lair

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C

Solutions and video are in the course

Question 3 · 1 mark Q6314

If Pex=Qe−xP{e^x} = Qe^{-x} for all real values of 𝑥, which one of the following statements is true?

  1. A.

    𝑃=𝑄=0𝑃 = 𝑄 = 0

  2. B.

    𝑃=𝑄=1𝑃 = 𝑄 = 1

  3. C.

    𝑃=1;𝑄=−1𝑃 = 1; 𝑄 = −1

  4. D.

    PQ=0\frac{P}{Q} = 0

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 4 · 1 mark Q6315

The paper as shown in the figure is folded to make a cube where each square corresponds to a particular face of the cube. Which one of the following options correctly represents the cube?

Note: The figures shown are representative.

  1. A.
  2. B.
  3. C.
  4. D.
Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 5 · 1 mark Q6316

Let 𝑝1 and 𝑝2 denote two arbitrary prime numbers. Which one of the following statements is correct for all values of 𝑝1 and 𝑝2?

  1. A.

    𝑝1 + 𝑝2 is not a prime number.

  2. B.

    𝑝1𝑝2 is not a prime number.

  3. C.

    𝑝1 + 𝑝2 + 1 is a prime number.

  4. D.

    𝑝1𝑝2 + 1 is a prime number.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B

Solutions and video are in the course

Question 6 · 2 marks Q6317

Based only on the conversation below, identify the logically correct inference:

“Even if I had known that you were in the hospital, I would not have gone there to see you”, Ramya told Josephine.

  1. A.

    Ramya knew that Josephine was in the hospital.

  2. B.

    Ramya did not know that Josephine was in the hospital.

  3. C.

    Ramya and Josephine were once close friends; but now, they are not.

  4. D.

    Josephine was in the hospital due to an injury to her leg.

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B

Solutions and video are in the course

Question 7 · 2 marks Q6318

If IMAGE and FIELD are coded as FHBNJ and EMFJG respectively then, which one among the given options is the most appropriate code for BEACH ?

  1. A.

    CEADP

  2. B.

    IDBFC

  3. C.

    JGIBC

  4. D.

    IBCEC

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): B

Solutions and video are in the course

Question 8 · 2 marks Q6319

Which one of the following options is correct for the given data in the table?

Iteration (i)0123Input (I)20-41015Output (X)20162641Output (Y)20-80-800-12000\begin{array}{|c|c|c|c|c|} \hline \text{Iteration (i)} & \text{0} & \text{1} & \text{2} & \text{3} \\ \hline \text{Input (I)} & \text{20} & \text{-4} & \text{10} & \text{15} \\ \hline \text{Output (X)} & \text{20} & \text{16} & \text{26} & \text{41} \\ \hline \text{Output (Y)} & \text{20} & \text{-80} & \text{-800} & \text{-12000} \\ \hline \end{array}

  1. A.

    𝑋(𝑖)=𝑋(𝑖−1)+𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1) + 𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖); 𝑖 > 0

  2. B.

    𝑋(𝑖)=𝑋(𝑖−1)𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)+𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1)𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1) + 𝐼(𝑖); 𝑖 > 0

  3. C.

    𝑋(𝑖)=𝑋(𝑖−1)𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1)𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖); 𝑖 > 0

  4. D.

    𝑋(𝑖)=𝑋(𝑖−1)+𝐼(𝑖);𝑌(𝑖)=𝑌(𝑖−1)𝐼(𝑖−1);𝑖>0𝑋(𝑖) = 𝑋(𝑖 − 1) + 𝐼(𝑖); 𝑌(𝑖) = 𝑌(𝑖 − 1)𝐼(𝑖 − 1); 𝑖 > 0

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): A

Solutions and video are in the course

Question 9 · 2 marks Q6320

In the given figure, PQRS is a square of side 2 cm and PLMN is a rectangle. The corner L of the rectangle is on the side QR. Side MN of the rectangle passes through the corner S of the square.

What is the area (in cm2cm^2 ) of the rectangle PLMN?

Note: The figure shown is representative.

  1. A.

    222\sqrt{2}

  2. B.

    22

  3. C.

    88

  4. D.

    44

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): D

Solutions and video are in the course

Question 10 · 2 marks Q6321

The diagram below shows a river system consisting of 7 segments, marked P, Q, R, S, T, U, and V. It splits the land into 5 zones, marked Z1, Z2, Z3, Z4, and Z5. We need to connect these zones using the least number of bridges. Out of the following options, which one is correct?

Note: The figure shown is representative.

  1. A.

    Bridges on P, Q, and T

  2. B.

    Bridges on P, Q, S, and T

  3. C.

    Bridges on Q, R, T, and V

  4. D.

    Bridges on P, Q, S, U, and V

Official answer key

Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 2): C

Solutions and video are in the course