GATE Computer Science & IT 2025 — GATE 2025 · CS · Set 1
CS Set 1 · 65 of 65 questions publicly available
Held on: 2025-02-01
Sections: General Aptitude, Computer Science & IT
| Subject | 1 mark questions | 2 mark questions | Total marks |
|---|---|---|---|
| General Aptitude | 5 | 5 | 15 |
| Computer Science | 25 | 30 | 85 |
Question 11 · 1 mark Q6257
Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives:
(i) The processor saves the content of the program counter.
(ii) The program counter is loaded with the start address of the ISR.
(iii) The processor finishes the present instruction.
Which ONE of the following is the CORRECT sequence of steps?
- A.
(iii), (i), (ii)
- B.
(i), (iii), (ii)
- C.
(i), (ii), (iii)
- D.
(iii), (ii), (i)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 12 · 1 mark Q6258
Which ONE of the following statements is FALSE regarding the symbol table?
- A.
Symbol table is responsible for keeping track of the scope of variables.
- B.
Symbol table can be implemented using a binary search tree.
- C.
Symbol table is not required after the parsing phase.
- D.
Symbol table is created during the lexical analysis phase.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 13 · 1 mark Q6259
Which ONE of the following techniques used in compiler code optimization uses live variable analysis?
- A.
Run-time function call management
- B.
Register assignment to variables
- C.
Strength reduction
- D.
Constant folding
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B
Question 14 · 1 mark Q1924
Consider a demand paging memory management system with 32-bit logical address, 20-bit physical address, and page size of 2048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?
- A.
221
- B.
220
- C.
222
- D.
224
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 15 · 1 mark Q6261
A schedule of three database transactions , and is shown. and denote read and write of data item by transaction . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back?
- A.
Only
- B.
Only
- C.
Both
and - D.
Neither
nor
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 16 · 1 mark Q6262
Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.
- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B
Question 17 · 1 mark Q6263
is a function from to is a function from to , and their composition defined as is a mapping from to . If and are onto (surjective) functions, which ONE of the following is TRUE about the function ?
- A.
must be an onto (surjective) function. - B.
must be a one-to-one (injective) function. - C.
must be a bijective function, that is, both one-to-one and onto. - D.
is not required to be a one-to-one or onto function.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): D
Question 18 · 1 mark Q6264
Let be any undirected graph with positive edge weights, and be a minimum spanning tree of . For any two vertices, and , let and be the shortest distances between and in and 𝑇, respectively. Which ONE of the options is CORRECT for all possible and ?
- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B
Question 19 · 1 mark Q6265
Consider the following context-free grammar , where and are the variables (non-terminals), and are the terminal symbols, is the start variable, and the rules of are described as:
Which ONE of the languages is accepted by ?
- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 20 · 1 mark Q6266
Consider the following recurrence relation:
Which ONE of the following options is CORRECT?
- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 21 · 1 mark Q6267
Consider the following tree with 5 nodes, in which a node can store at most 3 key values. The value 23 is now inserted in the tree. Which of the following options(s) is/are CORRECT?

- A.
None of the nodes will split.
- B.
At least one node will split and redistribute.
- C.
The total number of nodes will remain same.
- D.
The height of the tree will increase.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B, D
Question 22 · 1 mark Q6268
Consider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2, and P3, in order. Which of the following option(s) is/are TRUE with respect to TCP header flags that are set in the packets?
- A.
P3: SYN = 1, ACK = 1
- B.
P2: SYN = 1, ACK = 1
- C.
P2: SYN = 0, ACK = 1
- D.
P1: SYN = 1
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B, D
Question 23 · 1 mark Q6269
Consider the given system of linear equations for variables and , where is a real-valued constant. Which of the following option(s) is/are CORRECT?
- A.
There is exactly one value of 𝑘 for which the above system of equations has no solution.
- B.
There exist an infinite number of values of 𝑘 for which the system of equations has no solution.
- C.
There exists exactly one value of 𝑘 for which the system of equations has exactly one solution.
- D.
There exists exactly one value of 𝑘 for which the system of equations has an infinite number of solutions.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A, D
Question 24 · 1 mark Q6270
Let be a 3-variable Boolean function that produces output as ‘1’ when at least two of the input variables are ‘1’. Which of the following statement(s) is/are CORRECT, where are Boolean variables?
- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B, D
Question 25 · 1 mark Q6271
The number −6 can be represented as 1010 in 4-bit 2’s complement representation. Which of the following is/are CORRECT 2’s complement representation(s) of −6?
- A.
1000 1010 in 8-bits
- B.
1111 1010 in 8-bits
- C.
1000 0000 0000 1010 in 16-bits
- D.
1111 1111 1111 1010 in 16-bits
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B, D
Question 26 · 1 mark Q6272
Which of the following statement(s) is/are TRUE for any binary search tree (BST) having 𝑛 distinct integers?
- A.
The maximum length of a path from the root node to any other node is
. - B.
An inorder traversal will always produce a sorted sequence of elements
- C.
Finding an element takes
time in the worst case. - D.
Every BST is also a Min-Heap.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A, B
Question 27 · 1 mark Q6273
A partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown?

