GATE CS 2024_Set2 Question Paper with Solutions: 65 Questions, Answer Key & Section-wise Analysis
GATE CS 2024_Set2 previous year paper: 65 questions with answer key and detailed solutions, section-wise breakdown and free sample questions.
65 Qs
Total Questions
100 Marks
Total Marks
0 Mins
Duration
+3 / -1 / 0
Marking Scheme
Section-wise Paper Structure
Engineering Mathematics
10 Qs
15% of total marks
Computer Organization and Architecture
7 Qs
11% of total marks
Programming and Data Structures
6 Qs
9% of total marks
Databases
6 Qs
9% of total marks
Computer Networks
6 Qs
9% of total marks
Quantitative Aptitude
5 Qs
8% of total marks
Operating System
5 Qs
8% of total marks
Compiler Design
5 Qs
8% of total marks
Theory of Computation
4 Qs
6% of total marks
Digital Logic
3 Qs
5% of total marks
Algorithms
3 Qs
5% of total marks
Verbal Aptitude
2 Qs
3% of total marks
Analytical Aptitude
2 Qs
3% of total marks
Spatial Aptitude
1 Qs
2% of total marks
Free Solved Questions with Step-by-Step Solutions
Authentic examination problems with detailed derivations and answer keys.
Question 1
2024 Slot Set2 PYQ
Level 3: Exam Standard
Let p and q be the following propositions:
p: Fail grade can be given. q: Student scores more than 50% marks.
Consider the statement: “Fail grade cannot be given when student scores more than 50% marks.”
Which one of the following is the CORRECT representation of the above statement in propositional logic?
Question 2
2024 Slot Set2 PYQ
Level 3: Exam Standard
Let f(x) be a continuous function from R to R such that
f(x)=1−f(2−x)
Which one of the following options is the CORRECT value of ∫02f(x)dx?
Question 3
2024 Slot Set2 PYQ
Level 3: Exam Standard
Let A be the adjacency matrix of a simple undirected graph G. Suppose A is its own inverse. Which one of the following statements is always TRUE?
Question 4
2024 Slot Set2 PYQ
Level 3: Exam Standard
Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular intervals. Which one of the following is the data transfer rate (in bits per second) of the DMA controller if 1% of the processor cycles are used for DMA?
Question 5
2024 Slot Set2 PYQ
Level 3: Exam Standard
The format of a single-precision floating-point number as per the IEEE 754 standard is:
Choose the largest floating-point number among the following options.
Question 6
2024 Slot Set2 PYQ
Level 3: Exam Standard
An instruction format has the following structure:
Consider the following sequence of instructions to be executed in a pipelined processor:
I1: DIV R3, R1, R2 I2: SUB R5, R3, R4 I3: ADD R3, R5, R6 I4: MUL R7, R3, R8
Which of the following statements is/are TRUE?
Question 7
2024 Slot Set2 PYQ
Level 3: Exam Standard
Consider the following C program. Assume parameters to a function are evaluated from right to left.
#include <stdio.h>
int g(int p) { printf("%d", p); return p; } int h(int q) { printf("%d", q); return q; } void f(int x, int y) { g(x); h(y); } int main() { f(g(10),h(20)); }
Which one of the following options is the CORRECT output of the above C program?
Question 8
2024 Slot Set2 PYQ
Level 3: Exam Standard
Consider the following C function definition.
int fX(char *a){ char *b = a; while(*b) b++; return b - a;}
Which of the following statements is/are TRUE?
Question 9
2024 Slot Set2 PYQ
Level 3: Exam Standard
What is the output of the following C program?
#include <stdio.h>
int main() { double a[2]={20.0, 25.0}, *p, *q; p = a; q = p + 1; printf(”%d,%d”, (int)(q – p), (int)(*q – *p)); return 0;}
Question 10
2024 Slot Set2 PYQ
Once the DBMS informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called
Question 11
2024 Slot Set2 PYQ
In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following statements is TRUE?
Question 12
2024 Slot Set2 PYQ
Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?
Question 13
2024 Slot Set2 PYQ
Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X and R. Consider a packet sent from X to Y over this connection.
Which of the following statements is/are TRUE about the destination IP and MAC addresses on this packet at the time it leaves X?
Question 14
2024 Slot Set2 PYQ
Which of the following statements about IPv4 fragmentation is/are TRUE?
Question 15
2024 Slot Set2 PYQ
Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?
Question 16
2024 Slot Set2 PYQ
Level 3: Exam Standard
Two wizards try to create a spell using all the four elements, water, air, fire, and earth. For this, they decide to mix all these elements in all possible orders. They also decide to work independently. After trying all possible combination of elements, they conclude that the spell does not work.
How many attempts does each wizard make before coming to this conclusion, independently?
Question 17
2024 Slot Set2 PYQ
Level 3: Exam Standard
In an engineering college of 10,000 students, 1,500 like neither their core branches nor other branches. The number of students who like their core branches is 1/4th of the number of students who like other branches. The number of students who like both their core and other branches is 500.
The number of students who like their core branches is
Question 18
2024 Slot Set2 PYQ
Level 3: Exam Standard
For positive non-zero real variables x and y, if
ln(2x+y)=21[ln(x)+ln(y)]
then, the value of
yx+xy
is
Question 19
2024 Slot Set2 PYQ
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?
Question 20
2024 Slot Set2 PYQ
Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving to a non-running state (e.g., ready, blocked)?
Question 21
2024 Slot Set2 PYQ
Consider a single processor system with four processes A, B, C, and D, represented as given below, where for each process the first value is its arrival time, and the second value is its CPU burst time.
A (0, 10), B (2, 6), C (4, 3), and D (6, 7).
Which one of the following options gives the average waiting times when preemptive Shortest Remaining Time First (SRTF) and Non-Preemptive Shortest Job First (NP-SJF) CPU scheduling algorithms are applied to the processes?
Question 22
2024 Slot Set2 PYQ
Level 2: Moderate
Consider the following two sets:
Which one of the following options is the CORRECT match from Set X to Set Y ?
Question 23
2024 Slot Set2 PYQ
Which of the following statements is/are FALSE?
Question 24
2024 Slot Set2 PYQ
Consider the following context-free grammar where the start symbol is S and the set of terminals is {a,b,c,d}.
SAB→AaAb∣BbBa→cS∣ϵ→dS∣ϵ
The following is a partially-filled LL(1) parsing table.
Which one of the following options represents the CORRECT combination for the numbered cells in the parsing table?
Note: In the options, “blank” denotes that the corresponding cell is empty.
Question 25
2024 Slot Set2 PYQ
Level 3: Exam Standard
Which one of the following regular expressions is equivalent to the language accepted by the DFA given below?
Question 26
2024 Slot Set2 PYQ
Level 3: Exam Standard
Let M be the 5-state NFA with ϵ-transitions shown in the diagram below.
Which one of the following regular expressions represents the language accepted by M ?
Question 27
2024 Slot Set2 PYQ
Consider a context-free grammar G with the following 3 rules.
S→aS,S→aSbS,S→c
Let w∈L(G). Let na(w), nb(w), nc(w) denote the number of times a,b,c occur in w, respectively. Which of the following statements is/are TRUE?
Question 28
2024 Slot Set2 PYQ
Level 1: Warm-up
For a Boolean variable x, which of the following statements is/are FALSE?
Question 29
2024 Slot Set2 PYQ
Level 3: Exam Standard
Which of the following is/are EQUAL to 224 in radix-5 (i.e., base-5) notation?
Question 30
2024 Slot Set2 PYQ
Level 3: Exam Standard
Consider 4-variable functions f1, f2, f3, f4 expressed in sum-of-minterms form as given below.
f1=∑(0,2,3,5,7,8,11,13)f2=∑(1,3,5,7,11,13,15)f3=∑(0,1,4,11)f4=∑(0,2,6,13)
With respect to the circuit given above, which of the following options is/are CORRECT?
Question 31
2024 Slot Set2 PYQ
Let T(n) be the recurrence relation defined as follows:
T(0)=1,
T(1)=2, and
T(n)=5T(n−1)−6T(n−2) for n≥2
Which one of the following statements is TRUE?
Question 32
2024 Slot Set2 PYQ
Let A be an array containing integer values. The distance of A is defined as the minimum number of elements in A that must be replaced with another integer so that the resulting array is sorted in non-decreasing order. The distance of the array [2,5,3,1,4,2,6] is ___________
Question 33
2024 Slot Set2 PYQ
Level 4: Challenger
The number of distinct minimum-weight spanning trees of the following graph is __________
Question 34
2024 Slot Set2 PYQ
Level 3: Exam Standard
If ‘→’ denotes increasing order of intensity, then the meaning of the words [walk → jog → sprint] is analogous to [bothered → ________ → daunted].
Which one of the given options is appropriate to fill the blank?
Question 35
2024 Slot Set2 PYQ
Level 3: Exam Standard
Sequence the following sentences in a coherent passage.
P: This fortuitous geological event generated a colossal amount of energy and heat that resulted in the rocks rising to an average height of 4 km across the contact zone.
Q: Thus, the geophysicists tend to think of the Himalayas as an active geological event rather than as a static geological feature.
R: The natural process of the cooling of this massive edifice absorbed large quantities of atmospheric carbon dioxide, altering the earth’s atmosphere and making it better suited for life.
S: Many millennia ago, a breakaway chunk of bedrock from the Antarctic Plate collided with the massive Eurasian Plate.
Question 36
2024 Slot Set2 PYQ
Level 3: Exam Standard
In the sequence 6,9,14,x,30,41, a possible value of x is
Question 37
2024 Slot Set2 PYQ
Level 3: Exam Standard
In the 4×4 array shown below, each cell of the first three rows has either a cross (X) or a number.
The number in a cell represents the count of the immediate neighboring cells (left, right, top, bottom, diagonals) NOT having a cross (X). Given that the last row has no crosses (X), the sum of the four numbers to be filled in the last row is
Question 38
2024 Slot Set2 PYQ
Level 3: Exam Standard
A cube is to be cut into 8 pieces of equal size and shape. Here, each cut should be straight and it should not stop till it reaches the other end of the cube.
The minimum number of such cuts required is
Unlock All 65 Questions in Real Examination Mode
Practice with the authentic timer, on-screen calculator, instant percentile ranking, and section-wise analytics.
Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.
Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.
Built around you, not around a syllabus PDF
Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.
Revision that hits your weak spots
We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.
Questions calibrated to the real exam
Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.
Notes written for recall, not for volume
Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.
One place for everything
Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.
Honest progress
No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.
Unlock the whole course
Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.
p: Fail grade can be given. q: Student scores more than 50% marks.
Consider the statement: “Fail grade cannot be given when student scores more than 50% marks.”
Which one of the following is the CORRECT representation of the above statement in propositional logic?
A.
q→¬p
B.
q→p
C.
p→q
D.
¬p→q
Correct Answer:
A
Step-by-Step Solution
Key idea: This is a propositional translation question, recognizable because it asks to convert an English sentence with conditional keywords into a logical formula.
Step 1: Identify the atomic propositions.
p: Fail grade can be given.
q: Student scores more than 50% marks.
Step 2: Translate the conditional statement.
The statement is: "Fail grade cannot be given when student scores more than 50% marks."
The word "when" acts as "if". So, "If student scores more than 50% marks, then fail grade cannot be given."
Let A be the adjacency matrix of a simple undirected graph G. Suppose A is its own inverse. Which one of the following statements is always TRUE?
A.
G is a cycle
B.
G is a perfect matching
C.
G is a complete graph
D.
There is no such graph G
Correct Answer:
B
Step-by-Step Solution
Insight: A=A−1 implies A2=I. The diagonal entries of A2 represent the degrees of the vertices, so every vertex must have a degree of exactly 1.
Exam route: A2=I means (A2)ii=1 for all i. Since (A2)ii is the degree of vertex i, every vertex has degree 1. This uniquely defines a perfect matching.
Learning route:
The condition A=A−1 is equivalent to A2=I, where I is the identity matrix.
This means that for every vertex i, the diagonal entry (A2)ii=1.
From the properties of adjacency matrices, (A2)ii equals the number of walks of length 2 from vertex i to itself, which is exactly the degree of vertex i in a simple graph.
Therefore, every vertex in the graph must have a degree of exactly 1.
A simple undirected graph where every vertex has degree exactly 1 is, by definition, a perfect matching (a disjoint union of K2 components).
Checking the options: A cycle has degree 2. A complete graph has degree n−1. A perfect matching has degree 1.
Question 4 · Computer Organization and Architecture · 2024_Set2MCQ
Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular intervals. Which one of the following is the data transfer rate (in bits per second) of the DMA controller if 1% of the processor cycles are used for DMA?
A.
2,56,000
B.
3,200
C.
25,60,000
D.
32,000
Correct Answer:
C
Step-by-Step Solution
Key idea: This is a DMA throughput calculation question, similar to P1 but with different units and a larger transfer size per cycle.
Step 1: Calculate total CPU cycles per second. The processor is 4 MHz, which is 4×106 cycles/second.
Step 2: Calculate DMA cycles per second. 1% of total cycles: 0.01×4×106=40,000 cycles/second.
Step 3: Relate cycles to data. Each cycle transfers 8 bytes.
Step 4: Calculate total bytes per second: 40,000×8=320,000 bytes/second.
Step 5: Convert to bits per second (since the question asks for bits per second). 320,000 bytes/sec×8 bits/byte=2,560,000 bits/second.
Step 6: Match with the Indian numbering system format in the options. 2,560,000 is written as 25,60,000.
Answer: C
Question 5 · Computer Organization and Architecture · 2024_Set2MCQ
The format of a single-precision floating-point number as per the IEEE 754 standard is:
Choose the largest floating-point number among the following options.
A.
B.
C.
D.
Correct Answer:
B
Step-by-Step Solution
Key idea: This is an IEEE 754 decoding and comparison problem. You must interpret the sign, exponent, and mantissa fields of each option to determine which represents the largest finite positive number.
Step 1: Recall the IEEE 754 single-precision format.
Sign (1 bit): 0 for positive, 1 for negative.
Exponent (8 bits): Biased by 127. Range 1 to 254 for normalized numbers. 255 is reserved for Infinity/NaN.
Mantissa (23 bits): Fractional part. Normalized numbers have an implicit leading 1.
Consider the following sequence of instructions to be executed in a pipelined processor:
I1: DIV R3, R1, R2 I2: SUB R5, R3, R4 I3: ADD R3, R5, R6 I4: MUL R7, R3, R8
Which of the following statements is/are TRUE?
A.
There is a RAW dependency on R3 between I1 and I2
B.
There is a WAR dependency on R3 between I1 and I3
C.
There is a RAW dependency on R3 between I2 and I3
D.
There is a WAW dependency on R3 between I3 and I4
Correct Answer:
["A"]
Step-by-Step Solution
Key idea: This is an instruction-level dependency analysis MSQ, recognisable because it gives a sequence of instructions with a specific format and asks which dependency statements are true.
Step 1: Parse the instruction format carefully. The format is: Opcode destination, source-1, source-2. So the first register after the opcode is the destination (written), and the next two are sources (read).
Step 2: List reads and writes for each instruction:
I1: DIV R3, R1, R2 ⇒ W: R3; R: R1, R2
I2: SUB R5, R3, R4 ⇒ W: R5; R: R3, R4
I3: ADD R3, R5, R6 ⇒ W: R3; R: R5, R6
I4: MUL R7, R3, R8 ⇒ W: R7; R: R3, R8
Step 3: Evaluate option A: RAW on R3 between I1 and I2. I1 writes R3, I2 reads R3. This is Read After Write on R3. TRUE.
Step 4: Evaluate option B: WAR on R3 between I1 and I3. For WAR, the earlier instruction must read R3 and the later one must write R3. I1 writes R3 (does not read it), I3 writes R3. Both write R3, so this is WAW, not WAR. FALSE.
Step 5: Evaluate option C: RAW on R3 between I2 and I3. For RAW, I2 must write R3 and I3 must read R3. I2 writes R5 (not R3), and I3 writes R3 (does not read it). I2 reads R3 and I3 writes R3, which is WAR, not RAW. FALSE.
Step 6: Evaluate option D: WAW on R3 between I3 and I4. For WAW, both must write R3. I3 writes R3, but I4 writes R7 (and reads R3). I3 writes R3 and I4 reads R3, which is RAW, not WAW. FALSE.
Answer: A
Question 7 · Programming and Data Structures · 2024_Set2MCQ
Consider the following C program. Assume parameters to a function are evaluated from right to left.
#include <stdio.h>
int g(int p) { printf("%d", p); return p; } int h(int q) { printf("%d", q); return q; } void f(int x, int y) { g(x); h(y); } int main() { f(g(10),h(20)); }
Which one of the following options is the CORRECT output of the above C program?
A.
20101020
B.
10202010
C.
20102010
D.
10201020
Correct Answer:
A
Step-by-Step Solution
Insight: Right-to-left evaluation means the rightmost argument is fully evaluated (including side effects like prints) before the left argument.
Exam route: Evaluate h(20) first (prints 20), then g(10) (prints 10). Then execute f(10, 20), which prints 10 then 20. Total output: 20101020.
Learning route:
The call is f(g(10), h(20)). The problem explicitly states parameters are evaluated right-to-left.
Rightmost argument: h(20) is evaluated first. It prints 20 and returns 20.
Leftmost argument: g(10) is evaluated next. It prints 10 and returns 10.
Now the function f is called with the evaluated arguments: f(10, 20).
Inside f(int x, int y):
g(x) is called →g(10). It prints 10.
h(y) is called →h(20). It prints 20.
Concatenating the prints in order: 20 (from arg eval), 10 (from arg eval), 10 (from f body), 20 (from f body).
Final output string: 20101020.
Trap: Assuming left-to-right evaluation (which yields 10201020) or assuming the function body executes before arguments are evaluated.
Verification: Right-to-left argument evaluation is a standard GCC behavior and explicitly mandated by the problem statement.
Question 8 · Programming and Data Structures · 2024_Set2MSQ
Consider the following C function definition.
int fX(char *a){ char *b = a; while(*b) b++; return b - a;}
Which of the following statements is/are TRUE?
A.
The function call fX(”abcd”) will always return a value
B.
Assuming a character array c is declared as char c[] = ”abcd” in main(), the function call fX(c)will always return a value
C.
The code of the function will not compile
D.
Assuming a character pointer c is declared as char *c = ”abcd” in main(), the function call fX(c)will always return a value
Correct Answer:
["A","B","D"]
Step-by-Step Solution
Insight: This tests string length calculation via pointer subtraction and the validity of passing different string representations to a char * parameter in C.
Exam route: The function correctly computes length by advancing b until \0 and returning b - a. In C, string literals ("abcd"), character arrays (char c[]), and character pointers (char c) all decay to or are char , making all calls valid and returning 4.
Learning route:
The function fX takes a char a. It sets b = a and increments b until b is '\0' (false).
It returns b - a, which is the number of characters traversed (the string length).
Option A: fX("abcd"). In C, a string literal is of type char[] (not const char[] as in C++), so it decays to char *. The function reads it safely and returns 4. TRUE.
Option B: char c[] = "abcd"; fX(c);. The array c decays to char * pointing to its first element. The function reads it safely and returns 4. TRUE.
Option C: The code uses standard C pointer arithmetic and dereferencing. It compiles without error. FALSE.
Option D: char c = "abcd"; fX(c);. c is already a char pointing to the string literal. The function reads it safely and returns 4. TRUE.
Question 9 · Programming and Data Structures · 2024_Set2MCQ
What is the output of the following C program?
#include <stdio.h>
int main() { double a[2]={20.0, 25.0}, *p, *q; p = a; q = p + 1; printf(”%d,%d”, (int)(q – p), (int)(*q – *p)); return 0;}
A.
4,8
B.
1,5
C.
8,5
D.
1,8
Correct Answer:
B
Step-by-Step Solution
Insight: This tests pointer arithmetic rules, specifically that pointer subtraction yields the element count, while dereferenced subtraction yields the value difference.
Exam route: q - p is the difference between &a[1] and &a[0], which is 1 element. q - p is 25.0 - 20.0 = 5.0, cast to int is 5. Output is 1,5.
Learning route:
p = a assigns p to the base address of the array, so p points to a[0] (value 20.0).
q = p + 1 advances the pointer by one double element, so q points to a[1] (value 25.0).
q - p: Pointer subtraction automatically divides the byte difference by sizeof(double), yielding the number of elements between them. Since they are adjacent, this is 1.
q - p: Dereferences both pointers to get their values: 25.0 - 20.0 = 5.0.
The (int) cast truncates 5.0 to 5.
The printf outputs 1,5.
Question 10 · Databases · 2024_Set2MCQ
Once the DBMS informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called
A.
durability
B.
atomicity
C.
consistency
D.
isolation
Question 11 · Databases · 2024_Set2MCQ
In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following statements is TRUE?
A.
The weak entity set MUST have total participation in the identifying relationship
B.
The owner entity set MUST have total participation in the identifying relationship
C.
Both weak and owner entity sets MUST have total participation in the identifying relationship
D.
Neither weak entity set nor owner entity set MUST have total participation in the identifying relationship
Question 12 · Databases · 2024_Set2MSQ
Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?
A.
Sorted
B.
Heap
C.
Unclustered tree index
D.
Unclustered hash index
Question 13 · Computer Networks · 2024_Set2MSQ
Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X and R. Consider a packet sent from X to Y over this connection.
Which of the following statements is/are TRUE about the destination IP and MAC addresses on this packet at the time it leaves X?
A.
The destination IP address is the IP address of R
B.
The destination IP address is the IP address of Y
C.
The destination MAC address is the MAC address of S
D.
The destination MAC address is the MAC address of Y
Question 14 · Computer Networks · 2024_Set2MSQ
Which of the following statements about IPv4 fragmentation is/are TRUE?
A.
The fragmentation of an IP datagram is performed only at the source of the datagram
B.
The fragmentation of an IP datagram is performed at any IP router which finds that the size of the datagram to be transmitted exceeds the MTU
C.
The reassembly of fragments is performed only at the destination of the datagram
D.
The reassembly of fragments is performed at all intermediate routers along the path from the source to the destination
Question 15 · Computer Networks · 2024_Set2MSQ
Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?
Two wizards try to create a spell using all the four elements, water, air, fire, and earth. For this, they decide to mix all these elements in all possible orders. They also decide to work independently. After trying all possible combination of elements, they conclude that the spell does not work.
How many attempts does each wizard make before coming to this conclusion, independently?
A.
24
B.
48
C.
16
D.
12
Correct Answer:
A
Step-by-Step Solution
Insight: "all possible orders of all four elements" is the textbook trigger for 4!; "each wizard independently" does not multiply the per-wizard count.
Exam route:
Four distinct elements, all used, order matters ⟹4!=24 arrangements.
Each wizard works independently and tries all of them, so each wizard makes 24 attempts.
Learning route:
The problem asks for the number of attempts <i>each</i> wizard makes. The two wizards are independent actors; the question is not asking for the total across both wizards.
Step 1 — identify the counting task. We are arranging all four distinct elements (water, air, fire, earth) in a sequence. Order matters because "water, air, fire, earth" is a different mix from "air, water, fire, earth".
Step 2 — apply the permutation-of-all formula. Arranging n distinct objects in order gives n! outcomes. Here n=4, so
4!=4×3×2×1=24.
Step 3 — read the question carefully. "How many attempts does each wizard make, independently?" Each wizard runs through all 24 arrangements on their own. The presence of a second wizard does not change the count per wizard.
Verification: listing a few arrangements confirms the scale — starting with water there are 3!=6 arrangements, and there are 4 choices for the first element, giving 4×6=24.
16 (C) uses 42 or 24, mixing up permutations with independent binary choices.
12 (D) uses 4!/2 or 4×3, either halving for a non-existent symmetry or stopping one step early.
Generalisation: whenever a problem says "arrange all n distinct objects in all possible orders", the answer is n!; extra actors working independently do not change the per-actor count unless the question explicitly asks for a total.
In an engineering college of 10,000 students, 1,500 like neither their core branches nor other branches. The number of students who like their core branches is 1/4th of the number of students who like other branches. The number of students who like both their core and other branches is 500.
The number of students who like their core branches is
A.
1,800
B.
3,500
C.
1,600
D.
1,500
Correct Answer:
A
Step-by-Step Solution
Insight: "Neither" tells you the union immediately; the ratio then collapses to one unknown.
Exam route:
Total =10,000, neither =1,500⟹n(C∪O)=10,000−1,500=8,500.
Given n(C)=41n(O), so n(O)=4n(C).
Inclusion-exclusion: n(C∪O)=n(C)+n(O)−n(C∩O).
8,500=n(C)+4n(C)−500=5n(C)−500.
5n(C)=9,000⟹n(C)=1,800.
Learning route:
Let C be the set of students who like their core branch and O the set who like other branches. The universal set has n(U)=10,000.
Step 1 — use "neither" to get the union. Students who like neither are outside C∪O, so
n(C∪O)=n(U)−1,500=8,500.
Step 2 — translate the ratio. n(C)=41n(O) means n(O)=4n(C).
Step 3 — apply inclusion-exclusion for two sets:
n(C∪O)=n(C)+n(O)−n(C∩O).
Substituting n(O)=4n(C) and n(C∩O)=500:
8,500=n(C)+4n(C)−500=5n(C)−500.
Step 4 — solve: 5n(C)=9,000, so n(C)=1,800.
Verification: n(O)=7,200. Then n(C)+n(O)−n(C∩O)=1,800+7,200−500=8,500, and 8,500+1,500=10,000. All constraints satisfied.
Wrong-path autopsy:
Choosing 3,500 (B) comes from computing 8,500−5,000 or mixing up which set is 1/4 of which; it breaks the ratio n(C)=41n(O).
Choosing 1,600 (C) comes from using 8,000 instead of 8,500 (forgetting to add the 500 intersection back); this violates the union equation.
Choosing 1,500 (D) is just echoing the "neither" count — a comprehension slip, not a calculation.
Generalisation: whenever a problem gives a total, a "neither" count, and a ratio between two sets, convert "neither" to the union first, then substitute the ratio into inclusion-exclusion.
Insight: The equation ln(2x+y)=21[ln(x)+ln(y)] is the logarithmic form of the AM-GM equality condition.
Exam route: Simplify the RHS to ln(xy). Equate arguments: 2x+y=xy. This implies x=y. Thus, yx+xy=1+1=2.
Learning route:
Step 1: Use logarithm properties on the right side: 21[ln(x)+ln(y)]=21ln(xy)=ln((xy)1/2)=ln(xy).
Step 2: The equation becomes ln(2x+y)=ln(xy).
Step 3: Since the natural logarithm is a one-to-one function, we can equate the arguments: 2x+y=xy.
Step 4: Recognize this as the condition where the Arithmetic Mean (AM) equals the Geometric Mean (GM).
Step 5: AM = GM holds for positive real numbers if and only if the variables are equal, so x=y.
Step 6: Substitute x=y into the target expression: xx+xx=1+1=2.
Question 19 · Operating System · 2024_Set2MSQ
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?
A.
Allocate a new page table for a newly created process
B.
Translate a virtual address to a physical address using the page table
C.
Raise a trap when a virtual address is not found in the page table
D.
Raise a trap when a process tries to write to a page marked with read-only permission in the page table
Question 20 · Operating System · 2024_Set2MSQ
Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving to a non-running state (e.g., ready, blocked)?
A.
P makes a blocking system call to read a block of data from the disk
B.
P tries to access a page that is in the swap space, triggering a page fault
C.
An interrupt is raised by the disk to deliver data requested by some other process
D.
A timer interrupt is raised by the hardware
Question 21 · Operating System · 2024_Set2MCQ
Consider a single processor system with four processes A, B, C, and D, represented as given below, where for each process the first value is its arrival time, and the second value is its CPU burst time.
A (0, 10), B (2, 6), C (4, 3), and D (6, 7).
Which one of the following options gives the average waiting times when preemptive Shortest Remaining Time First (SRTF) and Non-Preemptive Shortest Job First (NP-SJF) CPU scheduling algorithms are applied to the processes?
A.
SRTF = 6, NP-SJF = 7
B.
SRTF = 6, NP-SJF = 7.5
C.
SRTF = 7, NP-SJF = 7.5
D.
SRTF = 7, NP-SJF = 8.5
Question 22 · Compiler Design · 2024_Set2MCQ
Consider the following two sets:
Which one of the following options is the CORRECT match from Set X to Set Y ?
A.
P – 4; Q – 1; R – 3; S – 2
B.
P – 2; Q – 3; R – 1; S – 4
C.
P – 2; Q – 1; R – 3; S – 4
D.
P – 4; Q – 3; R – 2; S – 1
Correct Answer:
B
Step-by-Step Solution
Key idea: This is a Compiler Phases matching question. We must map each compiler phase to its primary output or associated optimization technique.
Step 1: Analyze P (Lexical Analyzer).
The lexical analyzer reads the source code character stream and groups it into meaningful units called Tokens (e.g., keywords, identifiers, operators).
Match: P → 2.
Step 2: Analyze Q (Syntax Analyzer).
The syntax analyzer (parser) takes the token stream and checks it against the grammar rules to build a hierarchical structure, specifically the Parse Tree (or concrete syntax tree).
Match: Q → 3.
Step 3: Analyze R (Intermediate Code Generator).
The intermediate code generator takes the syntax tree (often after semantic analysis converts it to an AST) and produces an intermediate representation. In many textbook classifications, it produces the Abstract Syntax Tree (AST) or three-address code. Here, AST is the best fit among the choices.
Match: R → 1.
Step 4: Analyze S (Code Optimizer).
The code optimizer improves the intermediate code to make it faster or smaller. Constant Folding (evaluating constant expressions at compile time, like replacing 3 + 4 with 7) is a classic machine-independent optimization technique.
Match: S → 4.
Step 5: Combine the matches.
P-2, Q-3, R-1, S-4.
Answer: B
Question 23 · Compiler Design · 2024_Set2MSQ
Which of the following statements is/are FALSE?
A.
An attribute grammar is a syntax-directed definition (SDD) in which the functions in the semantic rules have no side effects
B.
The attributes in a L-attributed definition cannot always be evaluated in a depth-first order
C.
Synthesized attributes can be evaluated by a bottom-up parser as the input is parsed
D.
All L-attributed definitions based on LR(1) grammar can be evaluated using a bottom-up parsing strategy
Question 24 · Compiler Design · 2024_Set2MCQ
Consider the following context-free grammar where the start symbol is S and the set of terminals is {a,b,c,d}.
SAB→AaAb∣BbBa→cS∣ϵ→dS∣ϵ
The following is a partially-filled LL(1) parsing table.
Which one of the following options represents the CORRECT combination for the numbered cells in the parsing table?
Note: In the options, “blank” denotes that the corresponding cell is empty.
A.
(1)S→AaAb(2)S→BbBa(3)A→ϵ(4)B→ϵ
B.
(1)S→BbBa(2)S→AaAb(3)A→ϵ(4)B→ϵ
C.
(1)S→AaAb(2)S→BbBa(3)blank(4)blank
D.
(1)S→BbBa(2)S→AaAb(3)blank(4)blank
Question 25 · Theory of Computation · 2024_Set2MCQ
Which one of the following regular expressions is equivalent to the language accepted by the DFA given below?
A.
0∗1(0+10∗1)∗
B.
0∗(10∗11)∗0∗
C.
0∗1(010∗1)∗0∗
D.
0(1+0∗10∗1)∗0∗
Correct Answer:
A
Step-by-Step Solution
Key idea: This is an FA to Regex conversion question. The DFA has a simple symmetric structure that tracks the parity of a specific character.
Step 1: Analyze the DFA states and transitions.
Let the start state be A and the final state be B.
State A loops on '0'.
State B loops on '0'.
Transition from A to B on '1'.
Transition from B to A on '1'.
Step 2: Interpret the machine's behavior.
The '0' loops mean that '0's can appear anywhere in the string without changing the state. They act as "padding".
The '1' transitions toggle the state between A and B.
Since A is the start state (representing an even count of '1's, specifically 0) and B is the final state (representing an odd count of '1's), the DFA accepts exactly those strings that contain an odd number of '1's.
Step 3: Construct the regular expression for "odd number of 1s, any number of 0s".
We can start with any number of '0's: 0∗.
We must have at least one '1' to reach the final state B: 1.
After reaching B, we can either read '0's (loop at B) or read pairs of '1's to leave and return to B (e.g., 1→A→B).
A pair of '1's can have any number of '0's between them and after them: 10∗1.
Thus, the repeating block at state B is (0+10∗1)∗.
Step 4: Combine the parts.
Regex = 0∗1(0+10∗1)∗.
Step 5: Match with the given options. Option A matches this derived expression perfectly.
Answer: A
Question 26 · Theory of Computation · 2024_Set2MCQ
Let M be the 5-state NFA with ϵ-transitions shown in the diagram below.
Which one of the following regular expressions represents the language accepted by M ?
A.
(00)∗+1(11)∗
B.
0∗+(1+0(00)∗)(11)∗
C.
(00)∗+(1+(00)∗)(11)∗
D.
0++1(11)∗+0(11)∗
Correct Answer:
B
Step-by-Step Solution
Key idea: This is an NFA-to-Regex conversion problem, recognizable by the presence of epsilon transitions and multiple paths. We can use State Elimination or Arden's Theorem.
Step 1: Analyze the NFA structure.
States: 1 (Start), 2 (Final), 3, 4, 5 (Final).
Transitions:
1ϵ2
1ϵ4
203
302
3ϵ5
415
514
Step 2: Simplify the NFA.
Since 1ϵ2 and 1ϵ4, we can consider 2 and 4 as effective start states (or merge them).
Let's analyze the two branches separately.
Branch 1 (via State 2):
Cycle between 2 and 3: 20302. This generates (00)∗.
From 3, we can go to 5 via ϵ.
So, from 2, we can generate (00)∗ and end up at 3, then jump to 5.
Effectively, this branch allows reaching 5 with strings in (00)∗0? No.
Path: 203. String "0". At 3.
From 3, loop 30203 adds "00".
So at 3, we have strings 0(00)∗.
Then 3ϵ5.
So this branch contributes 0(00)∗ to reach 5 from start (via 1->2).
Wait, 2 is also a final state.
So Branch 1 accepts:
Empty string (via 1→2).
Strings that loop at 2: 20302. This is (00)∗.
So Branch 1 accepts (00)∗.
Does it accept anything else?
From 3, we can go to 5. But 5 is in Branch 2.
Branch 2 (via State 4):
1ϵ4.
Cycle between 4 and 5: 41514. This generates (11)∗.
State 5 is final.
Path to 5: 415. String "1".
Loop at 4: (11)∗.
So from 4, we can reach 5 with 1(11)∗?
Let's trace:
Start at 4.
Accepts ϵ? No, 4 is not final.
415 (Final). String "1".
4151415. String "111".
So Branch 2 accepts 1(11)∗.
Interaction:
From Branch 1 (State 3), we can go to Branch 2 (State 5) via ϵ.
So, we can take the Branch 1 path to 3, then jump to 5.
Path to 3 from 1: 1ϵ203. String "0".
Loops at 2-3: (00)∗.
So we can reach 3 with 0(00)∗.
Then ϵ to 5.
From 5, we can loop in Branch 2: 51415. This is (11)∗.
Note: 5 is final. So just arriving at 5 is enough.
So this mixed path accepts: 0(00)∗⋅ϵ⋅(11)∗?
Wait, once at 5, we can loop. The loop is 5→4→5 (label 1,1). So (11)∗.
So the mixed part is 0(00)∗(11)∗.
Total Language:
Branch 1 alone (ending at 2): (00)∗.
Branch 2 alone (starting at 4): 1(11)∗.
Mixed (Branch 1 to Branch 2): 0(00)∗(11)∗.
Union: (00)∗+1(11)∗+0(00)∗(11)∗.
Factor out (11)∗ from last two terms?
1(11)∗+0(00)∗(11)∗=(1+0(00)∗)(11)∗.
So Total = (00)∗+(1+0(00)∗)(11)∗.
Let's check Option B: 0∗+(1+0(00)∗)(11)∗.
My derived first term is (00)∗. Option B has 0∗.
Is (00)∗ equivalent to 0∗ in this context? No.
However, look at the diagram again.
Is there a transition 2ϵ...? No.
Is there a transition 10...? No.
Let's re-evaluate Branch 1.
1→2 (Final). Accepts ϵ.
2→3→2. Accepts 00,0000,….
So Branch 1 accepts (00)∗.
Why does Option B have 0∗?
Maybe I missed a transition.
Diagram:
1->2 (epsilon)
1->4 (epsilon)
2->3 (0)
3->2 (0)
3->5 (epsilon)
4->5 (1)
5->4 (1)
There is no way to generate a single '0' and stop at a final state in Branch 1.
Path for '0': 1→2→3. State 3 is NOT final.
So '0' is rejected by Branch 1.
Path for '00': 1→2→3→2. State 2 IS final.
So '00' is accepted.
So Branch 1 is indeed (00)∗.
Let's look at Option B again: 0∗+(1+0(00)∗)(11)∗.
This option accepts '0'. My analysis says '0' is rejected.
Let's check if '0' is accepted by the mixed path.
Mixed: 1→2→3ϵ5.
String so far: "0".
State 5 is Final.
So "0" IS accepted via the mixed path!
Ah, I missed that 5 is final.
So, reaching 5 via Branch 1 is valid.
Path: 1ϵ203ϵ5.
String: "0".
From 5, we can loop (11)∗.
So this path generates 0(11)∗.
Wait, can we loop in Branch 1 before jumping?
1→200203ϵ5.
String: 00⋅0=000.
Generally: (00)∗⋅0.
So the prefix from Branch 1 to 5 is 0(00)∗?
203. (String 0).
2030203. (String 000).
Yes, the set of strings reaching 3 from 2 is 0(00)∗.
So the mixed path generates 0(00)∗(11)∗.
So the total language is:
End at 2: (00)∗.
End at 5 (via 4): 1(11)∗.
End at 5 (via 2): 0(00)∗(11)∗.
Union: (00)∗+1(11)∗+0(00)∗(11)∗.
Combine 2 and 3: (1+0(00)∗)(11)∗.
Total: (00)∗+(1+0(00)∗)(11)∗.
Now compare with Option B: 0∗+(1+0(00)∗)(11)∗.
Is (00)∗ equal to 0∗? No.
But look at Option C: (00)∗+(1+(00)∗)(11)∗.
My term is 0(00)∗. Option C has (00)∗.
0(00)∗ is odd zeros. (00)∗ is even zeros.
Let's re-read the options.
A: (00)∗+1(11)∗ -- Missing mixed path.
B: 0∗+(1+0(00)∗)(11)∗ -- First term 0∗ is suspicious.
C: (00)∗+(1+(00)∗)(11)∗ -- Second term has (00)∗ instead of 0(00)∗.
D: 0++1(11)∗+0(11)∗ -- Incorrect.
Let's check if 0∗ in B is a typo for (00)∗ or if my analysis of Branch 1 is wrong.
Branch 1: 1→2 (Final). 2↔3 via 0.
Strings accepted at 2: ϵ,00,0000⋯=(00)∗.
Is it possible that 0∗ in Option B is actually correct because of some other path?
No other path generates 0s.
Let's look at Option B closely: 0∗+(1+0(00)∗)(11)∗.
If we assume the question implies 0∗ is a superset, it's wrong.
However, often in these questions, (00)∗ is written as part of a larger expression.
Let's check Option C again: (00)∗+(1+(00)∗)(11)∗.
Term 2: (1+(00)∗)(11)∗.
This generates 1(11)∗ AND (00)∗(11)∗.
My mixed term is 0(00)∗(11)∗.
(00)∗ starts with ϵ (even). 0(00)∗ starts with 0 (odd).
They are disjoint.
There seems to be no perfect match. Let's re-read the diagram for any missed epsilon.
3ϵ5.
1ϵ2.
1ϵ4.
Is it possible that 2ϵ4? No.
Let's reconsider Option B.
Maybe the first term is not 0∗ but (00)∗?
If Option B was (00)∗+(1+0(00)∗)(11)∗, it would be perfect.
Given the choices, B is the closest if we assume a typo in the first term or if I am missing a self-loop at 1? No.
Actually, look at Option B's second part: (1+0(00)∗)(11)∗. This matches my mixed/branch2 analysis perfectly.
Option C's second part: (1+(00)∗)(11)∗. This fails to capture the leading 0 for the mixed path.
Therefore, B is the intended answer, likely with a typo in the first term (0∗ instead of (00)∗) or implying that the union covers all cases.
Answer: B
Question 27 · Theory of Computation · 2024_Set2MSQ
Consider a context-free grammar G with the following 3 rules.
S→aS,S→aSbS,S→c
Let w∈L(G). Let na(w), nb(w), nc(w) denote the number of times a,b,c occur in w, respectively. Which of the following statements is/are TRUE?
A.
na(w)>nb(w)
B.
na(w)>nc(w)−2
C.
nc(w)=nb(w)+1
D.
nc(w)=nb(w)∗2
Question 28 · Digital Logic · 2024_Set2MSQ
For a Boolean variable x, which of the following statements is/are FALSE?
A.
x⋅1=x
B.
x+1=x
C.
x⋅x=0
D.
x+xˉ=1
Correct Answer:
["B","C"]
Step-by-Step Solution
Insight: This is a single-variable Boolean-law check. The four statements are judged as identities, so each must hold for both x=0 and x=1.
Exam route: Recall the basic laws directly:
x⋅1=x,x+1=1,x⋅x=x,x+xˉ=1.
Comparing with the given statements, x+1=x and x⋅x=0 are false. Hence the false statements are B and C.
Learning route:
A Boolean variable can only be 0 or 1. An identity is true only if it is true for both values.
Option A: x⋅1=x. This is the identity law for AND. If x=0, 0⋅1=0; if x=1, 1⋅1=1. True.
Option B: x+1=x. This is not the identity law for OR. The null law says
x+1=1.
Counterexample: if x=0, then 0+1=1=0. False.
Option C: x⋅x=0. This is not the complement law. The idempotent law says
x⋅x=x.
Counterexample: if x=1, then 1⋅1=1=0. False.
Option D: x+xˉ=1. This is the complement law for OR. If x=0, 0+1=1; if x=1, 1+0=1. True.
Tempting wrong path: a student may transfer ordinary algebra intuition and treat 1 as an identity element for OR, concluding x+1=x. That mistake makes the student miss statement B. It breaks exactly at the null law: x+1=1, not x. Another wrong path is confusing x⋅x with xxˉ; xxˉ=0, but x⋅x=x. That mistake makes the student miss statement C.
Generalization: For one-variable Boolean identities, either name the standard law or test both values 0 and 1. A single counterexample is enough to mark a statement false.
Verification: Substitute x=0 and x=1 into the selected false statements. For B: 0+1=1=0. For C: 1⋅1=1=0. The unselected statements A and D hold for both values.
Question 29 · Digital Logic · 2024_Set2MSQ
Which of the following is/are EQUAL to 224 in radix-5 (i.e., base-5) notation?
A.
64 in radix-10
B.
100 in radix-8
C.
50 in radix-16
D.
121 in radix-7
Correct Answer:
["A","B","D"]
Step-by-Step Solution
Insight: Convert the given Base 5 number to Base 10, then convert each option to Base 10 to check for equality.
Exam route:
(224)5=2(25)+2(5)+4(1)=50+10+4=6410.
Check options in Base 10:
A) 6410=64. (Match)
B) (100)8=1(64)=64. (Match)
C) (50)16=5(16)=80. (No match)
D) (121)7=1(49)+2(7)+1(1)=49+14+1=64. (Match)
Learning route:
This is a multiple-select question testing base equivalence. The most efficient strategy is to anchor everything to Base 10.
Step 1: Convert the target number (224)5 to Base 10.
2×52+2×51+4×50=2(25)+10+4=6410.
Step 2: Evaluate each option in Base 10.
Option A: 6410 is already in Base 10. Value is 64. (Equal)
Consider 4-variable functions f1, f2, f3, f4 expressed in sum-of-minterms form as given below.
f1=∑(0,2,3,5,7,8,11,13)f2=∑(1,3,5,7,11,13,15)f3=∑(0,1,4,11)f4=∑(0,2,6,13)
With respect to the circuit given above, which of the following options is/are CORRECT?
A.
Y=∑(0,1,2,11,13)
B.
Y=Π(3,4,5,6,7,8,9,10,12,14,15)
C.
Y=∑(0,1,2,3,4,5,6,7)
D.
Y=Π(8,9,10,11,12,13,14,15)
Correct Answer:
["C","D"]
Step-by-Step Solution
Insight: The circuit computes the XOR (symmetric difference) of an AND operation and an OR operation on four given minterm sets.
Exam route:
Compute f1 AND f2 (intersection): {0,2,3,5,7,8,11,13}∩{1,3,5,7,11,13,15}={3,5,7,11,13}.
Compute f3 OR f4 (union): {0,1,4,11}∪{0,2,6,13}={0,1,2,4,6,11,13}.
Compute XOR (symmetric difference): Elements in either set but not both.
Intersection of the two results: {11,13}.
Union of the two results: {0,1,2,3,4,5,6,7,11,13}.
Symmetric difference: {0,1,2,3,4,5,6,7}.
Thus, Y=∑(0,1,2,3,4,5,6,7).
The maxterm representation is the exact complement: Π(8,9,10,11,12,13,14,15).
Options C and D are correct.
Learning route: Set operations on minterm lists are faster than drawing 4-variable K-maps for this specific gate topology. AND is intersection, OR is union, XOR is symmetric difference.
Question 31 · Algorithms · 2024_Set2MCQ
Let T(n) be the recurrence relation defined as follows:
T(0)=1,
T(1)=2, and
T(n)=5T(n−1)−6T(n−2) for n≥2
Which one of the following statements is TRUE?
A.
T(n)=Θ(2n)
B.
T(n)=Θ(n2n)
C.
T(n)=Θ(3n)
D.
T(n)=Θ(n3n)
Question 32 · Algorithms · 2024_Set2NAT
Let A be an array containing integer values. The distance of A is defined as the minimum number of elements in A that must be replaced with another integer so that the resulting array is sorted in non-decreasing order. The distance of the array [2,5,3,1,4,2,6] is ___________
Question 33 · Algorithms · 2024_Set2NAT
The number of distinct minimum-weight spanning trees of the following graph is __________
Correct Answer:
9
Step-by-Step Solution
Key idea: Use Kruskal's algorithm to group edges by weight and count the number of valid ways to connect the resulting components.
Step 2: Process weight 1 edges. They form two disjoint tree components without cycles:
Component 1: {a, b, f} (using edges a-b, a-f)
Component 2: {c, d, e} (using edges c-d, e-d)
Vertex {g} is isolated. Total components = 3.
Step 3: A spanning tree for 7 vertices requires exactly 7−1=6 edges. We already have 4 edges of weight 1. We need exactly 2 more edges to connect the 3 components.
Step 4: Look at weight 2 edges. They connect {g} to Component 1 via 3 edges: (a,g), (b,g), (f,g). They connect {g} to Component 2 via 3 edges: (g,c), (g,e), (g,d).
There are no weight 2 edges directly between Component 1 and Component 2.
Step 5: To connect all 3 components, we must choose exactly one edge from the first group (3 choices) and exactly one edge from the second group (3 choices).
Step 6: Total distinct MSTs = 3×3=9. (Weight 3 edges are not needed as the graph is already connected with weight 1 and 2 edges).
Answer: 9
Question 34 · Verbal Aptitude · 2024_Set2MCQ
If ‘→’ denotes increasing order of intensity, then the meaning of the words [walk → jog → sprint] is analogous to [bothered → ________ → daunted].
Which one of the given options is appropriate to fill the blank?
A.
phased
B.
phrased
C.
fazed
D.
fused
Correct Answer:
C
Step-by-Step Solution
Insight: The arrow denotes a strict, unidirectional escalation in intensity. "Bothered" is mild distress, "daunted" is severe distress, so the missing word must represent medium distress.
Exam route: Walk -> jog -> sprint is increasing physical effort. Bothered -> ? -> daunted is increasing emotional distress. "Fazed" means disconcerted, fitting perfectly between bothered and daunted. The others are homophone traps.
Learning route:
Step 1: Analyze the reference sequence. "walk -> jog -> sprint" shows a linear escalation of physical speed and exertion.
Step 2: Identify the dimension of the target sequence. "bothered -> ? -> daunted" tests the dimension of emotional distress or being unsettled.
Step 3: Define the endpoints. "Bothered" means mildly annoyed or concerned. "Daunted" means feeling intimidated, overwhelmed, or severely discouraged.
Step 4: Evaluate options for the middle step.
"Phased": done in gradual stages. (Unrelated meaning)
"Phrased": expressed in particular words. (Unrelated meaning)
"Fazed": disconcerted, perturbed, or unsettled. This represents a medium level of emotional distress, stronger than "bothered" but weaker than "daunted".
"Fused": joined or blended together. (Unrelated meaning)
Step 5: Conclude that "fazed" is the correct word to complete the intensity sequence, while the others are homophone distractors.
Question 35 · Verbal Aptitude · 2024_Set2MCQ
Sequence the following sentences in a coherent passage.
P: This fortuitous geological event generated a colossal amount of energy and heat that resulted in the rocks rising to an average height of 4 km across the contact zone.
Q: Thus, the geophysicists tend to think of the Himalayas as an active geological event rather than as a static geological feature.
R: The natural process of the cooling of this massive edifice absorbed large quantities of atmospheric carbon dioxide, altering the earth’s atmosphere and making it better suited for life.
S: Many millennia ago, a breakaway chunk of bedrock from the Antarctic Plate collided with the massive Eurasian Plate.
A.
QPSR
B.
QSPR
C.
SPRQ
D.
SRPQ
Correct Answer:
C
Step-by-Step Solution
Insight: The passage describes a geological sequence; the opening must introduce the event, followed by immediate effects, subsequent processes, and a concluding inference.
Exam route: Sentence S introduces the collision. Sentence P refers to "This... event", locking S→P. Sentence R discusses "cooling of this massive edifice", which must follow the "rocks rising" in P. Sentence Q starts with "Thus", making it the conclusion. Sequence SPRQ is the only match.
Learning route:
Step 1: Identify the opener. Sentence S introduces the specific historical event ("Many millennia ago... collided"). Sentences P, R, and Q contain dependent references ("This... event", "this massive edifice", "Thus") and cannot open the passage.
Step 2: Link cause and effect. Sentence P explicitly refers to "This fortuitous geological event", which must immediately follow the collision described in S. This forms the mandatory pair S→P.
Step 3: Follow the physical timeline. Sentence P describes the generation of heat and rocks rising. Sentence R describes the "cooling of this massive edifice". Cooling must chronologically follow the generation of heat and rising, forming the pair P→R.
Step 4: Identify the conclusion. Sentence Q begins with "Thus", signaling a summary or inference drawn from the preceding active geological processes, making it the natural closing sentence.
The sequence S→P→R→Q is logically and chronologically sound.
Question 36 · Analytical Aptitude · 2024_Set2MCQ
In the sequence 6,9,14,x,30,41, a possible value of x is
A.
25
B.
21
C.
18
D.
20
Correct Answer:
B
Step-by-Step Solution
Insight: This is a second-order difference sequence where the first differences form a progression of consecutive odd numbers.
Exam route: Calculate first differences: 9−6=3, 14−9=5, and 41−30=11. The missing differences between 5 and 11 in an odd number sequence are 7 and 9. Thus, x=14+7=21. Verify: 21+9=30.
Learning route:
Step 1: Calculate the first differences (Δ1) between consecutive terms:
9−6=3
14−9=5
x−14=?
30−x=?
41−30=11
Step 2: Analyze the known differences: 3,5,…,11. This strongly suggests a sequence of consecutive odd numbers: 3,5,7,9,11.
Step 3: Solve for the missing terms using this pattern. Assume the next difference is 7:
x=14+7=21
Step 4: Verify with the next term. If x=21, then the next difference is 30−21=9. This perfectly matches the expected odd number 9.
Conclusion: x=21.
Question 37 · Analytical Aptitude · 2024_Set2MCQ
In the 4×4 array shown below, each cell of the first three rows has either a cross (X) or a number.
The number in a cell represents the count of the immediate neighboring cells (left, right, top, bottom, diagonals) NOT having a cross (X). Given that the last row has no crosses (X), the sum of the four numbers to be filled in the last row is
A.
11
B.
10
C.
12
D.
9
Correct Answer:
A
Step-by-Step Solution
Insight: This is an array/grid logic problem where a cell's value equals the count of its immediate neighbors (including diagonals) that do NOT contain an 'X'.
Exam route: The last row has no 'X's. Evaluate each bottom-row cell's non-'X' neighbors:
Cell (4,1): Neighbors are (3,1)=3, (3,2)=X, (4,2)=B. Non-X count = 2. So A = 2.
Cell (4,2): Neighbors are (3,1)=3, (3,2)=X, (3,3)=6, (4,1)=A, (4,3)=C. Non-X count = 4. So B = 4.
Cell (4,3): Neighbors are (3,2)=X, (3,3)=6, (3,4)=X, (4,2)=B, (4,4)=D. Non-X count = 3. So C = 3.
Cell (4,4): Neighbors are (3,3)=6, (3,4)=X, (4,3)=C. Non-X count = 2. So D = 2.
Sum = 2 + 4 + 3 + 2 = 11.
Learning route:
Step 1: Verify the rule with a known cell. Take Row 3, Col 1 (value 3). Its neighbors are (2,1)=X, (2,2)=5, (3,2)=X, (4,1), (4,2). Since the last row has no X, (4,1) and (4,2) are not X. The non-X neighbors are (2,2), (4,1), and (4,2). Count = 3. This matches the given value, confirming our understanding.
Step 2: Apply the rule to Row 4, Col 1 (let's call it A). Neighbors: (3,1)=3, (3,2)=X, (4,2)=B. Non-X neighbors: (3,1) and (4,2). Total = 2. Thus, A = 2.
Step 3: Apply to Row 4, Col 2 (B). Neighbors: (3,1)=3, (3,2)=X, (3,3)=6, (4,1)=A, (4,3)=C. Non-X neighbors: (3,1), (3,3), (4,1), (4,3). Total = 4. Thus, B = 4.
Step 4: Apply to Row 4, Col 3 (C). Neighbors: (3,2)=X, (3,3)=6, (3,4)=X, (4,2)=B, (4,4)=D. Non-X neighbors: (3,3), (4,2), (4,4). Total = 3. Thus, C = 3.
Step 5: Apply to Row 4, Col 4 (D). Neighbors: (3,3)=6, (3,4)=X, (4,3)=C. Non-X neighbors: (3,3), (4,3). Total = 2. Thus, D = 2.
Step 6: Sum the last row: A + B + C + D = 2 + 4 + 3 + 2 = 11.
Question 38 · Spatial Aptitude · 2024_Set2MCQ
A cube is to be cut into 8 pieces of equal size and shape. Here, each cut should be straight and it should not stop till it reaches the other end of the cube.
The minimum number of such cuts required is
A.
3
B.
4
C.
7
D.
8
Correct Answer:
A
Step-by-Step Solution
Key idea: This is a <optimization> question about minimizing cuts to subdivide a cube into equal pieces. The key is understanding how orthogonal cuts multiply the number of pieces.
Step 1: Understand the cutting constraint.
Each cut must be straight
Each cut goes completely through the cube
Cuts are parallel to faces (to get equal pieces)
Step 2: Understand how cuts create pieces.
When cutting a cube with planes parallel to faces:
n cuts parallel to one face create (n+1) pieces along that dimension