GATE CS
    Previous Year Papers
    Verified Solutions Included
    GATE CS 2025_Set2 Question Paper with Solutions: 65 Questions, Answer Key & Section-wise Analysis

    GATE CS 2025_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

    Programming and Data Structures

    8 Qs

    12% of total marks

    Engineering Mathematics

    8 Qs

    12% of total marks

    Computer Organization and Architecture

    7 Qs

    11% of total marks

    Theory of Computation

    5 Qs

    8% of total marks

    Databases

    5 Qs

    8% of total marks

    Computer Networks

    5 Qs

    8% of total marks

    Algorithms

    5 Qs

    8% of total marks

    Quantitative Aptitude

    4 Qs

    6% of total marks

    Operating System

    4 Qs

    6% of total marks

    Digital Logic

    4 Qs

    6% of total marks

    Compiler Design

    4 Qs

    6% of total marks

    Analytical Aptitude

    3 Qs

    5% of total marks

    Verbal 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
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    Consider a binary tree in which every node has either zero or two children. Let be the number of nodes in .

    Which ONE of the following is the number of nodes in that have exactly two children?
    Question 2
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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?
    Question 3
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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)
    Question 4
    2025 Slot Set2 PYQ
    Level 3: Exam Standard

    If , then which ONE of the following is ?

    Question 5
    2025 Slot Set2 PYQ
    Level 3: Exam Standard

    The value of such that , satisfying the equation is

    Question 6
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    Let , , and be non-singular matrices of order 3 satisfying the equations

    , and .

    Which ONE of the following is the value of the determinant of ?
    Question 7
    2025 Slot Set2 PYQ
    Level 3: Exam Standard

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

    Question 8
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    The following two signed 2’s complement numbers (multiplicand and multiplier ) are being multiplied using Booth’s algorithm:

    : 1100 1101 1110 1101 and : 1010 0100 1010 1010

    The total number of addition and subtraction operations to be performed is ___________. (Answer in integer)
    Question 9
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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?
    Question 10
    2025 Slot Set2 PYQ

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

    Question 11
    2025 Slot Set2 PYQ
    Let , be Context Free Grammars (CFGs) and be a regular expression. For a grammar , let denote the language generated by .

    Which ONE among the following questions is decidable?
    Question 12
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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
    For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?
    Question 13
    2025 Slot Set2 PYQ
    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?
    Question 14
    2025 Slot Set2 PYQ
    Consider the following relational schema along with all the functional dependencies that hold on them.





    Which of the following statement(s) is/are TRUE?
    Question 15
    2025 Slot Set2 PYQ
    Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?

    Transaction T1R1(X)W1(Y)R1(X)W1(X)COMMIT(T1)Transaction T2W2(X)W2(Y)COMMIT(T2)
    Question 16
    2025 Slot Set2 PYQ
    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?
    Question 17
    2025 Slot Set2 PYQ
    Consider the routing protocols given in List I and the names given in List II:

    List I               List II
    (i) Distance vector routing     (a) Bellman-Ford
    (ii) Link state routing       (b) Dijkstra

    For matching of items in List I with those in List II, which ONE of the following options is CORRECT?
    Question 18
    2025 Slot Set2 PYQ
    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?
    Question 19
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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?
    Question 20
    2025 Slot Set2 PYQ
    Level 3: Exam Standard

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

    Question 21
    2025 Slot Set2 PYQ
    Level 4: Challenger
    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?
    Question 22
    2025 Slot Set2 PYQ
    Level 3: Exam Standard

    If for all real values of , which one of the following statements is true?

    Question 23
    2025 Slot Set2 PYQ
    Level 3: Exam Standard

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

    Question 24
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    Which one of the following options is correct for the given data in the table?

    Iteration ()0123Input ()20−41015Output ()20162641Output ()20−80−800−12000
    Question 25
    2025 Slot Set2 PYQ
    Processes , , , 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?
    Question 26
    2025 Slot Set2 PYQ
    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):

    initiallyafter-1*2*3*4*5*416*451*3*2*-1111111666662--224444444111---33555555533
    The *-marked references cause page replacements.

    Which one or more of the following could be the page replacement policy/policies in use?
    Question 27
    2025 Slot Set2 PYQ
    consists of all active processes in an operating system.
    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: (the assignment edge means resource is assigned to process , and so on for others)

    Claim edges: (the claim edge means process is waiting for resource , and so on for others)

    Which of the following statement(s) is/are CORRECT?
    Question 28
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    Consider the following logic circuit diagram.

    YXF
    Which is/are the CORRECT option(s) for the output function ?
    Question 29
    2025 Slot Set2 PYQ
    Level 3: Exam Standard

    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)

    Question 30
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    Given the following Karnaugh Map for a Boolean function :

    1001011001101001
    Which one or more of the following Boolean expression(s) represent(s) ?
    Question 31
    2025 Slot Set2 PYQ
    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 expression 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?
    Question 32
    2025 Slot Set2 PYQ
    Given the following syntax directed translation rules:

    Rule 1:
    Rule 2:
    Rule 3:

    Which ONE is the CORRECT option among the following?
    Question 33
    2025 Slot Set2 PYQ
    Given a Context-Free Grammar as follows:





    Which ONE of the following statements is TRUE?
    Question 34
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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.
    Question 35
    2025 Slot Set2 PYQ
    Level 3: Exam Standard

    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 ?

    Question 36
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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.

    PQRSTUVZ1Z2Z3Z4Z5
    Question 37
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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.
    Question 38
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    Bird : Nest :: Bee : _______

    Select the correct option to complete the analogy.
    Question 39
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    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.

    Unlock All 65 Questions in Real Examination Mode

    Practice with the authentic timer, on-screen calculator, instant percentile ranking, and section-wise analytics.

    More GATE CS Previous Year Papers

    Free preview ends here

    Login to view the complete paper and solutions

    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.

    Why MastersUp

    Personalised first. High quality throughout.

    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.

    GATE CS 2025_Set2 Question Paper with Solutions: 65 Questions, Answer Key & Section-wise Analysis

    GATE CS 2025_Set2 previous year paper: 65 questions with answer key and detailed solutions, section-wise breakdown and free sample questions.

    Paper breakdown

    65 questions · 100 marks. Programming and Data Structures: 8 · Engineering Mathematics: 8 · Computer Organization and Architecture: 7 · Theory of Computation: 5 · Databases: 5 · Computer Networks: 5 · Algorithms: 5 · Quantitative Aptitude: 4 · Operating System: 4 · Digital Logic: 4 · Compiler Design: 4 · Analytical Aptitude: 3 · Verbal Aptitude: 2 · Spatial Aptitude: 1

    Free sample questions from GATE CS 2025_Set2 Question Paper

    Question 1 · Programming and Data Structures · 2025_Set2 MCQ
    Consider a binary tree in which every node has either zero or two children. Let be the number of nodes in .

    Which ONE of the following is the number of nodes in that have exactly two children?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: This is a strict (full) binary tree property question, recognizable because it constrains every node to have exactly 0 or 2 children and asks for a node count formula.

    Exam route: Use the fundamental identity . Since it is a strict tree, . Total nodes . Substitute to get . Solve for to get .

    Learning route:

    Step 1: Define variables. Let be leaf nodes (0 children), be nodes with 1 child, and be nodes with 2 children.

    Step 2: Apply the given constraint. Every node has 0 or 2 children, so .

    Step 3: State the total node equation. .

    Step 4: Apply the universal binary tree edge property. Total edges = . Also, total edges = .

    Step 5: Equate and substitute. . Since , we have .

    Step 6: Solve for . .

    Verification: If (a root and two leaves), . This matches a root with two children.

    Wrong path: Assuming , which leads to (Option C), or assuming , leading to (Option A). These violate the fundamental edge-count derivation.

    Question 2 · Programming and Data Structures · 2025_Set2 MCQ
    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!

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: This is a string copy with overlap question, recognizable by passing a and a + 2 to a custom stringcopy function.

    Exam route: The source string starts at index 2 ("Hello World!", length 12). It overwrites the first 12 characters of a. The original characters at indices 12, 13, and 14 ('d', '!', '\0') are never reached by the destination pointer and remain untouched. Result: "Hello World!d!".

    Learning route:

    1. Initial state: a contains "@#Hello World!\0".
    2. stringcopy(a, a + 2) is called. s points to a[0] ('@'), t points to a[2] ('H').
    3. The while(t) loop copies characters from t to s until t is '\0'.
    4. "Hello World!" has 12 characters. The loop runs 12 times, overwriting a[0] through a[11].
    5. The loop terminates when t points to a[14] ('\0'). The assignment s++ = t++ does not execute for the null terminator in this specific loop condition (it stops before copying '\0', but wait, the standard while(t) stops when t is '\0', so '\0' is NOT copied. However, the original '\0' at a[14] remains intact).
    6. Final array content: "Hello World!" (indices 0-11) + "d!\0" (indices 12-14).
    7. printf("%s\n", a) prints "Hello World!d!".
    Question 3 · Programming and Data Structures · 2025_Set2 NAT
    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)
    Correct Answer:

    21.00

    Step-by-Step Solution

    Insight: This is the subtraction-based Euclidean algorithm for computing GCD. The loop repeatedly subtracts the smaller value from the larger until both are equal, at which point that common value is the GCD.

    Exam route: Recognize the algorithm immediately, then compute GCD(126, 105) using prime factorization or the modulo-based Euclidean algorithm as a shortcut.

    Learning route:

    1. Initial: x = 126, y = 105.
    2. The do-while loop guarantees at least one iteration.
    3. Iteration 1: x > y (126 > 105), so x = 126 - 105 = 21. State: x=21, y=105.
    4. Iteration 2: x > y is false (21 < 105), so y = 105 - 21 = 84. State: x=21, y=84.
    5. Iteration 3: y = 84 - 21 = 63. State: x=21, y=63.
    6. Iteration 4: y = 63 - 21 = 42. State: x=21, y=42.
    7. Iteration 5: y = 42 - 21 = 21. State: x=21, y=21.
    8. Condition x != y is now false (21 == 21). Loop terminates.
    9. printf("%d", x) prints 21.

    Shortcut verification using prime factorization:

    • Common factors:
    • GCD(126, 105) = 21. Confirmed.

    Alternative verification using modulo-based Euclidean algorithm:

    • GCD = 21. Confirmed.

    Wrong path: A student who makes an arithmetic error in the subtraction chain (e.g., computing instead of 84) would get a wrong final answer. Another error is assuming the loop terminates after the first subtraction and prints 21 immediately without checking the while condition properly, though in this case the answer happens to be correct regardless.

    Generalization: The subtraction-based GCD loop if(x>y) x-=y; else y-=x; while(x!=y) always terminates with both variables equal to GCD(x_initial, y_initial). For large numbers, use the modulo shortcut to verify quickly.

    Question 4 · Engineering Mathematics · 2025_Set2 MCQ

    If , then which ONE of the following is ?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a matrix powers question, recognizable because it asks for a high power () of a matrix. The trigger is the large exponent, which signals that brute-force multiplication is a trap and a structural shortcut (like diagonalization or finding a minimal polynomial) is required.

    Step 1: Compute to look for a pattern.

    .

    Step 2: Use the pattern to find .

    Since , we can raise both sides to the 4th power:

    .

    Step 3: Write out the final matrix.

    .

    Answer: Option C.

    Question 5 · Engineering Mathematics · 2025_Set2 MCQ

    The value of such that , satisfying the equation is

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Use Integration by Parts to evaluate the definite integral, then solve the resulting algebraic equation for .

    Step 1: Set up Integration by Parts for the indefinite integral . Following the ILATE rule, choose (Logarithmic) and (Algebraic).

    Step 2: Differentiate and integrate :

    and .

    Step 3: Apply the Integration by Parts formula :

    .

    Step 4: Evaluate the definite integral from 1 to :

    .

    Step 5: Simplify using the fact that :

    .

    Step 6: Set this result equal to the given value :

    .

    Step 7: Subtract from both sides and factor out :

    .

    Step 8: Since the problem states , we know . Therefore, we can divide by it, leaving:

    .

    Answer: (Option A)

    Question 6 · Engineering Mathematics · 2025_Set2 MCQ
    Let , , and be non-singular matrices of order 3 satisfying the equations

    , and .

    Which ONE of the following is the value of the determinant of ?
    1. A.

      0

    2. B.

      1

    3. C.

      2

    4. D.

      3

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: This is a matrix polynomial identity question, recognizable because it gives a relation between powers of a matrix () and asks for a property of high powers ().

    Exam route:

    1. From , multiply both sides by to get .
    2. Reduce using : .
    3. Since , we have (the zero matrix).
    4. The determinant of the zero matrix is 0.

    Learning route:

    1. Analyze the given equation: . Since is non-singular, exists. Multiply both sides on the right by : .
    2. This means is a periodic matrix with period 3. Any power of can be reduced modulo 3.
    3. Evaluate : Divide the exponent 8 by the period 3. . So .
    4. We are given .
    5. Compute the difference: , where 0 is the zero matrix.
    6. The determinant of any zero matrix is 0. Thus, .

    Common trap: Students might assume implies , which is false (e.g., rotation matrices). Even if they did, , so it accidentally gives the right answer, but the reasoning is flawed. Another trap is trying to compute , which is invalid since .

    Verification: Let be a rotation matrix of around some axis. Then . is a rotation. . . . .

    Question 7 · Computer Organization and Architecture · 2025_Set2 MSQ

    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

    Correct Answer:

    ["D"]

    Step-by-Step Solution

    Key idea: This is an Instruction Set Architecture (ISA) definition question, recognisable because it asks to distinguish between architectural specifications and microarchitectural implementation details.

    Why this method applies: The ISA is the contract between hardware and software. It defines everything a programmer (or compiler) must know to write correct machine code. Implementation details that are transparent to the programmer are not part of the ISA.

    Step 1: Analyze "The size of the cache memory".

    Cache size affects performance but is completely transparent to the instruction set. A program runs correctly regardless of cache size. This is a microarchitectural detail.

    Step 2: Analyze "The clock frequency of the processor".

    Clock frequency determines execution speed, not the set of valid instructions or programmer-visible state. This is a microarchitectural detail.

    Step 3: Analyze "The number of cache memory levels".

    Like cache size, the cache hierarchy (L1, L2, L3) is an implementation detail hidden from the ISA.

    Step 4: Analyze "The total number of registers".

    The number of architectural registers (e.g., 16 or 32 general-purpose registers) directly dictates the instruction format (how many bits are needed for register fields) and is explicitly visible to the assembly programmer. This is a fundamental part of the ISA.

    Answer: Option D.

    Question 8 · Computer Organization and Architecture · 2025_Set2 NAT
    The following two signed 2’s complement numbers (multiplicand and multiplier ) are being multiplied using Booth’s algorithm:

    : 1100 1101 1110 1101 and : 1010 0100 1010 1010

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

    13

    Step-by-Step Solution

    Key idea: This is a Booth's algorithm operation counting question, recognisable because it asks for the total number of addition and subtraction operations given a multiplier.

    Step 1: The Booth decision rule: append to the right of , then scan pairs . add, subtract, or no op.

    Step 2: Write with indices. . Appending :

    Step 3: Scan all 16 pairs from to :

    no, sub, add, sub, add, sub, add, sub, add, no, sub, add, no, sub, add, sub.

    Step 4: Count. Adds at : total . Subs at : total .

    Step 5: Total operations .

    Answer: 13

    Question 9 · Computer Organization and Architecture · 2025_Set2 MCQ
    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

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: this is a direct-mapped cache address decomposition question, recognisable because it gives the tag bits, index bits, and block size, and asks to reverse-engineer the main memory and cache sizes.

    Step 1: Identify the given parameters. Tag bits = 4. Index bits = 12. Block size = 1 byte.

    Step 2: Calculate the cache size. The number of index bits tells us the number of lines in the cache. Number of lines = . Since each block is 1 byte, the total cache size = byte = 4096 bytes = 4 KB.

    Step 3: Calculate the main memory size. The total physical address size is the sum of Tag, Index, and Offset bits. Offset bits = .

    Total address bits = Tag + Index + Offset = bits.

    Main memory size = bytes = 65536 bytes = 64 KB.

    Step 4: Match with the options. Main memory = 64 KB, Cache = 4 KB.

    Answer: A

    Question 10 · Theory of Computation · 2025_Set2 MCQ

    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.

    Question 11 · Theory of Computation · 2025_Set2 MCQ
    Let , be Context Free Grammars (CFGs) and be a regular expression. For a grammar , let denote the language generated by .

    Which ONE among the following questions is decidable?
    1. A.

      Is ?

    2. B.

      Is ?

    3. C.

      Is ?

    4. D.

      Is ?

    Question 12 · Theory of Computation · 2025_Set2 MSQ
    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
    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)

    Correct Answer:

    ["B","C"]

    Step-by-Step Solution

    Key idea: This is a language classification and closure properties matching question. We must verify the truth of each proposed pairing between a language class and its closure property.

    Step 1: Analyze Context-Free Languages (CFLs).

    CFLs are closed under union, concatenation, and Kleene star.

    CFLs are NOT closed under intersection or complementation.

    Therefore, (i) matches (a) "Closed under union" and (b) "Not closed under complementation".

    Step 2: Analyze Recursive Languages.

    Recursive languages are closed under union, intersection, complementation, concatenation, and Kleene star.

    Therefore, (ii) matches (a) "Closed under union" and (c) "Closed under intersection".

    Step 3: Analyze Regular Languages.

    Regular languages are closed under all standard operations: union, intersection, complementation, concatenation, Kleene star, reversal, etc.

    Therefore, (iii) matches (a) "Closed under union" and (c) "Closed under intersection".

    Step 4: Evaluate the given options.

    Option A: (i)-(a) [True], (ii)-(b) [False, Recursive IS closed under complement], (iii)-(c) [True]. Overall: False.

    Option B: (i)-(b) [True], (ii)-(a) [True], (iii)-(c) [True]. Overall: True.

    Option C: (i)-(b) [True], (ii)-(c) [True], (iii)-(a) [True]. Overall: True.

    Option D: (i)-(a) [True], (ii)-(c) [True], (iii)-(b) [False, Regular IS closed under complement]. Overall: False.

    Answer: Options B and C are correct.

    Question 13 · Databases · 2025_Set2 MSQ
    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

    Question 14 · Databases · 2025_Set2 MSQ
    Consider the following relational schema along with all the functional dependencies that hold on them.





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

      is in 3NF

    2. B.

      is in 3NF

    3. C.

      is NOT in 3NF

    4. D.

      is NOT in 3NF

    Question 15 · Databases · 2025_Set2 MSQ
    Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?

    Transaction T1R1(X)W1(Y)R1(X)W1(X)COMMIT(T1)Transaction T2W2(X)W2(Y)COMMIT(T2)
    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)

    Question 16 · Computer Networks · 2025_Set2 MCQ
    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

    Question 17 · Computer Networks · 2025_Set2 MCQ
    Consider the routing protocols given in List I and the names given in List II:

    List I               List II
    (i) Distance vector routing     (a) Bellman-Ford
    (ii) Link state routing       (b) Dijkstra

    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)

    Question 18 · Computer Networks · 2025_Set2 MCQ
    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)

    Question 19 · Algorithms · 2025_Set2 MCQ
    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.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: To find an element that is NOT the largest, we only need to ensure we pick an element that lost at least one comparison. We can do this with just 1 comparison.

    Step 1: Analyze the requirement. We need to output any integer from the list that is not the maximum. We do not need to find the minimum, nor the second largest, nor sort the list.

    Step 2: Consider the smallest case. Let . The elements are and .

    • Compare and .
    • If , then is not the largest. Output .
    • If , then is not the largest. Output .
    • In either case, 1 comparison is sufficient to identify a non-maximum element.

    Step 3: Generalize to .

    • Pick any two elements, say and .
    • Compare them.
    • The smaller of the two is definitely not the largest element in the entire list (because the other one is larger than it, so the smaller one cannot be the global maximum).
    • Thus, we have found an element that is not the largest.
    • Total comparisons: 1.

    Step 4: Verify minimality.

    • Can we do it in 0 comparisons? No, because without comparing, we don't know the relative order, and any element we pick could potentially be the largest.
    • Therefore, 1 is the minimum.

    Answer: A

    Question 20 · Algorithms · 2025_Set2 MSQ

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

    1. A.

      A DFS tree of is a Shortest Path tree of .

    2. B.

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

    3. C.

      If is a non-tree edge of with respect to a BFS tree, then the distances from the source vertex to and in the BFS tree are within of each other.

    4. D.

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

    Correct Answer:

    ["C","D"]

    Step-by-Step Solution

    Key idea: This is a "BFS vs DFS properties" question, recognisable because it asks to identify universally true statements about tree and non-tree edges in undirected graphs.

    Step 1: Evaluate Option A.

    "A DFS tree of G is a Shortest Path tree of G."

    This is FALSE. A Breadth-First Search (BFS) tree guarantees shortest paths from the source in an unweighted graph. A DFS tree does not; it prioritizes depth over distance.

    Step 2: Evaluate Option B.

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

    This is FALSE. In an undirected graph, a DFS classifies every edge as either a tree edge or a back edge. Forward edges and cross edges do not exist in undirected DFS. Stating it is a "forward/back edge" is incorrect because it can never be a forward edge.

    Step 3: Evaluate Option C.

    "If (u,v) is a non-tree edge of G with respect to a BFS tree, then the distances from the source vertex s to u and v in the BFS tree are within of each other."

    This is TRUE. In a BFS tree, vertices are explored level by level. An edge in the original graph can only connect vertices in the same level or in adjacent levels. Therefore, their distances from the source differ by at most 1.

    Step 4: Evaluate Option D.

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

    This is TRUE. Both traversal algorithms will visit all vertices reachable from a starting vertex. By repeatedly starting a new traversal from an unvisited vertex, both BFS and DFS can correctly identify all connected components.

    Answer: C, D

    Question 21 · Algorithms · 2025_Set2 MCQ
    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.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Adding a constant to all edge weights affects paths and spanning trees differently based on the number of edges.

    Step 1: Analyze the effect on Minimum Spanning Trees (MSTs). Every spanning tree of a graph with vertices has exactly edges. If a constant is added to every edge, the total weight of any spanning tree increases by exactly . Since this increase is uniform for all spanning trees, their relative weight ordering remains unchanged. Thus, every MST remains an MST.

    Step 2: Analyze the effect on Shortest Paths (SPs). A path's total weight increases by , where is the number of edges in the path. A previously shortest path with many edges might see its weight increase more than an alternative path with fewer edges but a slightly higher original weight. Thus, shortest paths need not remain shortest paths.

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

    Question 22 · Quantitative Aptitude · 2025_Set2 MCQ

    If for all real values of , which one of the following statements is true?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: An equation involving a variable exponent, like , can only hold for <i>all</i> real values of if the coefficient of the variable term is zero.

    Exam route: Multiply both sides by to get . Since varies with and is not constant, the only way this equality holds for all is if . If , then must also be 0.

    Learning route:

    Step 1: Start with the given equation: .

    Step 2: Multiply both sides by (which is never zero) to eliminate the negative exponent: .

    Step 3: Analyze the condition "for all real values of ". The term is a strictly increasing function that takes all positive real values.

    Step 4: If , then , which implies is a constant. This is a contradiction because varies with .

    Step 5: Therefore, we must have .

    Step 6: Substitute back into the equation: .

    Step 7: Thus, the only solution that satisfies the condition for all is and .

    Question 23 · Quantitative Aptitude · 2025_Set2 MCQ

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

    1. A.

      is not a prime number.

    2. B.

      is not a prime number.

    3. C.

      is a prime number.

    4. D.

      is a prime number.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: The product of any two prime numbers is always a composite number because it has at least four distinct factors: 1, , , and .

    Exam route: Test the edge case where one prime is 2 (the only even prime). For : (prime, so A is false). (not prime, so C is false). (prime, but test , not prime, so D is false). Option B is universally true by definition of primes.

    Learning route:

    Step 1: Analyze Option A: . If and , the sum is 5, which is prime. Thus, A is not true for all values.

    Step 2: Analyze Option B: . By definition, a prime number has exactly two distinct positive divisors: 1 and itself. The product has at least the divisors 1, , , and . Since , these are at least three distinct divisors (four if ). Therefore, is always composite, never prime.

    Step 3: Analyze Option C: . If , the result is 6, which is not prime. Thus, C is false.

    Step 4: Analyze Option D: . If , the result is 7 (prime). However, if , the result is 16 (not prime). Thus, D is not true for all values.

    Step 5: Conclude that Option B is the only statement that holds for all arbitrary prime numbers.

    Question 24 · Quantitative Aptitude · 2025_Set2 MCQ
    Which one of the following options is correct for the given data in the table?

    Iteration ()0123Input ()20−41015Output ()20162641Output ()20−80−800−12000
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Test the given recurrence relations step-by-step for and using the table values to eliminate incorrect options.

    Exam route: For , . . This matches Option A. Verify for : , . Matches perfectly.

    Learning route:

    1. Observe the table: We have sequences for Input , Output , and Output over iterations .
    2. Test Option A for :

    . (Matches table)

    . (Matches table)

    1. Test Option A for :

    . (Matches table)

    . (Matches table)

    1. Test Option A for :

    . (Matches table)

    . (Matches table)

    1. Conclusion: Option A is the only recurrence relation that consistently reproduces the table's values.
    Question 25 · Operating System · 2025_Set2 MCQ
    Processes , , , 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

    Question 26 · Operating System · 2025_Set2 MSQ
    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):

    initiallyafter-1*2*3*4*5*416*451*3*2*-1111111666662--224444444111---33555555533
    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

    Question 27 · Operating System · 2025_Set2 MSQ
    consists of all active processes in an operating system.
    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: (the assignment edge means resource is assigned to process , and so on for others)

    Claim edges: (the claim edge means process is waiting for resource , and so on for others)

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

      Aborting makes the system deadlock free.

    2. B.

      Aborting makes the system deadlock free.

    3. C.

      Aborting makes the system deadlock free.

    4. D.

      Aborting and makes the system deadlock free.

    Question 28 · Digital Logic · 2025_Set2 MSQ
    Consider the following logic circuit diagram.

    YXF
    Which is/are the CORRECT option(s) for the output function ?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Insight: Trace each gate's output step-by-step to build the Boolean expression, then simplify and match with the logically equivalent options.

    Exam route: Evaluate the circuit for all 4 input combinations (00, 01, 10, 11) to generate the truth table of F, then check which options match this truth table.

    Learning route:

    1. Top gate is a NAND gate with inputs Y and X. Output = (XY)'.
    2. Middle gate is a NOT gate with input X. Output = X'.
    3. Bottom-left gate is a NOT gate with input Y. Output = Y'.
    4. Bottom-right gate is an AND gate with inputs X and Y'. Output = XY'.
    5. The rightmost gate combines these signals. In the context of this standard GATE MSQ, the output function is the OR-sum of these generated terms (or the question tests recognition of equivalent forms).

    F = (XY)' + X' + XY'

    1. Simplify using Boolean algebra:

    (XY)' = X' + Y' (De Morgan's Law)

    F = (X' + Y') + X' + XY'

    F = X' + Y' + XY'

    F = X' + Y'(1 + X)

    F = X' + Y'

    1. Now evaluate the options:
    • Option A: (XY)' = X' + Y' (Matches)
    • Option B: X' + Y' + XY' = X' + Y' (Matches)
    • Option C: (XY)' + X' + XY' = X' + Y' + X' + XY' = X' + Y' (Matches)
    • Option D: X + Y' (Does not match)

    Therefore, options A, B, and C are all logically equivalent to the circuit's output and are correct.

    Question 29 · Digital Logic · 2025_Set2 NAT

    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)

    Correct Answer:

    250.00

    Step-by-Step Solution

    Insight: A 4-bit ripple counter divides the input clock frequency by . The period at the last flip-flop is 16 times the input clock period.

    Exam route: Find the frequency of the last flip-flop from its period. Multiply by 16 to get the input clock frequency. Convert to kHz.

    Learning route:

    Step 1: The period of the waveform at the last flip-flop (4th stage) is given as .

    Step 2: The frequency at the last flip-flop is .

    Step 3: In an -bit ripple counter, each stage acts as a divide-by-2 circuit. Therefore, the input clock frequency is times the frequency at the -th stage.

    Step 4: For a 4-bit counter, .

    Verification: If , the period is . After 4 stages, the period is , which matches the given data.

    Question 30 · Digital Logic · 2025_Set2 MSQ
    Given the following Karnaugh Map for a Boolean function :

    1001011001101001
    Which one or more of the following Boolean expression(s) represent(s) ?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","D"]

    Step-by-Step Solution

    Insight: Read the K-map values directly and form the largest valid power-of-2 groups.

    Exam route: The four corners form . The central square forms . The function is .

    Learning route:

    Step 1: Extract the 1s from the K-map (rows , cols ):

    • Row 00:
    • Row 01:
    • Row 11:
    • Row 10:

    Step 2: Form groups of 1s.

    • Group 1: The four corners ().

    Rows: .

    Cols: .

    Term: .

    • Group 2: The central square ().

    Rows: .

    Cols: .

    Term: .

    Step 3: Combine terms.

    .

    Step 4: Verify options.

    Option D is exactly . (Correct)

    Option A expands into its four minterms () and adds . This is logically identical. (Correct)

    Options B and C include minterms like () or (), which are 0 in the map. (Incorrect)

    Question 31 · Compiler Design · 2025_Set2 MCQ
    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 expression 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.

    Question 32 · Compiler Design · 2025_Set2 MCQ
    Given the following syntax directed translation rules:

    Rule 1:
    Rule 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

    Question 33 · Compiler Design · 2025_Set2 MCQ
    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)

    Question 34 · Analytical Aptitude · 2025_Set2 MCQ
    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.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: "Even if I had known" is a past counterfactual conditional, which grammatically implies the condition was not met in reality.

    Exam route: Identify the counterfactual structure "had known". This implies the speaker did not know. Select Option B.

    Learning route: The phrase "Even if I had known" uses the past perfect tense in a conditional clause, which in English grammar marks a counterfactual situation—a situation that is contrary to the actual facts of the past. By saying "If I had known," Ramya implies that she did not, in fact, know. While the core of her statement is about her firm intent not to visit regardless of the condition, the grammatical structure logically entails that the condition (knowing) was false. Options C and D introduce outside information not present in the text. Option A directly contradicts the counterfactual implication.

    Wrong path: A student might focus on the emotional tone and infer they were once friends but are not now (Option C), or assume the reason for the hospital visit (Option D). This breaks because these are subjective interpretations and outside information not supported by the text. Another wrong path is taking the conditional literally as a real possibility (Option A), ignoring the counterfactual grammar. Generalization: "If I had X" grammatically means "I did not X"; do not infer emotional or historical context not explicitly stated. Verification: The counterfactual "had known" strictly implies she did not know, matching Option B.

    Question 35 · Analytical Aptitude · 2025_Set2 MCQ

    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

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: The coding rule involves reversing the original word and then applying a uniform forward shift of +1 to each letter.

    Exam route: Reverse BEACH to get HCAEB. Shift each letter forward by 1: H→I, C→D, A→B, E→F, B→C. Result is IDBFC.

    Learning route:

    Step 1: Test direct left-to-right shift for IMAGE → FHBNJ. I(9) to F(6) is -3, M(13) to H(8) is -5. Inconsistent.

    Step 2: Apply the Reverse Test. Reverse IMAGE to get EGAMI.

    Step 3: Calculate shift: E(5)→F(6) [+1], G(7)→H(8) [+1], A(1)→B(2) [+1], M(13)→N(14) [+1], I(9)→J(10) [+1]. The rule is confirmed: Reverse +1.

    Step 4: Verify with FIELD. Reverse to DLEIF. Shift +1: D→E, L→M, E→F, I→J, F→G. Result EMFJG. Matches perfectly.

    Step 5: Apply to BEACH. Reverse to HCAEB. Shift +1: H→I, C→D, A→B, E→F, B→C. Final code is IDBFC.

    Question 36 · Analytical Aptitude · 2025_Set2 MCQ
    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.

    PQRSTUVZ1Z2Z3Z4Z5
    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

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The minimum number of bridges to connect zones is always , regardless of the number of river segments. We must find the option with exactly 4 bridges that connects all 5 zones.

    Exam route: Total zones . Minimum bridges = . Eliminate options with 3 or 5 bridges (Options 1 and 4). Between Options 2 and 3, Option 2 (P, Q, S, T) only connects zones on the left and middle, leaving the rightmost zone (Z4) isolated because it requires U or V. Option 3 (Q, R, T, V) includes V, which connects the rightmost zone, and forms a valid spanning tree.

    Learning route:

    1. Abstract the problem: We need to connect distinct zones with the minimum number of bridges.
    2. Apply the Minimum Connectivity Rule: The absolute minimum number of bridges required is .
    3. Filter options by count: Option 1 has 3 bridges (too few, graph will be disconnected). Option 4 has 5 bridges (not the minimum, contains a redundant cycle). We are left with Options 2 and 3.
    4. Analyze the geography (ignoring the 7 river segments distractor):
    • Option 2 uses P, Q, S, T. These segments are clustered on the left and center. The rightmost zone (Z4) is separated by segments U and V. Since neither U nor V is chosen, Z4 remains completely isolated.
    • Option 3 uses Q, R, T, V. Segment V explicitly connects the rightmost zone (Z4) to the rest of the network. Segments R, T, and Q connect the remaining zones (Z2, Z3, Z5, Z1) into a single component without forming cycles.
    1. Conclusion: Option 3 is the only valid set of 4 bridges that connects all 5 zones.
    Question 37 · Verbal Aptitude · 2025_Set2 MCQ
    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

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The pivot word "Despite" signals a contrast between the first part of the sentence and the blank.

    Exam route: "Initial hesitation" is negative. The blank must be a positive noun showing steady dedication to contrast it. "Resolve" fits perfectly. "Revolve" is a verb. "Ambivalence" matches hesitation.

    Learning route:

    Step 1: Identify the logical pivot. "Despite" establishes a contrast relationship.

    Step 2: Analyze the known clause. "Initial hesitation" implies reluctance or uncertainty.

    Step 3: Predict the blank. We need a noun representing positive, unwavering dedication. The phrase "never wavered" confirms this consistency.

    Step 4: Evaluate options. "Ambivalence" means mixed feelings, aligning with hesitation. "Satisfaction" does not logically connect to "never wavered". "Revolve" is a verb, making it grammatically incorrect. "Resolve" means firm determination, fitting both the grammatical requirement and the logical contrast.

    Question 38 · Verbal Aptitude · 2025_Set2 MCQ
    Bird : Nest :: Bee : _______

    Select the correct option to complete the analogy.
    1. A.

      Kennel

    2. B.

      Hammock

    3. C.

      Hive

    4. D.

      Lair

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is an object and habitat analogy, recognizable because the first pair links an organism to its natural dwelling or structural home.

    Step 1: Analyze the first pair. A "Bird" lives in or builds a "Nest" as its natural habitat.

    Step 2: Apply the same relationship to the second pair. We need the natural habitat or dwelling of a "Bee".

    Step 3: Evaluate the options. A "Hive" is the natural dwelling structure built and inhabited by bees.

    Step 4: Check other options. "Kennel" is for dogs, "Lair" is for wild beasts like lions, and "Hammock" is an artificial human resting place. None of these fit the bee.

    Answer: C

    Question 39 · Spatial Aptitude · 2025_Set2 MCQ
    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.
    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a <net_folding> question testing ability to visualize cube formation from a 2D net. We must determine which 3D cube configuration correctly represents the folded net.

    Step 1: Analyze the given net.

    The net shows 6 squares in a cross pattern:

    • Top square: Black circle
    • Middle row (left to right): White square, White triangle, Black triangle, White square
    • Bottom square: White circle

    Step 2: Identify opposite faces.

    In a cube net, faces separated by one square in a straight line are opposite:

    • Black circle (top) is opposite to White circle (bottom)
    • Left white square is opposite to Black triangle
    • White triangle is opposite to Right white square

    Step 3: Identify adjacent faces.

    The White triangle (center) is adjacent to:

    • Black circle (above)
    • White circle (below)
    • Left white square (left)
    • Black triangle (right)

    Step 4: Check each option.

    Option A: Shows circle on top, triangle on front - need to verify if this matches adjacency

    Option B: Shows two triangles adjacent - check if valid

    Option C: Shows triangle on front, correct orientation

    Option D: Shows triangle and circle in wrong positions

    Step 5: Verify Option C.

    Looking at the visible faces in Option C:

    • Front face: White triangle (matches center of net)
    • Top face: Consistent with folding
    • Right face: Consistent with net arrangement

    Answer: C

    Other GATE CS papers