- A.
The data path can implement arithmetic operations involving two registers.
- B.
The data path can implement arithmetic operations involving one register and one immediate value.
- C.
The data path can implement arithmetic operations involving two immediate values.
- D.
The data path can only implement arithmetic operations involving one register and one immediate value.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A, B, C
Question 28 · 1 mark Q6274
A regular language is accepted by a non-deterministic finite automaton (NFA) with states. Which of the following statement(s) is/are FALSE?
- A.
may have an accepting NFA withstates - B.
may have an accepting DFA withstates. - C.
There exists a DFA with
states that accepts. - D.
Every DFA that accepts
hasstates.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): D
Question 29 · 1 mark Q1859
Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operation is performed. Assume that there will always be a context switch whenever a process requests for an I/O, and also whenever the process returns from an I/O. The number of times the process will enter the ready queue during its lifetime (not counting the time the process enters the ready queue when it is run initially) is _______. (Answer in integer)
int main() {
int x=0,i=0;
scanf("%d",&x);
for(i=0; i<20; i++)
{ x = x+20;
printf("%d\n",x);
} return 0;
}
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 21
Question 30 · 1 mark Q6276
Let 𝑆 be the set of all ternary strings defined over the alphabet . Consider all strings in that contain at least one occurrence of two consecutive symbols, that is, “aa”, “bb” or “cc”. The number of such strings of length 5 that are possible is _______. (Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 195
Question 31 · 1 mark Q6277
Consider the given function .
If the function is differentiable everywhere, the value of 𝑏 must be ________. (rounded off to one decimal place)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): -2
Question 32 · 1 mark Q6278
A box contains 5 coins: 4 regular coins and 1 fake coin. When a regular coin is tossed, the probability 𝑃(ℎ𝑒𝑎𝑑) = 0.5 and for a fake coin, 𝑃(ℎ𝑒𝑎𝑑) = 1. You pick a coin at random and toss it twice, and get two heads. The probability that the coin you have chosen is the fake coin is _______. (rounded off to two decimal places)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 0.5
Question 33 · 1 mark Q6279
The pseudocode of a function is given below:
Let be an array storing 30 distinct integers in descending order. The number of swap operations that will be performed, if the function is called with as argument, is __________. (Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 435
Question 34 · 1 mark Q6280
#include <stdio.h>void foo(int *p, int x) { *p = x;}int main() { int *z; int a = 20, b = 25; z = &a; foo(z, b); printf("%d", a); 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 1): 25
Question 35 · 1 mark Q6281
The height of any rooted tree is defined as the maximum number of edges in the path from the root node to any leaf node.
Suppose a Min-Heap 𝑇 stores 32 keys. The height of 𝑇 is _____________. (Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 5 integer
Question 36 · 2 marks Q6282
Consider a memory system with 1M bytes of main memory and 16K bytes of cache memory. Assume that the processor generates 20-bit memory address, and the cache block size is 16 bytes. If the cache uses direct mapping, how many bits will be required to store all the tag values? [Assume memory is byte addressable, 1K=210 , 1M=220 ]
- A.
6 × 210
- B.
8 × 210
- C.
212
- D.
214
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 37 · 2 marks Q6283
A processor has 64 general-purpose registers and 50 distinct instruction types. An instruction is encoded in 32-bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction?
ADD R1, #25 // R1 = R1 + 25
- A.
16
- B.
20
- C.
22
- D.
24
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B
Question 38 · 2 marks Q1898
A computer has two processors, 𝑀1 and 𝑀2. Four processes 𝑃1, 𝑃2, 𝑃3, 𝑃4 with CPU bursts of 20, 16, 25, and 10 milliseconds, respectively, arrive at the same time and these are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities decided as follows:
• 𝑀1 uses priority of execution for the processes as, 𝑃1 > 𝑃3 > 𝑃2 > 𝑃4, i.e., 𝑃1 and 𝑃4 have highest and lowest priorities, respectively.
• 𝑀2 uses priority of execution for the processes as, 𝑃2 > 𝑃3 > 𝑃4 > 𝑃1, i.e., 𝑃2 and 𝑃1 have highest and lowest priorities, respectively.
A process 𝑃𝑖 is scheduled to a processor 𝑀𝑘, if the processor is free and no other process 𝑃𝑗 is waiting with higher priority. At any given point of time, a process can be allocated to any one of the free processors without violating the execution priority rules. Ignore the context switch time. What will be the average waiting time of the processes in milliseconds?
- A.
9.00
- B.
8.75
- C.
6.50
- D.
7.50
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 39 · 2 marks Q6285
Consider two relations describing and in a sports league:
• are team-id and team-name, respectively
• , and denote player-id, player-name and the team-id of the player, respectively
Which ONE of the following tuple relational calculus queries returns the name of the players who play for the team having 𝑡𝑛𝑎𝑚𝑒 as ′′?
- A.

- B.

- C.

- D.

Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 40 · 2 marks Q6286
A packet with the destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?

- A.
E3
- B.
E1
- C.
E2
- D.
E5
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 41 · 2 marks Q6287
Let (A) be a 2 × 2 matrix as given.

What are the eigenvalues of the matrix 𝐴^(13) ?
- A.
(1, −1) - B.
2(2)^(1/2) and -2(2)^(1/2)
- C.
4(2)^(1/2) and -4(2)^(1/2)
- D.
64(2)^(1/2) and -64(2)^(1/2)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): D
Question 42 · 2 marks Q6288
Consider the following four variable Boolean function in sum-of-product form
where the value of the function is computed by considering as a 4-bit binary number, where denotes the most significant bit and denotes the least significant bit. Note that there are no don’t care terms. Which ONE of the following options is the CORRECT minimized Boolean expression for ?
- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 43 · 2 marks Q6289
Let be an undirected and unweighted graph with 100 vertices. Let denote the number of edges in a shortest path between vertices and in . Let the maximum value of such that , be 30. Let be any breadth-first-search tree of . Which ONE of the given options is CORRECT for every such graph ?
- A.
The height of
is exactly 15. - B.
The height of
is exactly 30. - C.
The height of
is at least 15. - D.
The height of
is at least 30.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 44 · 2 marks Q6290
Consider the following two languages over the alphabet :
Which ONE of the following statements is CORRECT ?
- A.
Both
andare regular languages. - B.
is a regular language butis not a regular language. - C.
is not a regular language butis a regular language. - D.
Neither
noris a regular language.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 45 · 2 marks Q6291
Consider the following two languages over the alphabet , where 𝑚 and 𝑛 are natural numbers.
Which ONE of the following statements is CORRECT?
- A.
Both
andare context-free languages. - B.
is a context-free language butis not a context-free language. - C.
is not a context-free language butis a context-free language. - D.
Neither
norare context-free languages.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 46 · 2 marks Q6292
Which of the following statement(s) is/are TRUE while computing and during top down parsing by a compiler?
- A.
For a production
will be added to. - B.
If there is any input right end marker, it will be added to
, whereis the start symbol. - C.
For a production
will be added to. - D.
If there is any input right end marker, it will be added to
, whereis the start symbol.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A, D
Question 47 · 2 marks Q6293
Consider a relational schema , with functional dependencies .
The relation is decomposed into two relations, and . Which of the following statement(s) is/are TRUE?
- A.
The relation
is NOT in BCNF. - B.
The relations
andare in BCNF. - C.
The decomposition constitutes a lossless join.
- D.
The relation
is NOT in 3NF.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B, C
Question 48 · 2 marks Q6294
Which of the following predicate logic formulae/formula is/are CORRECT representation(s) of the statement: “Everyone has exactly one mother”?
The meanings of the predicates used are:
• is the mother of
• and are not equal
- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B, D
Question 49 · 2 marks Q6295
is the set of non-negative integers. Let be the set of functions from to itself. For any two functions, , we define
for every number in . Which of the following is/are CORRECT about the mathematical structure ?
- A.
is an Abelian group. - B.
is an Abelian monoid. - C.
is a non-Abelian group. - D.
is a non-Abelian monoid.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B
Question 50 · 2 marks Q6296
Consider the following deterministic finite automaton (DFA) defined over the alphabet, . Identify which of the following language(s) is/are accepted by the given DFA.

- A.
The set of all strings containing an even number of
’s. - B.
The set of all strings containing the pattern
. - C.
The set of all strings ending with the pattern
. - D.
The set of all strings not containing the pattern
.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 51 · 2 marks Q1853
A disk of size 512M bytes is divided into blocks of 64K bytes. A file is stored in the disk using linked allocation. In linked allocation, each data block reserves 4 bytes to store the pointer to the next data block. The link part of the last data block contains a NULL pointer (also of 4 bytes). Suppose a file of 1M bytes needs to be stored in the disk. Assume, 1K = 210 and 1M = 220 . The amount of space in bytes that will be wasted due to internal fragmentation is ______.(Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 65468 bytes
Question 52 · 2 marks Q6298
Refer to the given 3-address code sequence. This code sequence is split into basic blocks. The number of basic blocks is ________. (Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 6
Question 53 · 2 marks Q6299
A computer has a memory hierarchy consisting of two-level cache (L1 and L2) and a main memory. If the processor needs to access data from memory, it first looks into L1 cache. If the data is not found in L1 cache, it goes to L2 cache. If it fails to get the data from L2 cache, it goes to main memory, where the data is definitely available. Hit rates and access times of various memory units are shown in the figure. The average memory access time in nanoseconds (ns) is ________. (rounded off to two decimal places)

Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 11.83 to 11.87 ns
Question 54 · 2 marks Q1902
In optimal page replacement algorithm, information about all future page references is available to the operating system (OS). A modification of the optimal page replacement algorithm is as follows:
The OS correctly predicts only up to next 4 page references (including the current page) at the time of allocating a frame to a page.
A process accesses the pages in the following order of page numbers:
1, 3, 2, 4, 2, 3, 1, 2, 4, 3, 1, 4.
If the system has three memory frames that are initially empty, the number of page faults that will occur during execution of the process is ________ . (Answer in integer)?
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 6
Question 55 · 2 marks Q6301
Consider the following database tables of a sports league.
An instance of the table and an SQL query are given.

The value returned by the given SQL query is ______ . (Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 26
Question 56 · 2 marks Q6302
Suppose a 5-bit message is transmitted from a source to a destination through a noisy channel. The probability that a bit of the message gets flipped during transmission is 0.01. Flipping of each bit is independent of one another. The probability that the message is delivered error-free to the destination is ______ . (rounded off to three decimal places)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 0.949 to 0.952
Question 57 · 2 marks Q6303
Suppose a message of size 15000 bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a defined maximum transmission unit (MTU) as shown in the figure, including IP header. The number of fragments that will be delivered to the destination is ________ . (Answer in integer)

Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 7
Question 58 · 2 marks Q6304
Consider a probability distribution given by the density function .
The probability that lies between 2 and 3, i.e., is __________. (rounded off to three decimal places)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 0.3 to 0.302
Question 59 · 2 marks Q6305
Consider a finite state machine (FSM) with one input and one output , represented by the given state transition table. The minimum number of states required to realize this FSM is ________. (Answer in integer)

Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 5 states
Question 60 · 2 marks Q6306
Consider the given sequential circuit designed using D-Flip-flops. The circuit is initialized with some value (initial state). The number of distinct states the circuit will go through before returning back to the initial state is _________ . (Answer in integer)

Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 7 to 8
Question 61 · 2 marks Q6307
#include <stdio.h>
int foo(int S[], int size) {
if(size == 0) return 0;
if(size == 1) return 1;
if(S[0] != S[1]) return 1 + foo(S + 1, size - 1);
return foo(S + 1, size - 1);
}
int main() {
int A[] = {0, 1, 2, 2, 2, 0, 0, 1, 1};
printf("%d", foo(A, 9));
return 0;
}
The value printed by the given C program is _______ . (Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 5
Question 62 · 2 marks Q6308
Let be a datatype for an implementation of linked list defined as follows:
Suppose a program has created two linked lists, L1 and L2, whose contents are given in the figure below (code for creating L1 and L2 is not provided here). L1 contains 9 nodes, and L2 contains 7 nodes. Consider the following C program segment that modifies the list L1. The number of nodes that will be there in L1 after the execution of the code segment is ________ . (Answer in integer)

Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 5
Question 63 · 2 marks Q6309
Consider the following C program:
#include <stdio.h>
int gate (int n) {
int d, t, newnum, turn;
newnum = turn = 0; t=1;
while (n>=t) t *= 10;
t /=10;
while (t>0) {
d = n/t;
n = n%t;
t /= 10;
if (turn) newnum = 10*newnum + d;
turn = (turn + 1) % 2;
}
return newnum;
}
int main () {
printf ("%d", gate(14362));
return 0;
}
The value printed by the given C program is _______ . (Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 46
Question 64 · 2 marks Q6310
The maximum value of 𝑥 such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is _________ . (answer in integer)

Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 5
Question 65 · 2 marks Q6311
In a double hashing scheme, and are the auxiliary hash functions. The size of the hash table is 11. The hash function for the -th probe in the open address table is . The following keys are inserted in the given order: 63, 50, 25, 79, 67, 24.
The slot at which key 24 gets stored is ___________. (Answer in integer)
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): 10 to 11
Question 1 · 1 mark Q6247
Ravi had ______ younger brother who taught at ______ university. He was widely regarded as ______ honorable man.
Select the option with the correct sequence of articles to fill in the blanks.
- A.
a; a; an
- B.
the; an; a
- C.
a; an; a
- D.
an; an; a
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 2 · 1 mark Q6248
The CEO’s decision to downsize the workforce was considered myopic because it sacrificed long-term stability to accommodate short-term gains.
Select the most appropriate option that can replace the word “myopic” without changing the meaning of the sentence.
- A.
visionary
- B.
shortsighted
- C.
progressive
- D.
innovative
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B
Question 3 · 1 mark Q6249
The average marks obtained by a class in an examination were calculated as 30.8. However, while checking the marks entered, the teacher found that the marks of one student were entered incorrectly as 24 instead of 42. After correcting the marks, the average becomes 31.4. How many students does the class have?
- A.
25
- B.
28
- C.
30
- D.
32
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 4 · 1 mark Q6250
Consider the relationships among P, Q, R, S, and T:
• P is the brother of Q.
• S is the daughter of Q.
• T is the sister of S.
• R is the mother of Q.
The following statements are made based on the relationships given above.
(1) R is the grandmother of S.
(2) P is the uncle of S and T.
(3) R has only one son.
(4) Q has only one daughter.
Which one of the following options is correct?
- A.
Both (1) and (2) are true.
- B.
Both (1) and (3) are true.
- C.
Only (3) is true.
- D.
Only (4) is true.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 5 · 1 mark Q6251
According to the map shown in the figure, which one of the following statements is correct?
Note: The figure shown is representative.

- A.
The library is located to the northwest of the canteen.
- B.
The hospital is located to the east of the chemistry lab.
- C.
The chemistry lab is to the southeast of physics lab.
- D.
The classrooms and canteen are next to each other.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 6 · 2 marks Q6252
“I put the brown paper in my pocket along with the chalks, and possibly other things. I suppose every one must have reflected how primeval and how poetical are the things that one carries in one’s pocket: the pocket-knife, for instance the type of all human tools, the infant of the sword. Once I planned to write a book of poems entirely about the things in my pocket. But I found it would be too long: and the age of the great epics is past.”
(From G.K. Chesterton’s “A Piece of Chalk”)
Based only on the information provided in the above passage, which one of the following statements is true?
- A.
The author of the passage carries a mirror in his pocket to reflect upon things.
- B.
The author of the passage had decided to write a poem on epics.
- C.
The pocket-knife is described as the infant of the sword.
- D.
Epics are described as too inconvenient to write.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): C
Question 7 · 2 marks Q6253
In the diagram, the lines QR and ST are parallel to each other. The shortest distance between these two lines is half the shortest distance between the point P and line QR. What is the ratio of the area of the triangle PST to the area of the trapezium SQRT?
Note: The figure shown is representative.

- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 8 · 2 marks Q6254
A fair six-faced dice, with the faces labelled ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, and ‘6’, is rolled thrice. What is the probability of rolling ‘6’ exactly once?
- A.
- B.
- C.
- D.
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 9 · 2 marks Q6255
A square paper, shown in figure (I), is folded along the dotted lines as shown in the figures (II) and (III). Then a few cuts are made as shown in figure (IV). Which one of the following patterns will be obtained when the paper is unfolded?
Note: The figures shown are representative.

- A.

- B.

- C.

- D.

Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): A
Question 10 · 2 marks Q6256
A shop has 4 distinct flavors of ice-cream. One can purchase any number of scoops of any flavor. The order in which the scoops are purchased is inconsequential. If one wants to purchase 3 scoops of ice-cream, in how many ways can one make that purchase?
- A.
4
- B.
20
- C.
24
- D.
48
Official answer key
Official answer key (GATE Computer Science & IT 2025 GATE 2025 · CS · Set 1): B