GATE CS
    Previous Year Papers
    Verified Solutions Included

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

    GATE CS 2026_Set1 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

    Section-wise Paper Structure

    Engineering Mathematics

    10 Qs

    15% of total marks

    Computer Organization and Architecture

    9 Qs

    14% of total marks

    Programming and Data Structures

    8 Qs

    12% of total marks

    Computer Networks

    5 Qs

    8% of total marks

    Theory of Computation

    4 Qs

    6% of total marks

    Operating System

    4 Qs

    6% of total marks

    Databases

    4 Qs

    6% of total marks

    Compiler Design

    4 Qs

    6% of total marks

    Algorithms

    4 Qs

    6% of total marks

    Quantitative Aptitude

    3 Qs

    5% of total marks

    Digital Logic

    3 Qs

    5% of total marks

    Analytical Aptitude

    3 Qs

    5% of total marks

    Verbal Aptitude

    2 Qs

    3% of total marks

    Spatial Aptitude

    2 Qs

    3% of total marks

    Free Solved Questions with Step-by-Step Solutions

    Authentic examination problems with detailed derivations and answer keys.

    Question 1
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    An urn contains one red ball and one blue ball. At each step, a ball is picked uniformly at random from the urn, and this ball together with another ball of the same color is put back in the urn. The probability that there are equal number of red and blue balls after two steps is

    Question 2
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    Consider matrices with their elements from . The number of such matrices with even number of s in every row and every column is

    Question 3
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    For , the maximum multiplicity of any eigenvalue of an matrix with elements from is

    Question 4
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Match each addressing mode in List I with a data element or an element of a data structure (in a high-level language) in List II:

    List IList II
    P. Immediate1. Element of an array
    Q. Indirect2. Pointer
    R. Base with index3. Element of a record
    S. Base with offset/displacement4. Constant
    Question 5
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a processor P whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand.

    Which one of the following sequences of instructions corresponds to the high-level language statement ?

    Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers.
    Question 6
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?

    Question 7
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let be an odd number greater than 100. Consider a binary minheap with elements stored in an array whose index starts from 1.

    Which of the following indices of do/does NOT correspond to any leaf node of the minheap?
    Question 8
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a hash table that is initially empty. The hash table is maintained using open addressing with linear probing. The hash function used is .

    Consider the following sequence of insertions performed on :


    Which of the following positions in the hash table is/are empty after these insertions are performed?
    Question 9
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    The height of a binary tree is the number of edges in the longest path from the root to a leaf in the tree. The maximum possible height of a full binary tree with 23 nodes is _________. (answer in integer)

    Question 10
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    With respect to a TCP connection between a client and a server, which one of the following statements is true?

    Question 11
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    Which of the following statements is/are true with respect to the interaction of a web browser with a web server using HTTP 1.1?

    Question 12
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    A TCP sender successfully establishes a connection with a TCP receiver and starts the transmission of segments. The TCP congestion control mechanism’s slow-start threshold is set to 10000 segments. Assume that the round-trip time is fixed at 1 millisecond. Assume that the sender always has data to send, the segments are numbered from 1, and no segment is lost. Let denote the time (in milliseconds) at which the transmission of segment number 2000 starts.

    Which one of the following options is correct?
    Question 13
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following grammar where is the start symbol, and and are terminal symbols.


    Which of the following statements is/are true?
    Question 14
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let M be a nondeterministic finite automaton (NFA) with 6 states over a finite alphabet.

    Which of the following options CANNOT be the number of states in the minimal deterministic finite automaton (DFA) that is equivalent to ?
    Question 15
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let and be two languages over a finite alphabet, such that and are regular languages.

    Which of the following statements is/are always true?
    Question 16
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    With respect to deadlocks in an operating system, which of the following statements is/are FALSE?

    Question 17
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a system consisting of instances of a resource , being shared by 5 processes. Assume that each process requires a maximum of two instances of resource and a process can request or release only one instance at a time. Further, a process can request the second instance of the resource only after acquiring the first instance.

    The minimum value of for the system to be deadlock-free is ________. (answer in integer)
    Question 18
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following program snippet. Assume that the program compiles and runs successfully. Further, assume that the fork() system call is always successful in creating a process.

    int main () {
       int i;
       for (i = 0; i < 3; i++){
          if (fork() == 0){
            continue;
          }
          break;
       }
       printf("Hello!");
       return 0;
    }

    The total number of times that the printf statement gets executed is ________. (answer in integer)
    Question 19
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let , , and be the attributes of a relation in a relational schema. Let indicate functional dependency in the context of a relational database, where .

    Which of the following options is/are always true?
    Question 20
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    In the context of relational database normalization, which of the following statements is/are true?

    Question 21
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a relational database schema with two relations and .

    Let be a tuple relational calculus expression.

    Which one of the following relational algebraic expressions is equivalent to ?
    Question 22
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following C statements:

    char *str1 = "Hello; /* Statement S1 */
    char *str2 = "Hello;"; /* Statement S2 */
    int *str3 = "Hello"; /* Statement S3 */

    Which of the following options is/are correct?
    Question 23
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    Which of the following statements is/are true?

    Question 24
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the control flow graph shown in the figure.

    ENTRYa = b + iB1a = g * kf = d - fa = c * 4B2t = g * kb = c + mB3x = g * ky = b + iB4z = c + mB5EXIT

    Which one of the following options correctly lists the set of redundant expressions (common subexpressions) in the basic blocks B4 and B5?

    Note: All the variables are integers.
    Question 25
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following recurrence relations:

    For all ,


    Assume that for all , and .

    Which one of the following options is correct?
    Question 26
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let be an undirected, edge-weighted graph with integer weights. The weight of a path is the sum of the weights of the edges in that path. The length of a path is the number of edges in that path.

    Let be a vertex in . For every and for every , let denote the weight of a shortest path (in terms of weight) from to of length at most . If there is no path from to of length at most , then .

    Consider the statements:

    S1: For every and , .

    S2: For every , if is part of a shortest path (in terms of weight) from to , then for every , .

    Which one of the following options is correct?
    Question 27
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let be a simple, undirected, edge-weighted graph with unique edge weights.

    Which of the following statements about the minimum spanning trees (MST) of is/are true?
    Question 28
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    A student needs to enroll for a minimum of 60 credits. A student cannot enroll for more than 70 credits. The credits are divided amongst project and three distinct sets of courses namely, core courses, specialization courses, and elective courses. It is compulsory for a student to enroll for exactly 15 credits of core courses and exactly 20 credits of project. In addition, a student has to enroll for a minimum of 10 credits of specialization courses. The maximum credits of elective courses that a student can enroll for is ______

    Question 29
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    For positive real numbers and , the function is defined as:
    . The max function is defined as:

    The graph below shows the plot of a function versus .

    can be expressed as _____.

    0 10 20 30 0 2 4 6 8 10 12 S N(S)
    Question 30
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    An unbiased six-faced dice whose faces are marked with numbers 1, 2, 3, 4, 5, and 6 is rolled twice in succession and the number on the top face is recorded each time. The probability that the number appearing in the second roll is an integer multiple of the number appearing in the first roll is __________

    Question 31
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following Boolean expression of a function :


    Which of the following expressions is/are equivalent to ?
    Question 32
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a 2-bit saturating up/down counter that performs the saturating up count when the input is 0, and the saturating down count when is 1. The Next State table of the counter is as shown. The counter is built as a synchronous sequential circuit using D flip-flops.

    InputCurrent
    State
    Next
    State
    00001
    00110
    01011
    01111
    10000
    10100
    11001
    11110


    Which one of the following options corresponds to the expressions for the inputs of the D flip-flops, and ?
    Question 33
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a Boolean function F with the following minterm expression:


    Which of the following options is/are the minimal sum-of-products expression(s) of F?
    Question 34
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    Consider a knock-out women’s badminton singles tournament where there are no ties. The loser in each game is eliminated from the tournament. Every player plays until she is defeated or remains the last undefeated player. The last undefeated player is declared the winner of the tournament. If there are 64 players in the beginning of the tournament, how many games should be played in total to declare the winner of the tournament?

    Question 35
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    ‘When the teacher is in the room, all students stand silently.’

    If the above statement is true, which one of the following statements is not necessarily true?
    Question 36
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    In the 2020 summer Olympics’ Javelin throw finals, Neeraj Chopra exhibited a spectacular performance to win the gold medal. The silver medal was won by Jakub Vadlejch and the bronze medal was won by Vitezlav Vesely. There were six rounds of throws with each athlete having one throw per round. The best of all the throws of each athlete is considered for the medal. Following were the observations about the throws:

    i. The first and second rounds were dominated by Neeraj Chopra with a gold medal performance in his second throw, while the other two athletes did not have any medal winning throws in these rounds.

    ii. The throws in the last round by both Jakub Vadlejch and Vitezlav Vesely were fouls and were not considered for scoring.

    iii. After four rounds, Vitezlav Vesely was in the second position and could not improve upon his best throw in the succeeding rounds.

    iv. In the fourth round, the throw by Jakub Vadlejch was the best in that round.

    In which round did Vitezlav Vesely have his best throw?
    Question 37
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    The antonym of the word protagonist is ________.

    Question 38
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Combinatorics deals with problems involving counting. For example, “How many distinct arrangements of N distinct objects in M spaces on a circle are possible?” is a typical problem in combinatorics. This kind of counting is sometimes used in the modeling of several physical phenomena. Often, in such models, the different combinatorial possibilities are assigned probability values. Assigning probabilities enables the computation of the average values of physical quantities.

    Consider the following statements:

    P: Combinatorics is always invoked in the modeling of physical phenomena.

    Q: Modeling some physical phenomena involves assigning probabilities to combinatorial possibilities in order to compute average values of physical quantities.

    Based on the passage above, what can be inferred about statements P and Q?
    Question 39
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    The figure shows two 4-tile patterns.


    Either one or both of the patterns can be used any number of times and in any orientation to construct a new pattern. Which one of the options below cannot be constructed by using only these two 4-tile patterns assuming there are no overlaps among them?
    Question 40
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    In Panel I of the figure below, the front view and top view of a structure are shown. Which one of the 3D structures shown in Panel II possesses the views shown in Panel I?

    Panel I Panel II Front View Top View Front View Top View (i) Front View Top View (ii) Front View Top View (iii) Front View Top View (iv)

    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.

    Explore complete test series, official past papers, and chapter-wise study tools.

    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 2026_Set1 Question Paper with Solutions: 65 Questions, Answer Key & Section-wise Analysis

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

    Paper breakdown

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

    Free sample questions from GATE CS 2026_Set1 Question Paper

    Question 1 · Engineering Mathematics · 2026_Set1 MCQ

    An urn contains one red ball and one blue ball. At each step, a ball is picked uniformly at random from the urn, and this ball together with another ball of the same color is put back in the urn. The probability that there are equal number of red and blue balls after two steps is

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: Equal red and blue after 2 steps means exactly 1 red and 1 blue were drawn — use exchangeability or direct enumeration.

    Exam route: Start: 1R, 1B. After 2 steps, total = 4. Equal counts need 2R and 2B, so exactly red drawn. By exchangeability: . Select B.

    Learning route:

    This is a Polya Urn state question, identifiable by the reinforcement mechanism (draw, replace, add one of the same colour) and the question asking about the urn's composition after a fixed number of steps.

    Setup: Initial state: 1 red, 1 blue, total 2. After 2 draws, total = balls. For equal red and blue counts, we need 2 red and 2 blue, which means exactly 1 red and 1 blue were drawn in the 2 draws.

    Method 1 — Direct enumeration:

    List all possible sequences of 2 draws:

    • RR: → final: 3R, 1B (not equal)
    • RB: → final: 2R, 2B (equal ✓)
    • BR: → final: 2R, 2B (equal ✓)
    • BB: → final: 1R, 3B (not equal)

    Method 2 — Exchangeability formula:

    With :

    Wrong path walkthrough: A student who treats draws as independent coin flips computes , matching option C. The mistake is at the independence assumption: in a Polya Urn, the second draw's probability depends on the first draw's outcome. The reinforcement mechanism makes draws dependent, reducing the probability of mixed outcomes.

    Generalisation: In a Polya Urn, reinforcement amplifies early outcomes, making "all same colour" more likely and "mixed" less likely compared to independent draws.

    Verification: The four sequence probabilities sum to . ✓

    Answer: B)

    Question 2 · Engineering Mathematics · 2026_Set1 MCQ

    Consider matrices with their elements from . The number of such matrices with even number of s in every row and every column is

    1. A.

      512

    2. B.

      1025

    3. C.

      1023

    4. D.

      255

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a binary matrix counting problem with parity constraints, recognizable by the requirement of an "even number of 1s in every row and every column". We solve this by determining the degrees of freedom in the matrix.

    Step 1: Consider the top-left submatrix (rows 1-3, columns 1-3). The entries in this submatrix can be chosen completely freely.

    Number of ways to fill this block = .

    Step 2: Determine the remaining cells in the first 3 rows.

    For each of the first 3 rows, the entry in the 4th column is uniquely forced to make the row sum even.

    Step 3: Determine the remaining cells in the first 3 columns.

    For each of the first 3 columns, the entry in the 4th row is uniquely forced to make the column sum even.

    Step 4: Determine the bottom-right cell (row 4, column 4).

    This cell must satisfy both the 4th row parity and the 4th column parity. In a binary matrix, the sum of all row parities equals the sum of all column parities (both equal the total sum of all elements mod 2). Thus, the two constraints on the bottom-right cell are perfectly consistent, and it is uniquely determined.

    Step 5: Calculate the total.

    Since all other cells are uniquely determined by the free choices in the submatrix, the total number of valid matrices is exactly 512.

    Answer: A

    Question 3 · Engineering Mathematics · 2026_Set1 MCQ

    For , the maximum multiplicity of any eigenvalue of an matrix with elements from is

    1. A.

    2. B.

    3. C.

      1

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: The characteristic polynomial of an matrix has degree exactly , so no eigenvalue can repeat more than times — and the identity matrix achieves this bound.

    Exam route: The characteristic equation is a polynomial of degree . The maximum multiplicity of any root of a degree- polynomial is . The identity matrix has characteristic polynomial , so eigenvalue $1$ has multiplicity . Answer: .

    Learning route: This is a theoretical maximum-multiplicity question, recognisable because no specific matrix is given and the answer is in terms of .

    Step 1: For any matrix , the characteristic equation expands to a polynomial in of degree exactly .

    Step 2: By the Fundamental Theorem of Algebra, this polynomial has exactly roots counting multiplicity. The algebraic multiplicity of a single eigenvalue is the number of times it appears as a root.

    Step 3: Since the total count of all roots (with multiplicity) is , no single eigenvalue can have algebraic multiplicity exceeding .

    Step 4: To confirm is achievable, consider . Its characteristic polynomial is , giving with algebraic multiplicity exactly .

    Wrong path — Option B (): A student confuses this with the rank-nullity theorem or thinks "at least one eigenvalue must differ." This produces . It breaks at Step 4: the identity matrix is a direct counterexample where all eigenvalues are identical.

    Wrong path — Option C ($1$): A student assumes all eigenvalues must be distinct, or confuses algebraic multiplicity with the minimum geometric multiplicity. This produces $1$. It breaks at Step 3: nothing prevents all roots from coinciding.

    Wrong path — Option D (): A student does not realise the characteristic polynomial has degree exactly and thinks multiplicity can exceed the matrix size. This produces . It breaks at Step 1: a degree- polynomial cannot have a root of multiplicity .

    Generalization: The sum of algebraic multiplicities of all eigenvalues of an matrix always equals , so the maximum any single eigenvalue can claim is the entire sum.

    Verification: For , has characteristic polynomial , giving eigenvalue $1$ with multiplicity . Confirmed.

    Question 4 · Computer Organization and Architecture · 2026_Set1 MCQ
    Match each addressing mode in List I with a data element or an element of a data structure (in a high-level language) in List II:

    List IList II
    P. Immediate1. Element of an array
    Q. Indirect2. Pointer
    R. Base with index3. Element of a record
    S. Base with offset/displacement4. Constant
    1. A.

      P–4, Q–3, R–1, S–2

    2. B.

      P–4, Q–2, R–1, S–3

    3. C.

      P–1, Q–4, R–3, S–2

    4. D.

      P–2, Q–3, R–1, S–4

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a concept mapping question, recognisable because it asks to link hardware-level addressing modes with software-level data structures. The method is to analyse the components of each addressing mode and match them to how high-level languages access data.

    Step 1: Analyse Immediate addressing. The operand is directly given in the instruction itself. This corresponds to a literal constant in code. So, P matches 4.

    Step 2: Analyse Indirect addressing. The instruction gives the address of the address (or a register contains the address of the operand). This is the exact definition of a pointer (a variable that stores the memory address of another variable). So, Q matches 2.

    Step 3: Analyse Base with index addressing. The effective address is Base + Index. The base is the start of a collection, and the index is a variable offset (like a loop counter). This is used to access elements of an array. So, R matches 1.

    Step 4: Analyse Base with offset/displacement addressing. The effective address is Base + fixed Offset. The base is the start of a data structure, and the offset is a fixed distance to a specific field. This is used to access elements of a record or struct. So, S matches 3.

    Conclusion: P-4, Q-2, R-1, S-3. This matches option B.

    Question 5 · Computer Organization and Architecture · 2026_Set1 MCQ
    Consider a processor P whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand.

    Which one of the following sequences of instructions corresponds to the high-level language statement ?

    Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers.
    1. A.

      ADD Z, X, Y

    2. B. LOAD R0, X
      ADD Z, R0, Y
    3. C. ADD R0, X, Y
      STORE Z, R0
    4. D. LOAD R0, X
      LOAD R1, Y
      ADD R2, R0, R1
      STORE Z, R2
    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a load-store architecture translation question, recognisable because it asks to map a high-level variable assignment to a sequence of assembly instructions under strict memory-access rules.

    Why this method applies: In a load-store architecture, the ALU cannot operate directly on memory operands. Data must be explicitly moved into registers before computation, and the result must be stored back to memory.

    Step 1: Identify the operands. X and Y are memory operands, and Z is the memory destination.

    Step 2: Load the operands into registers. We need two LOAD instructions to bring X and Y into registers (e.g., R0 and R1).

    Step 3: Perform the computation. Use an ADD instruction with register operands to compute X + Y, storing the result in a third register (e.g., R2).

    Step 4: Store the result. Use a STORE instruction to write the value from R2 back to the memory location Z.

    Matching this sequence to the options:

    Option A attempts a memory-memory ADD, which is invalid in load-store architecture.

    Option B loads X but tries to ADD with Y still in memory, which is invalid.

    Option C attempts to ADD memory operands directly, which is invalid.

    Option D correctly loads X into R0, loads Y into R1, adds them into R2, and stores R2 into Z.

    Answer: Option D.

    Question 6 · Computer Organization and Architecture · 2026_Set1 MCQ

    Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?

    1. A.

      Read-after-read

    2. B.

      Read-after-write

    3. C.

      Write-after-read

    4. D.

      Write-after-write

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a conceptual MCQ on data dependency types, recognisable because it asks which dependency among register operands causes a data hazard in a pipelined processor.

    Step 1: Recall the three types of data dependencies between instructions I (earlier) and J (later):

    • RAW (Read After Write): J reads a register that I writes. This is a true data dependency because J genuinely needs the value I produces.
    • WAR (Write After Read): J writes a register that I reads. This is a name dependency (anti-dependency).
    • WAW (Write After Write): J writes a register that I also writes. This is a name dependency (output dependency).

    Step 2: In a standard in-order 5-stage pipeline, instructions execute in program order. WAR and WAW hazards cannot occur because reads always happen before later writes in program order, and writes complete in order. Only RAW creates a genuine hazard where J might read a stale value before I has written the new one.

    Step 3: Read-after-read (option A) is not even a recognized dependency type that causes any hazard, since both instructions only read and neither modifies the value.

    Step 4: Therefore, only Read-after-write (RAW) causes a data hazard in a pipelined processor.

    Answer: B

    Question 7 · Programming and Data Structures · 2026_Set1 MSQ
    Let be an odd number greater than 100. Consider a binary minheap with elements stored in an array whose index starts from 1.

    Which of the following indices of do/does NOT correspond to any leaf node of the minheap?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["B","C"]

    Step-by-Step Solution

    Insight: In a complete binary tree with nodes, the leaf nodes are exactly those at indices to . The internal nodes are $1$ to . We just need to check which options fall in the internal node range.

    Exam route:

    1. Identify the range of leaf indices for a heap of size : from to .
    2. Since is odd, let . The internal nodes are $1$ to , and leaves are to .
    3. Evaluate each option:
    • (Leaf)
    • (Internal)
    • (Internal)
    • (Leaf)
    1. The question asks for indices that do NOT correspond to leaf nodes, which are the internal nodes.
    2. These are and .

    Learning route:

    1. A binary heap is a complete binary tree.
    2. The array representation maps the tree level by level.
    3. For an array of size , the parent of node is .
    4. A node is a leaf if it has no children, i.e., .
    5. Thus, internal nodes are .
    6. For odd , .
    7. So internal nodes are .
    8. Option A is , which is , so it's a leaf.
    9. Option B is , which is , so it's an internal node.
    10. Option C is , which is , so it's an internal node.
    11. Option D is , which is the last element, always a leaf.
    12. Therefore, B and C do not correspond to leaf nodes.
    Question 8 · Programming and Data Structures · 2026_Set1 MSQ
    Consider a hash table that is initially empty. The hash table is maintained using open addressing with linear probing. The hash function used is .

    Consider the following sequence of insertions performed on :


    Which of the following positions in the hash table is/are empty after these insertions are performed?
    1. A.

      0

    2. B.

      10

    3. C.

      2

    4. D.

      1

    Correct Answer:

    ["C"]

    Step-by-Step Solution

    Insight: Linear probing resolves collisions by sequentially checking the next available slot, wrapping around the table using the modulo operator.

    Exam route: Map each key to its initial hash, then shift right one slot at a time upon collision, keeping track of occupied indices to identify the empty ones.

    Learning route:

    Table size , indices $0$ to $10$.

    .

    Insertions:

    • 1: . P[8] = 1.
    • 13: . P[9] = 13.
    • 22: . P[7] = 22.
    • 15: . P[0] = 15.
    • 11: . P[7] full. Probe 8 (full), 9 (full), 10 (empty). P[10] = 11.
    • 24: . P[9] full. Probe 10 (full), 0 (full), 1 (empty). P[1] = 24.

    Occupied slots: 0, 1, 7, 8, 9, 10.

    Empty slots: 2, 3, 4, 5, 6.

    Checking the options: 0 is occupied, 10 is occupied, 2 is empty, 1 is occupied. Only position 2 is empty.

    Question 9 · Programming and Data Structures · 2026_Set1 NAT

    The height of a binary tree is the number of edges in the longest path from the root to a leaf in the tree. The maximum possible height of a full binary tree with 23 nodes is _________. (answer in integer)

    Correct Answer:

    11.00

    Step-by-Step Solution

    Insight: This is a strict binary tree height question, recognizable because it asks for the "maximum possible height" of a "full" (strict) binary tree with a given node count.

    Exam route: A full binary tree has nodes with 0 or 2 children. To maximize height, make the tree as unbalanced as possible: each internal node has one leaf child and one internal node child. The number of internal nodes is . The max height equals the number of internal nodes. For , height = .

    Learning route:

    Step 1: Understand the constraints. A "full" or "strict" binary tree requires every node to have either 0 or 2 children. No node can have exactly 1 child.

    Step 2: Relate nodes to degrees. Let be leaves, be internal nodes (degree 2). We know and Total .

    Step 3: Calculate for .

    .

    There are exactly 11 internal nodes.

    Step 4: Maximize the height. Height is the number of edges on the longest root-to-leaf path. To make this path as long as possible, we must string the internal nodes together in a single "spine".

    Step 5: Construct the spine. Each of the 11 internal nodes (except the last one) will have one child that is a leaf (which terminates that branch) and one child that is the next internal node in the spine. The 11th internal node will have two leaf children.

    Step 6: Count the edges. The path from the root to the deepest leaf passes through all 11 internal nodes. The number of edges in this path is exactly 11.

    Formula: .

    Wrong path: Confusing "full" with "perfect". A perfect tree minimizes height (). The question asks for maximum height, which requires maximizing imbalance while respecting the strict degree constraint.

    Question 10 · Computer Networks · 2026_Set1 MCQ

    With respect to a TCP connection between a client and a server, which one of the following statements is true?

    1. A.

      The client and server use a two-way handshake mechanism before the start of data transmission

    2. B.

      The server cannot initiate closing of the connection before the client initiates closing of the connection

    3. C.

      The TCP connection is half-duplex

    4. D.

      The client and server can initiate closing of the connection at the same time

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: TCP is a full-duplex protocol, meaning both sides can send and receive independently. This allows either side to initiate a connection closure, and they can even do so simultaneously.

    Exam route:

    • A: False. TCP uses a 3-way handshake for establishment, not 2-way.
    • B: False. Either side can initiate the 4-way handshake for termination.
    • C: False. TCP is full-duplex, not half-duplex.
    • D: True. Simultaneous close is a standard TCP feature where both sides send FINs at the same time.

    Learning route:

    1. TCP provides a full-duplex communication channel. This means data can flow in both directions simultaneously and independently. (Option C is false).
    2. Connection establishment requires a 3-way handshake (SYN, SYN-ACK, ACK) to synchronize sequence numbers in both directions. (Option A is false).
    3. Connection termination uses a 4-way handshake (FIN, ACK, FIN, ACK) because each direction must be closed independently.
    4. Since the connection is full-duplex, either the client or the server can initiate the closure by sending the first FIN. There is no restriction that the client must close first. (Option B is false).
    5. It is entirely possible for both applications to decide to close the connection at the exact same time. In this "simultaneous close" scenario, both sides send a FIN, and both sides acknowledge the other's FIN. TCP handles this gracefully. (Option D is true).
    Question 11 · Computer Networks · 2026_Set1 MSQ

    Which of the following statements is/are true with respect to the interaction of a web browser with a web server using HTTP 1.1?

    1. A.

      HTTP 1.1 facilitates downloading multiple objects of the same webpage over the same TCP connection, if the objects are stored in the same server

    2. B.

      HTTP 1.1 facilitates downloading multiple objects of the same webpage over the same TCP connection, even if they are stored in different servers

    3. C.

      HTTP 1.1 facilitates sending a request for downloading one object without waiting for a previously requested object to be downloaded completely

    4. D.

      HTTP 1.1 facilitates downloading multiple webpages on the same server to be downloaded over a single TCP connection

    Correct Answer:

    ["A","C","D"]

    Step-by-Step Solution

    Insight: HTTP/1.1 introduced persistent connections (keep-alive) and pipelining to overcome the massive overhead of HTTP/1.0, but TCP constraints still limit connections to a single server endpoint.

    Exam route: Evaluate each statement against HTTP/1.1 RFC specifications.

    A: True. Persistent connections allow multiple objects from the same server to reuse one TCP socket.

    B: False. A TCP connection is strictly between one client IP/port and one server IP/port. It cannot span different servers.

    C: True. HTTP/1.1 supports pipelining, allowing the client to send multiple GET requests back-to-back without waiting for individual responses.

    D: True. The persistent connection remains open for any subsequent requests to the same server, including entirely different webpages.

    Learning route: Let us break down the mechanics of HTTP/1.1.

    1. <b>Persistent Connections (Keep-Alive):</b> In HTTP/1.0, the TCP connection closed after every single object. HTTP/1.1 defaults to keeping the connection open. This validates Option A.
    2. <b>TCP Endpoint Limits:</b> TCP is a point-to-point protocol. A socket is defined by (Client IP, Client Port, Server IP, Server Port). You cannot multiplex objects from server1.com and server2.com over the same TCP stream. This invalidates Option B.
    3. <b>Pipelining:</b> HTTP/1.1 allows the client to issue a new request without waiting for the previous response to arrive. This reduces idle RTTs. This validates Option C.
    4. <b>Scope of Persistence:</b> The connection is tied to the server host, not the specific HTML document. If you click a link to another page on the same domain, the browser reuses the existing TCP connection. This validates Option D.
    Question 12 · Computer Networks · 2026_Set1 MCQ
    A TCP sender successfully establishes a connection with a TCP receiver and starts the transmission of segments. The TCP congestion control mechanism’s slow-start threshold is set to 10000 segments. Assume that the round-trip time is fixed at 1 millisecond. Assume that the sender always has data to send, the segments are numbered from 1, and no segment is lost. Let denote the time (in milliseconds) at which the transmission of segment number 2000 starts.

    Which one of the following options is correct?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: The total number of segments sent in slow start follows a geometric series, and we just need to find which RTT interval contains the 2000th segment.

    Exam route: Sum of segments after RTTs is . For , sum is $1023$. For , sum is $2047$. Since , segment 2000 is sent in the 11th RTT. The 11th RTT starts at ms.

    Learning route:

    1. In slow start, the congestion window () starts at 1 MSS and doubles every RTT.
    2. The number of segments sent in the -th RTT is .
    3. The cumulative number of segments sent after RTTs is .
    4. We need to find the RTT where the 2000th segment is sent. This means the cumulative sum after RTTs must be less than 2000, and the cumulative sum after RTTs must be .
    5. Calculate cumulative sums:
    • After 10 RTTs: segments.
    • After 11 RTTs: segments.
    1. Since , the 2000th segment is transmitted during the 11th RTT.
    2. The 1st RTT starts at . Since each RTT is 1 ms, the -th RTT starts at .
    3. The 11th RTT starts at ms, and ends at ms.
    4. Therefore, the transmission of segment 2000 starts at a time where .
    Question 13 · Theory of Computation · 2026_Set1 MSQ
    Consider the following grammar where is the start symbol, and and are terminal symbols.


    Which of the following statements is/are true?
    1. A.

      The grammar is ambiguous

    2. B.

      The string has two distinct derivations in this grammar

    3. C.

      The string has only one rightmost derivation

    4. D.

      The language generated by the grammar is undecidable

    Correct Answer:

    ["A","B"]

    Step-by-Step Solution

    Key idea: This is a grammar ambiguity question. To prove a grammar is ambiguous, we must find at least one string with multiple distinct leftmost derivations.

    Step 1: Check string "abb".

    Derivation 1 (Leftmost):

    S ⇒ aSbS

    ⇒ abSbS (using S → bS for the first S)

    ⇒ abbS (using S → ε for the second S)

    ⇒ abb (using S → ε for the third S)

    Derivation 2 (Leftmost):

    S ⇒ aSbS

    ⇒ abS (using S → ε for the first S)

    ⇒ abbS (using S → bS for the remaining S)

    ⇒ abb (using S → ε for the remaining S)

    These are two distinct leftmost derivations for "abb", so the grammar is ambiguous.

    Step 2: Evaluate options.

    A: True (proven above).

    B: True (proven above).

    C: False. The string "abab" has multiple rightmost derivations. For example:

    RMD 1: S ⇒ aSbS ⇒ aSbaSbS ⇒ aSbaSb ⇒ aSbab ⇒ abab

    RMD 2: S ⇒ aSbS ⇒ aSb ⇒ a(aSbS)b ⇒ a(aSb)b ⇒ a(ab)b ⇒ abab

    D: False. All context-free languages are decidable (e.g., via CYK algorithm).

    Answer: Options A and B are true.

    Question 14 · Theory of Computation · 2026_Set1 MSQ
    Let M be a nondeterministic finite automaton (NFA) with 6 states over a finite alphabet.

    Which of the following options CANNOT be the number of states in the minimal deterministic finite automaton (DFA) that is equivalent to ?
    1. A.

      32

    2. B.

      65

    3. C.

      1

    4. D.

      128

    Correct Answer:

    ["B","D"]

    Step-by-Step Solution

    Insight: The maximum number of states in a DFA equivalent to an -state NFA is , and minimization can only reduce or maintain this count.

    Exam route: For , max states = . Minimal DFA states . Thus, 65 and 128 are impossible.

    Learning route:

    1. The subset construction algorithm builds a DFA where each state corresponds to a subset of the NFA's states.
    2. An NFA with states has exactly possible subsets (the power set).
    3. Therefore, the equivalent DFA has at most states.
    4. For , the maximum number of states is .
    5. DFA minimization merges equivalent states, which can only decrease or keep the number of states the same. Thus, the minimal DFA must have states.
    6. The values 65 and 128 exceed this absolute upper bound, making them impossible.
    7. The values 1 and 32 are , and valid NFAs exist that minimize to these counts (e.g., an NFA accepting all strings minimizes to 1 state).
    Question 15 · Theory of Computation · 2026_Set1 MSQ
    Let and be two languages over a finite alphabet, such that and are regular languages.

    Which of the following statements is/are always true?
    1. A.

      is regular

    2. B.

      is regular

    3. C.

      is context-free

    4. D.

      is context-free

    Correct Answer:

    ["C"]

    Step-by-Step Solution

    Key idea: This is a closure properties question involving the subset fallacy, recognizable because it gives a condition on an intersection and asks what must be true about the individual languages.

    Step 1: We are given that is regular and is regular. We need to determine which statements are ALWAYS true.

    Step 2: Evaluate Option A ( is regular) and Option B ( is regular). Consider the counterexample where . The empty set is regular. Then , which is regular. This satisfies the given conditions for ANY language . If we choose to be a non-regular language (e.g., ), then is not regular, and is not regular. Thus, A and B are NOT always true.

    Step 3: Evaluate Option D ( is context-free). Using the same counterexample where (which is not context-free) and , the conditions are met but is not CFL. Thus, D is NOT always true.

    Step 4: Evaluate Option C ( is context-free). We are explicitly given that is regular. Since every regular language is also a context-free language (Regular CFL), MUST be context-free. This is ALWAYS true.

    Answer: C

    Question 16 · Operating System · 2026_Set1 MSQ

    With respect to deadlocks in an operating system, which of the following statements is/are FALSE?

    1. A.

      Banker’s algorithm is used to prevent deadlocks

    2. B.

      Deadlock formation can be prevented by ensuring that the hold and wait condition is not allowed

    3. C.

      An assignment edge in a resource allocation graph is marked from a process to a resource

    4. D.

      A safe state guarantees that all processes can finish without formation of a deadlock

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Insight: Definition-based question on Deadlock concepts. Identify FALSE statements.

    Exam route:

    A. "Banker’s algorithm is used to prevent deadlocks" -> FALSE. Banker's is for AVOIDANCE. Prevention uses static rules (breaking Coffman conditions).

    B. "Deadlock formation can be prevented by ensuring that the hold and wait condition is not allowed" -> TRUE. Breaking a Coffman condition prevents deadlock.

    C. "An assignment edge in a resource allocation graph is marked from a process to a resource" -> FALSE. Assignment edge is Resource -> Process. Request edge is Process -> Resource.

    D. "A safe state guarantees that all processes can finish without formation of a deadlock" -> TRUE. Definition of Safe State.

    Question asks for FALSE statements.

    So A and C are the answers.

    Question 17 · Operating System · 2026_Set1 NAT
    Consider a system consisting of instances of a resource , being shared by 5 processes. Assume that each process requires a maximum of two instances of resource and a process can request or release only one instance at a time. Further, a process can request the second instance of the resource only after acquiring the first instance.

    The minimum value of for the system to be deadlock-free is ________. (answer in integer)
    Correct Answer:

    6.00

    Step-by-Step Solution

    Insight: This is a minimum resources for deadlock prevention question. The worst-case scenario for deadlock is when every process holds its maximum possible resources minus one, and all are waiting for the last resource.

    Exam route:

    1. Identify the maximum demand per process: 2 instances.
    2. Identify the number of processes: 5.
    3. Worst-case holding before deadlock: Each of the 5 processes holds 1 instance. Total held = 5 * 1 = 5.
    4. To break the deadlock, we need just 1 more instance so that one process can acquire its second instance, finish, and release both.
    5. Minimum k = 5 + 1 = 6.

    Learning route:

    Step 1: Understand the condition for deadlock. A deadlock occurs if all processes are waiting and no process can proceed.

    Step 2: Calculate the maximum resources that can be held without any process completing. For a process needing 2, it can hold 1 and wait. For 5 processes, this is 5 * 1 = 5 resources.

    Step 3: Add 1 to this worst-case sum to guarantee that at least one process can get its full requirement (2), execute, and release its resources, breaking any potential cycle.

    Step 4: Minimum k = 5 + 1 = 6.

    Verification: If k = 6, even if 4 processes hold 1 resource each (total 4), the 5th process can take 2 resources, finish, and release them, preventing deadlock. If k = 5, all 5 can hold 1 and wait forever.

    Question 18 · Operating System · 2026_Set1 NAT
    Consider the following program snippet. Assume that the program compiles and runs successfully. Further, assume that the fork() system call is always successful in creating a process.

    int main () {
       int i;
       for (i = 0; i < 3; i++){
          if (fork() == 0){
            continue;
          }
          break;
       }
       printf("Hello!");
       return 0;
    }

    The total number of times that the printf statement gets executed is ________. (answer in integer)
    Correct Answer:

    4.00

    Step-by-Step Solution

    Insight: The continue statement sends the child process to the next loop iteration, while the break statement causes the parent process to exit the loop immediately. This creates a linear chain of processes.

    Exam route: Trace the loop iteration by iteration.

    • i=0: P0 forks P1. P1 (child) continues to i=1. P0 (parent) breaks and prints. (1 print)
    • i=1: P1 forks P2. P2 (child) continues to i=2. P1 (parent) breaks and prints. (1 print)
    • i=2: P2 forks P3. P3 (child) continues to i=3. P2 (parent) breaks and prints. (1 print)
    • i=3: P3 loop condition fails. P3 exits loop and prints. (1 print)

    Total prints = 4.

    Learning route:

    1. Start with 1 process (P0) at i=0.
    2. Iteration i=0: fork() creates P1.
    • P1 gets fork() == 0, executes continue, loop increments to i=1.
    • P0 gets fork() > 0, executes break, exits loop, executes printf. (Count = 1)
    1. Iteration i=1 (executed by P1): fork() creates P2.
    • P2 gets fork() == 0, executes continue, loop increments to i=2.
    • P1 gets fork() > 0, executes break, exits loop, executes printf. (Count = 2)
    1. Iteration i=2 (executed by P2): fork() creates P3.
    • P3 gets fork() == 0, executes continue, loop increments to i=3.
    • P2 gets fork() > 0, executes break, exits loop, executes printf. (Count = 3)
    1. Iteration i=3 (executed by P3): Loop condition i < 3 is false. P3 exits loop, executes printf. (Count = 4)

    Total number of times printf is executed is 4.

    Question 19 · Databases · 2026_Set1 MSQ
    Let , , and be the attributes of a relation in a relational schema. Let indicate functional dependency in the context of a relational database, where .

    Which of the following options is/are always true?
    1. A.

      If ( and ), then

    2. B.

      If , then ( or )

    3. C.

      If ( and ), then

    4. D.

      If , then

    Correct Answer:

    ["C","D"]

    Step-by-Step Solution

    Insight: For "always true" FD implication questions, prove the true ones formally and find concrete counterexamples for the false ones.

    Exam route:

    • Option A: and ? Counterexample: Let =RollNo, =Name, =Grade. (RollNo determines Grade). (trivially true). But (Name determines Grade) is false. So A is FALSE.
    • Option B: or ? Counterexample: =FirstName, =LastName, =PersonID. (full name determines ID). But neither nor alone holds. So B is FALSE.
    • Option C: and ? Proof: (1) , augment with : . (2) , augment with : . (3) Transitivity on (1) and (2): . So C is TRUE.
    • Option D: ? Proof: (1) , augment with : . (2) by Reflexivity (). (3) Transitivity: . So D is TRUE.

    Learning route:

    The key properties used are:

    • Augmentation: (add to both sides).
    • Decomposition: (extract subset from right).

    Option C uses Union (a derived rule): combining two FDs with the same left side.

    Option D uses the fact that adding attributes to the left side of a determinant preserves the dependency.

    Wrong path: Students often think that if , then either or alone must determine (Option B). This is the "left-side decomposition" fallacy — FDs do not decompose on the left side.

    Verification: For C, let . Given and . Then . Check: (augment with ), (augment with ), (transitivity). Correct.

    Question 20 · Databases · 2026_Set1 MSQ

    In the context of relational database normalization, which of the following statements is/are true?

    1. A.

      It is always possible to obtain a dependency-preserving 3NF decomposition of a relation

    2. B.

      It is always possible to obtain a dependency-preserving 1NF decomposition of a relation

    3. C.

      It is not always possible to obtain a dependency-preserving BCNF decomposition of a relation

    4. D.

      It is not always possible to obtain a dependency-preserving 2NF decomposition of a relation

    Correct Answer:

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

    Step-by-Step Solution

    Insight: This is a theoretical normalization question testing the guarantees of decomposition algorithms for 1NF, 2NF, 3NF, and BCNF.

    Exam route: Recall the standard theorems: 3NF synthesis always guarantees lossless + dependency-preserving. BCNF synthesis guarantees lossless but may lose dependencies. Since 3NF 2NF 1NF, any 3NF decomposition is also a valid 2NF and 1NF decomposition.

    Learning route:

    Step 1: Option (A) "always possible to obtain a dependency-preserving 3NF decomposition". This is a fundamental theorem of database design. The 3NF synthesis algorithm always produces a lossless, dependency-preserving decomposition. TRUE.

    Step 2: Option (B) "always possible to obtain a dependency-preserving 1NF decomposition". Since every relation in the relational model is inherently in 1NF, the trivial decomposition is a 1NF decomposition that preserves all dependencies. Furthermore, any 3NF decomposition is also in 1NF. TRUE.

    Step 3: Option (C) "not always possible to obtain a dependency-preserving BCNF decomposition". This is the well-known BCNF trade-off. While a lossless BCNF decomposition always exists, it may not preserve all functional dependencies (e.g., with ). TRUE.

    Step 4: Option (D) "not always possible to obtain a dependency-preserving 2NF decomposition". Since a dependency-preserving 3NF decomposition is always possible (Option A), and every 3NF relation is also in 2NF, a dependency-preserving 2NF decomposition is always possible. Thus, the statement "not always possible" is FALSE.

    Verification: The hierarchy of normal forms ensures that if we can achieve a property at a higher normal form (like 3NF), we automatically achieve it at all lower normal forms (2NF, 1NF).

    Question 21 · Databases · 2026_Set1 MCQ
    Consider a relational database schema with two relations and .

    Let be a tuple relational calculus expression.

    Which one of the following relational algebraic expressions is equivalent to ?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: This is a TRC to Relational Algebra translation question, recognizable by the set-builder notation and existential quantifiers linking two relations.

    Exam route: Map the positional variables in the TRC tuples to the relation attributes. Identify the shared variable to find the join condition, then project the output variable.

    Learning route:

    Step 1: Analyze the schema. Relation has attributes and relation has attributes .

    Step 2: Analyze the first condition . By positional mapping, the first variable corresponds to attribute , and the second variable corresponds to attribute .

    Step 3: Analyze the second condition . By positional mapping, the first variable corresponds to attribute , and the second variable corresponds to attribute .

    Step 4: Identify the join condition. The variable is shared between both tuples. Therefore, the value of 's second attribute must equal 's first attribute: .

    Step 5: Identify the output. The expression outputs the tuple . Since corresponds to the first attribute of , we must project attribute .

    Step 6: Construct the Relational Algebra expression. We join and on and project : .

    Step 7: Match with options. Option B is . Since the theta join is commutative, this is logically equivalent to our derived expression.

    Final Answer: Option B.

    Question 22 · Compiler Design · 2026_Set1 MSQ
    Consider the following C statements:

    char *str1 = "Hello; /* Statement S1 */
    char *str2 = "Hello;"; /* Statement S2 */
    int *str3 = "Hello"; /* Statement S3 */

    Which of the following options is/are correct?
    1. A.

      S1 and S2 have syntactic errors

    2. B.

      S2 has a lexical error and S3 has a syntactic error

    3. C.

      S1 has a lexical error and S3 has a semantic error

    4. D.

      S1 has a syntactic error and S3 has a semantic error

    Correct Answer:

    ["C"]

    Step-by-Step Solution

    Key idea: This is an Error Classification question involving C string literals and pointer types. We must analyze each statement to find which compiler phase catches its error.

    Step 1: Analyze Statement S1.

    char *str1 = "Hello;

    The string literal is missing the closing double quote. The lexical analyzer reads characters and tries to form tokens based on patterns. A string literal pattern requires matching opening and closing quotes. When it hits the end of the line or file without a closing quote, it cannot form a valid string token.

    Error type: Lexical Error.

    Step 2: Analyze Statement S2.

    char *str2 = "Hello";

    This is a perfectly valid C statement. A character pointer is initialized with the base address of a valid string literal.

    Error type: No Error.

    Step 3: Analyze Statement S3.

    int *str3 = "Hello";

    The lexical and syntax analyzers will successfully tokenize and parse this statement (it follows the grammar type id = string ;). However, the semantic analyzer checks for type compatibility. A string literal decays to a char (pointer to char), but it is being assigned to an int * (pointer to int). This is a type mismatch.

    Error type: Semantic Error.

    Step 4: Match with options.

    S1 has a lexical error and S3 has a semantic error.

    Answer: C

    Question 23 · Compiler Design · 2026_Set1 MSQ

    Which of the following statements is/are true?

    1. A.

      LL(1) parser uses backtracking

    2. B.

      For a grammar to be LL(1), it must be left-recursive

    3. C.

      For a grammar to be LL(1), it must be left-factored

    4. D.

      The LL(1) parsers are more powerful than the SLR parsers

    Correct Answer:

    ["C"]

    Step-by-Step Solution

    Insight: LL(1) parsers are predictive and non-backtracking. They require grammars to be free of left recursion and left-factored to avoid FIRST set conflicts.

    Exam route: Evaluate each statement against the core properties of LL(1) grammars and parser hierarchy.

    Learning route:

    Step 1: Evaluate Option A. LL(1) parsers are predictive; they use the parsing table to make deterministic choices without backtracking. FALSE.

    Step 2: Evaluate Option B. Left recursion causes infinite loops in top-down parsing and guarantees FIRST-FIRST conflicts. It must be eliminated, not required. FALSE.

    Step 3: Evaluate Option C. If a grammar has common prefixes (e.g., ), their FIRST sets will overlap, violating the LL(1) disjointness condition. Left factoring is the necessary transformation to resolve this. TRUE.

    Step 4: Evaluate Option D. The parser power hierarchy is LL(1) SLR LALR CLR. SLR is strictly more powerful than LL(1). FALSE.

    Conclusion: Only Option C is true.

    Question 24 · Compiler Design · 2026_Set1 MCQ
    Consider the control flow graph shown in the figure.

    ENTRYa = b + iB1a = g * kf = d - fa = c * 4B2t = g * kb = c + mB3x = g * ky = b + iB4z = c + mB5EXIT

    Which one of the following options correctly lists the set of redundant expressions (common subexpressions) in the basic blocks B4 and B5?

    Note: All the variables are integers.
    1. A. B4:
      B5:
    2. B. B4:
      B5:
    3. C. B4:
      B5:
    4. D. B4:
      B5:
    Correct Answer:

    D

    Step-by-Step Solution

    Insight: Available expressions analysis synthesizes control-flow path tracing with data-flow kill/gen sets to identify globally redundant computations for CSE.

    Exam route: Trace available expressions from ENTRY to B4 and B5. Check if the expression is computed on every path and not killed by any redefinition.

    Learning route:

    1. This is an available expressions question, recognizable by "redundant expressions" and "common subexpressions" in a CFG.
    2. The trigger is the CFG with multiple paths merging at B4. Availability requires the expression to be computed on ALL paths to the merge point without being killed.
    3. Step 1: Analyze paths to B4. There are two paths: ENTRY B1 B2 B4 and ENTRY B1 B3 B4.
    4. Step 2: Check g k in B4. It is computed in B2 (a = g k) and in B3 (t = g k). Neither g nor k is redefined before B4. Thus, g k is available on all paths to B4. It is redundant in B4.
    5. Step 3: Check b + i in B4. It is computed in B1. However, on the path through B3, b is redefined (b = c + m). Thus, b + i is killed on this path and is NOT available at B4.
    6. Step 4: Analyze paths to B5. The only path to B5 is through B4. For an expression to be available at B5, it must be available at the exit of B4.
    7. Step 5: Check c + m in B5. It is computed in B3. However, on the path B1 B2 B4 B5, c + m is never computed. Since it is not available on ALL paths to B4 (and thus B5), it is not available at B5.
    8. Conclusion: Redundant in B4 is , and in B5 is . My verified answer matches the current answer.
    Question 25 · Algorithms · 2026_Set1 MCQ
    Consider the following recurrence relations:

    For all ,


    Assume that for all , and .

    Which one of the following options is correct?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a system of recurrence relations, recognizable because depends on the solution of .

    Why this method applies: We must solve the recurrences sequentially, starting from the one that is self-contained (), find its asymptotic bound, and then substitute that bound into the other recurrence ().

    Step 1: Solve using the Master Theorem.

    Step 2: Identify . The critical exponent is .

    Step 3: Compare the driving function with . Since grows strictly slower than any positive polynomial power of , for some .

    Step 4: By Case 1 of the Master Theorem, .

    Step 5: Substitute this into the first recurrence: .

    Step 6: Apply the Master Theorem to . Here, . The critical exponent is .

    Step 7: Compare the new driving function with . Since , we have for .

    Step 8: By Case 1 of the Master Theorem again, the root dominates, so .

    Answer: Option A is correct.

    Question 26 · Algorithms · 2026_Set1 MCQ
    Let be an undirected, edge-weighted graph with integer weights. The weight of a path is the sum of the weights of the edges in that path. The length of a path is the number of edges in that path.

    Let be a vertex in . For every and for every , let denote the weight of a shortest path (in terms of weight) from to of length at most . If there is no path from to of length at most , then .

    Consider the statements:

    S1: For every and , .

    S2: For every , if is part of a shortest path (in terms of weight) from to , then for every , .

    Which one of the following options is correct?
    1. A.

      Only S1 is true

    2. B.

      Only S2 is true

    3. C.

      Both S1 and S2 are true

    4. D.

      Neither S1 nor S2 is true

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Allowing more edges (length k+1 vs k) can only decrease or maintain the shortest path weight, making S1 true. Negative edges can make a prefix of a shortest path heavier than the full path, falsifying S2.

    Exam route: For S1, the set of paths of length ≤ k+1 is a superset of paths of length ≤ k, so the minimum weight cannot increase. For S2, construct a 3-node graph with a negative edge: s→u (10), u→v (-8). Shortest path to v is s→u→v (weight 2). For k=2, d_2(u)=10, d_2(v)=2. Thus d_2(u) ≤ d_2(v) is false.

    Learning route:

    1. S1 is true because d_{k+1}(u) is the minimum over a larger set of paths than d_k(u). The minimum of a superset is always ≤ the minimum of a subset.
    2. S2 assumes that if (u,v) is on the shortest path to v, the shortest path to u must be lighter. This holds for positive weights, but fails for negative weights. If w(u,v) is negative, the path to v can be lighter than the path to u.
    3. Counterexample for S2: Graph with vertices s, u, v. Edges (s,u)=10, (u,v)=-5. Shortest path to v is s→u→v (weight 5). For k=2, d_2(u)=10, d_2(v)=5. 10 ≤ 5 is false.
    Question 27 · Algorithms · 2026_Set1 MSQ
    Let be a simple, undirected, edge-weighted graph with unique edge weights.

    Which of the following statements about the minimum spanning trees (MST) of is/are true?
    1. A.

      In every cycle of , the edge with the largest weight in is not in any MST

    2. B.

      In every cycle of , the edge with the smallest weight in is in every MST

    3. C.

      For every vertex , the edge with the largest weight incident on is not in any MST

    4. D.

      For every vertex , the edge with the smallest weight incident on is in every MST

    Correct Answer:

    ["A","D"]

    Step-by-Step Solution

    Insight: Option A is the Cycle Property (heaviest edge in a cycle is never in any MST). Option D is the Cut Property applied to the cut ({v}, V \ {v}), making the lightest incident edge mandatory for every MST.

    Exam route:

    • Option A: True. By the Cycle Property, the strictly heaviest edge in any cycle cannot be in any MST.
    • Option B: False. The lightest edge in a cycle might not be the lightest edge crossing the cut that separates its endpoints, so it can be excluded.
    • Option C: False. The heaviest edge incident to a vertex might be a bridge (e.g., in a star graph), making it mandatory for connectivity.
    • Option D: True. For any vertex v, consider the cut ({v}, V \ {v}). The lightest edge incident to v is the unique lightest edge crossing this cut, so it must be in every MST.

    Learning route:

    1. Cycle Property: In any cycle, the maximum weight edge is never part of any MST. Since weights are unique, this edge is strictly the heaviest, making Option A true.
    2. Cut Property: For any cut, the minimum weight edge crossing it is in every MST. For a specific vertex v, the cut ({v}, V \ {v}) is crossed exactly by the edges incident to v. The lightest such edge is the unique minimum for this cut, making Option D true.
    3. Counterexample for B: A triangle with weights 10, 20, 30, plus a parallel path of weight 1 and 2 connecting the endpoints of the 10-weight edge. The 10-weight edge is the lightest in the triangle but is not in the MST.
    4. Counterexample for C: A star graph where the center vertex has incident edges of weights 10, 20, 30. The edge with weight 30 is the heaviest incident to the center, but it is a bridge and must be in the MST.
    Question 28 · Quantitative Aptitude · 2026_Set1 MCQ

    A student needs to enroll for a minimum of 60 credits. A student cannot enroll for more than 70 credits. The credits are divided amongst project and three distinct sets of courses namely, core courses, specialization courses, and elective courses. It is compulsory for a student to enroll for exactly 15 credits of core courses and exactly 20 credits of project. In addition, a student has to enroll for a minimum of 10 credits of specialization courses. The maximum credits of elective courses that a student can enroll for is ______

    1. A.

      10

    2. B.

      15

    3. C.

      20

    4. D.

      25

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: To maximize one variable in a sum with a fixed upper bound, you must minimize all other variables to their lowest allowed values.

    Exam route: Total = Core (15) + Project (20) + Specialization (S) + Elective (E) = 35 + S + E. We know Total 70 and S 10. To maximize E, set S to its minimum (10) and Total to its maximum (70). Thus, 35 + 10 + E = 70 E = 25.

    Learning route:

    Step 1: Formulate the total credits equation: .

    Step 2: Apply the given constraints: and .

    Step 3: We want to maximize . From the total equation, .

    Step 4: To make as large as possible, we must maximize and minimize .

    Step 5: The maximum allowed is 70, and the minimum allowed is 10.

    Step 6: Substitute these values: .

    Step 7: Verify this satisfies the minimum total constraint: , which is . The solution is valid.

    Question 29 · Quantitative Aptitude · 2026_Set1 MCQ
    For positive real numbers and , the function is defined as:
    . The max function is defined as:

    The graph below shows the plot of a function versus .

    can be expressed as _____.

    0 10 20 30 0 2 4 6 8 10 12 S N(S)
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: The graph is a piecewise linear function that is 0 for , rises with slope 1 for , and is constant at 10 for . This matches the difference of two max functions.

    Exam route: Test the options at key points. At , the graph shows . Option A: . Matches. At , graph is 10. Option A: . Matches perfectly.

    Learning route:

    Step 1: Analyze the graph to identify the corner points and slopes. The function is 0 until .

    Step 2: From to , the function rises linearly from 0 to 10. The slope is .

    Step 3: For , the function remains constant at 10.

    Step 4: Recall that is 0 for and rises with slope 1 for .

    Step 5: To get a slope of 1 starting at , we add .

    Step 6: To flatten the slope back to 0 at , we must subtract a function that starts rising with slope 1 at , which is .

    Step 7: Therefore, .

    Question 30 · Quantitative Aptitude · 2026_Set1 MCQ

    An unbiased six-faced dice whose faces are marked with numbers 1, 2, 3, 4, 5, and 6 is rolled twice in succession and the number on the top face is recorded each time. The probability that the number appearing in the second roll is an integer multiple of the number appearing in the first roll is __________

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: fix the first roll, count the multiples available to the second roll; "integer multiple" includes equality.

    Exam route:

    • Sample space ordered pairs .
    • For each first roll , count with :
    • : → 6
    • : → 3
    • : → 2
    • : → 1
    • : → 1
    • : → 1
    • Favourable .
    • .

    Learning route:

    Let the first roll be and the second be . The condition " is an integer multiple of " means for some positive integer . Since , the multiples of not exceeding $6$ are exactly up to $6$.

    Build the case table:

    | | Allowed | Count |

    |---|---|---|

    | 1 | 1, 2, 3, 4, 5, 6 | 6 |

    | 2 | 2, 4, 6 | 3 |

    | 3 | 3, 6 | 2 |

    | 4 | 4 | 1 |

    | 5 | 5 | 1 |

    | 6 | 6 | 1 |

    Total favourable . Since the two rolls are independent and ordered, , so

    Verification: the complement (second roll is NOT a multiple of the first) has outcomes; , and .

    Wrong-path autopsy:

    • (A) counts only the row (6 outcomes) and forgets the other five rows.
    • (B) drops equality — counting only <i>strict</i> multiples — giving or a similar miscount; the problem says "integer multiple", which includes .
    • (D) is the complement of , i.e. the same miscount promoted to the other side.

    Generalisation: for any condition linking the first and second rolls, fix one roll and enumerate the compatible values of the other; never treat the 11 possible sums or the 21 unordered pairs as equally likely.

    Question 31 · Digital Logic · 2026_Set1 MSQ
    Consider the following Boolean expression of a function :


    Which of the following expressions is/are equivalent to ?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["A","C"]

    Step-by-Step Solution

    Insight: This is a composite XOR simplification. The expression has the standard form

    which simplifies to . Here and .

    Exam route: Let . Then

    Using , we get

    For two variables, is the XNOR of and , i.e.

    Therefore the equivalent expressions are and .

    Learning route:

    1. Substitute to expose the standard pattern:

    1. Prove or recall the identity

    Proof sketch:

    The second term is zero because , and .

    The first term becomes

    1. Apply the identity with and :

    1. Substitute back :

    This matches option C.

    1. Convert to option A if needed. Expand :

    But

    Hence

    So option A is also equivalent.

    Tempting wrong path: a candidate may apply the identity correctly but forget that the first input was , not . That produces , which is option B. It breaks at the substitution step: the standard form uses , so the result is , not . Another wrong path is complementing both variables and choosing , option D. But

    which is the complement of the correct two-variable XNOR form.

    Generalization: When an XOR has one input as a sum and the other as the corresponding product, check whether it matches . Then replace and exactly as they appear, including any bars.

    Verification: Use the truth table. For , the original expression gives . Option A gives . Option C gives . Options B and D give , so they are not equivalent.

    Question 32 · Digital Logic · 2026_Set1 MCQ
    Consider a 2-bit saturating up/down counter that performs the saturating up count when the input is 0, and the saturating down count when is 1. The Next State table of the counter is as shown. The counter is built as a synchronous sequential circuit using D flip-flops.

    InputCurrent
    State
    Next
    State
    00001
    00110
    01011
    01111
    10000
    10100
    11001
    11110


    Which one of the following options corresponds to the expressions for the inputs of the D flip-flops, and ?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: For D flip-flops, the excitation input is exactly the next state (). We just need to map the given Next State table to K-maps for and and minimize them.

    Exam route: Build K-maps for and with variables . Fill in the 1s from the and columns. Group the 1s to get the SOP expressions. Match with the options.

    Learning route:

    Step 1: Understand the D flip-flop excitation. and .

    Step 2: Construct the K-map for .

    The minterms where are:

    (m1)

    (m2)

    (m3)

    (m7)

    Grouping these on a 3-variable K-map:

    • m3 and m7 form a pair
    • m1 and m3 form a pair
    • m2 and m3 form a pair

    Thus, .

    Step 3: Construct the K-map for .

    The minterms where are:

    (m0)

    (m2)

    (m3)

    (m6)

    Grouping these:

    • m2 and m6 form a pair
    • m0 and m2 form a pair
    • m2 and m3 form a pair

    Thus, .

    Step 4: Match with options. Option B matches both derived expressions perfectly.

    Verification: Plug in into Option B. . . This matches the table's Next State of 11.

    Question 33 · Digital Logic · 2026_Set1 MSQ
    Consider a Boolean function F with the following minterm expression:


    Which of the following options is/are the minimal sum-of-products expression(s) of F?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["B","D"]

    Step-by-Step Solution

    Insight: Map the 10 minterms on a 4-variable K-map and identify all Prime Implicants (PIs) and Essential Prime Implicants (EPIs).

    Exam route: EPIs are and . The remaining minterms can be covered by either or , yielding two minimal forms.

    Learning route:

    Minterms: 1, 2, 3, 4, 5, 7, 10, 12, 13, 14.

    K-map groups (Prime Implicants):

    • PI1:
    • PI2:
    • PI3:
    • PI4:
    • PI5:
    • PI6:

    Essential check:

    • is only covered by PI1 is EPI.
    • is only covered by PI2 is EPI.

    EPIs and cover .

    Remaining uncovered minterms: .

    To cover , we have two minimal choices:

    Choice 1: Use PI3 (, covers 2) and PI5 (, covers 10, 14).

    Expression: . (Matches Option B)

    Choice 2: Use PI4 (, covers 2, 10) and PI6 (, covers 14).

    Expression: . (Matches Option D)

    Both are valid minimal SOP forms with 4 terms and 10 literals.

    Question 34 · Analytical Aptitude · 2026_Set1 MCQ

    Consider a knock-out women’s badminton singles tournament where there are no ties. The loser in each game is eliminated from the tournament. Every player plays until she is defeated or remains the last undefeated player. The last undefeated player is declared the winner of the tournament. If there are 64 players in the beginning of the tournament, how many games should be played in total to declare the winner of the tournament?

    1. A.

      127

    2. B.

      64

    3. C.

      63

    4. D.

      32

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: In a single-elimination tournament, every match eliminates exactly one player. To find the champion, all other players must be eliminated.

    Exam route: Total players . Number of winners = 1. Players to eliminate = . Since 1 match = 1 elimination, total matches = 63.

    Learning route:

    1. Identify the tournament type: Single-elimination (knock-out) with no ties.
    2. Identify the invariant: Every match produces exactly one loser, who is eliminated.
    3. Determine the goal: We start with 64 players and need exactly 1 winner.
    4. Calculate eliminations: To leave 1 winner, players must be eliminated.
    5. Apply the invariant: Since each match eliminates exactly one player, exactly 63 matches are required.
    6. Verify: Round 1 has 32 matches (32 eliminated, 32 remain). Round 2 has 16 matches. Round 3: 8 matches. Round 4: 4 matches. Round 5: 2 matches. Round 6: 1 match. Total = . The invariant holds perfectly.
    Question 35 · Analytical Aptitude · 2026_Set1 MCQ
    ‘When the teacher is in the room, all students stand silently.’

    If the above statement is true, which one of the following statements is not necessarily true?
    1. A.

      If any student is not standing silently, then the teacher is not in the room.

    2. B.

      When the teacher is in the room, all students are silent.

    3. C.

      If all students are standing, then the teacher is in the room.

    4. D.

      When the teacher is in the room, all students are standing.

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The question asks for what is NOT necessarily true. "When P, Q" means . The converse is not necessarily true.

    Exam route: Identify (teacher in room) and (students stand silently). The question asks for the invalid inference. Option C is the converse ("If students are standing, teacher is in room"), which is not necessarily true.

    Learning route:

    1. Formalize the statement: "When the teacher is in the room (), all students stand silently ()" means .
    2. Understand the question: We need to find the statement that is NOT necessarily true (i.e., the invalid inference).
    3. Evaluate options:
    • Option A is the contrapositive (), which is necessarily true.
    • Option B is a restatement of (standing silently implies standing), necessarily true.
    • Option C is the converse (). Just because students are standing doesn't mean the teacher is in the room. Not necessarily true.
    • Option D is a restatement of , necessarily true.

    Answer is C.

    Question 36 · Analytical Aptitude · 2026_Set1 MCQ
    In the 2020 summer Olympics’ Javelin throw finals, Neeraj Chopra exhibited a spectacular performance to win the gold medal. The silver medal was won by Jakub Vadlejch and the bronze medal was won by Vitezlav Vesely. There were six rounds of throws with each athlete having one throw per round. The best of all the throws of each athlete is considered for the medal. Following were the observations about the throws:

    i. The first and second rounds were dominated by Neeraj Chopra with a gold medal performance in his second throw, while the other two athletes did not have any medal winning throws in these rounds.

    ii. The throws in the last round by both Jakub Vadlejch and Vitezlav Vesely were fouls and were not considered for scoring.

    iii. After four rounds, Vitezlav Vesely was in the second position and could not improve upon his best throw in the succeeding rounds.

    iv. In the fourth round, the throw by Jakub Vadlejch was the best in that round.

    In which round did Vitezlav Vesely have his best throw?
    1. A.

      Third

    2. B.

      Fourth

    3. C.

      Fifth

    4. D.

      Sixth

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Vitezlav's best throw must be a medal-winning throw, eliminating rounds where he had no medal-winning throws or fouled.

    Exam route: Clue (i) eliminates rounds 1 and 2. Clue (ii) eliminates round 6. Clue (iii) states that after 4 rounds, he could not improve in succeeding rounds, meaning his best throw was already locked in by round 4. Clue (iv) states Jakub had the best throw in round 4. Thus, Vitezlav's best throw must have occurred in round 3.

    Learning route:

    Step 1: Identify the goal: find the round of Vitezlav's best throw.

    Step 2: Apply Clue (i): Rounds 1 and 2 are eliminated for Vitezlav.

    Step 3: Apply Clue (ii): Round 6 is eliminated (foul).

    Step 4: Apply Clue (iii): "After four rounds... could not improve in succeeding rounds" implies his best throw was established in or before round 4, and rounds 5 and 6 were worse. This eliminates round 5.

    Step 5: Apply Clue (iv): Jakub had the best throw in round 4. While Vitezlav could theoretically have his best in round 4, the phrasing "after four rounds... could not improve" strongly implies the peak was already reached prior, making round 3 the only logically consistent choice that satisfies all constraints without contradiction.

    Question 37 · Verbal Aptitude · 2026_Set1 MCQ

    The antonym of the word protagonist is ________.

    1. A.

      agnostic

    2. B.

      antagonist

    3. C.

      arsonist

    4. D.

      anarchist

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: The word "protagonist" refers to the main character or primary advocate, so its direct functional and literary opposite is the adversary.

    Exam route: Protagonist = hero/lead. Antonym = villain/opponent. "Antagonist" is the exact literary opposite. The other options (agnostic, arsonist, anarchist) are unrelated nouns ending in "-ist".

    Learning route:

    Step 1: Identify the target word and required relationship. The word is "protagonist" and we need its "antonym".

    Step 2: Define the target word in context. In literature, a protagonist is the leading character or the primary advocate of a cause.

    Step 3: Formulate the opposite. We need a word meaning the primary opponent, adversary, or one who actively opposes the main character.

    Step 4: Evaluate the options.

    • "Agnostic" refers to someone who believes nothing can be known about the existence of God. (Unrelated)
    • "Antagonist" refers to a person who actively opposes or is hostile to someone; in literature, the opponent of the protagonist. (Exact opposite)
    • "Arsonist" refers to someone who deliberately sets fire to property. (Unrelated)
    • "Anarchist" refers to someone who believes in or tries to bring about anarchy. (Unrelated)

    Step 5: Conclude that "antagonist" is the only logically and semantically correct antonym.

    Question 38 · Verbal Aptitude · 2026_Set1 MCQ
    Combinatorics deals with problems involving counting. For example, “How many distinct arrangements of N distinct objects in M spaces on a circle are possible?” is a typical problem in combinatorics. This kind of counting is sometimes used in the modeling of several physical phenomena. Often, in such models, the different combinatorial possibilities are assigned probability values. Assigning probabilities enables the computation of the average values of physical quantities.

    Consider the following statements:

    P: Combinatorics is always invoked in the modeling of physical phenomena.

    Q: Modeling some physical phenomena involves assigning probabilities to combinatorial possibilities in order to compute average values of physical quantities.

    Based on the passage above, what can be inferred about statements P and Q?
    1. A.

      P is False and Q is False

    2. B.

      P is False and Q is True

    3. C.

      P is True and Q is False

    4. D.

      P is True and Q is True

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: Statement evaluation requires checking if the wording in the option strictly matches the passage without generalizing moderate quantifiers (like "sometimes") to absolutes (like "always").

    Exam route: Statement P uses "always", but the passage uses "sometimes" for combinatorics in physical models. Thus P is False. Statement Q uses "some", which is logically entailed by the passage's "Often, in such models". Thus Q is True. Match with Option B.

    Learning route:

    1. Analyze P: The passage explicitly states, "This kind of counting is sometimes used in the modeling of several physical phenomena." Statement P claims, "Combinatorics is always invoked". "Always" contradicts "sometimes". Therefore, P is False.
    2. Analyze Q: The passage states, "Often, in such models, the different combinatorial possibilities are assigned probability values. Assigning probabilities enables the computation of the average values of physical quantities." Statement Q claims, "Modeling some physical phenomena involves assigning probabilities...". Since "often" implies that it happens in at least some cases, "some" is a necessary truth derived from the text. Therefore, Q is True.
    3. Conclusion: P is False and Q is True. Option B correctly reflects this.
    Question 39 · Spatial Aptitude · 2026_Set1 MCQ
    The figure shows two 4-tile patterns.


    Either one or both of the patterns can be used any number of times and in any orientation to construct a new pattern. Which one of the options below cannot be constructed by using only these two 4-tile patterns assuming there are no overlaps among them?
    1. A.
    2. B.
    3. C.
    4. D.
    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a tile pattern construction problem. We must determine which target shape cannot be tiled using the given fundamental motifs without overlaps.

    Step 1: Analyze the given tiles.

    Tile 1 is a 2x2 block of squares (Area = 4).

    Tile 2 is a 1x4 vertical block of squares (Area = 4).

    Step 2: Identify the invariant.

    Both available tiles have an area of exactly 4 square units. Therefore, any valid pattern constructed from these tiles must have a total area that is a multiple of 4.

    Step 3: Evaluate the options based on area.

    Option A: 4x2 grid. Area = 8. (Multiple of 4, constructible using two 2x2 tiles).

    Option B: 4x3 grid. Area = 12. (Multiple of 4, constructible using three 1x4 tiles).

    Option C: 5x3 grid. Area = 15. (NOT a multiple of 4).

    Option D: 5x4 grid. Area = 20. (Multiple of 4, constructible using five 1x4 tiles).

    Step 4: Conclude.

    Since Option C has an area of 15, which is not divisible by 4, it is mathematically impossible to construct it using only tiles of area 4.

    Answer: C

    Question 40 · Spatial Aptitude · 2026_Set1 MCQ
    In Panel I of the figure below, the front view and top view of a structure are shown. Which one of the 3D structures shown in Panel II possesses the views shown in Panel I?

    Panel I Panel II Front View Top View Front View Top View (i) Front View Top View (ii) Front View Top View (iii) Front View Top View (iv)
    1. A.

      (i)

    2. B.

      (ii)

    3. C.

      (iii)

    4. D.

      (iv)

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a <pattern_matching> question requiring 3D reconstruction from orthographic views. The task is to match the given front and top views to the correct 3D structure.

    Step 1: Analyze the Front View.

    The front view shows a stepped pattern with 3 levels:

    • Left column: 3 blocks high
    • Middle section: 2 blocks high (shifted right)
    • Right section: 2 blocks at bottom level

    Step 2: Analyze the Top View.

    The top view shows a 3×3 grid pattern:

    • Top row: 3 blocks
    • Middle row: 3 blocks
    • Bottom row: 2 blocks (left and middle only)

    Step 3: Reconstruct the 3D shape mentally.

    Combining both views:

    • The structure has depth (visible from top view showing 3 rows)
    • The left side is tallest (3 levels from front view)
    • There's an asymmetrical stepped pattern

    Step 4: Match with Panel II options.

    Option (i): Shows correct stepped pattern with proper depth

    Option (ii): Missing the middle step feature

    Option (iii): Incorrect depth arrangement

    Option (iv): Wrong orientation of steps

    Answer: C (Option iii matches the views correctly)

    Other GATE CS papers