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

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

    +3 / -1 / 0

    Marking Scheme

    Section-wise Paper Structure

    Engineering Mathematics

    12 Qs

    18% of total marks

    Algorithms

    7 Qs

    11% of total marks

    Theory of Computation

    5 Qs

    8% of total marks

    Programming and Data Structures

    5 Qs

    8% of total marks

    Operating System

    5 Qs

    8% of total marks

    Databases

    5 Qs

    8% of total marks

    Computer Networks

    5 Qs

    8% of total marks

    Compiler Design

    5 Qs

    8% of total marks

    Computer Organization and Architecture

    4 Qs

    6% of total marks

    Quantitative Aptitude

    3 Qs

    5% of total marks

    Digital Logic

    3 Qs

    5% of total marks

    Verbal Aptitude

    2 Qs

    3% of total marks

    Spatial Aptitude

    2 Qs

    3% of total marks

    Analytical 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
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Let and be two propositions. Consider the following two formulae in propositional logic.


    Which one of the following choices is correct?
    Question 2
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    There are five bags each containing identical sets of ten distinct chocolates. One chocolate is picked from each bag.

    The probability that at least two chocolates are identical is ___________
    Question 3
    2021 Slot Set1 PYQ
    Level 3: Exam Standard

    In an undirected connected planar graph , there are eight vertices and five faces. The number of edges in is __________.

    Question 4
    2021 Slot Set1 PYQ
    Level 3: Exam Standard

    Let be an array containing integers. Let be the lowest upper bound on the number of comparisons of the array elements, required to find the minimum and maximum values in an arbitrary array of elements. Which one of the following choices is correct?

    Question 5
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following three functions.


    Which one of the following options arranges the functions in the increasing order of asymptotic growth rate?
    Question 6
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following array.

    2332456972738997

    Which algorithm out of the following options uses the least number of comparisons (among the array elements) to sort the above array in ascending order?
    Question 7
    2021 Slot Set1 PYQ
    Level 3: Exam Standard

    Suppose that is a regular language and is a context-free language. Which one of the following languages is NOT necessarily context-free?

    Question 8
    2021 Slot Set1 PYQ

    Let denote an encoding of an automaton . Suppose that . Which of the following languages is/are NOT recursive?

    Question 9
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following language.


    Which one of the following deterministic finite automata accepts ?
    Question 10
    2021 Slot Set1 PYQ
    Level 3: Exam Standard

    A binary search tree contains distinct elements. What is the time complexity of picking an element in that is smaller than the maximum element in ?

    Question 11
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following sequence of operations on an empty stack.

    push(54); push(52); pop(); push(55); push(62); s = pop();

    Consider the following sequence of operations on an empty queue.

    enqueue(21); enqueue(24); dequeue(); enqueue(28); enqueue(32); q = dequeue();

    The value of s + q is __________.
    Question 12
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following ANSI C program.

    #include <stdio.h>
    int main()
    {
        int i, j, count;
        count = 0;
        i = 0;
        for (j = -3; j <= 3; j++)
        {
            if ((j >= 0) && (i++))
                count = count + j;
        }
        count = count + i;
        printf("%d", count);
        return 0;
    }

    Which one of the following options is correct?
    Question 13
    2021 Slot Set1 PYQ

    In the context of operating systems, which of the following statements is/are correct with respect to paging?

    Question 14
    2021 Slot Set1 PYQ

    Which of the following standard C library functions will <i>always</i> invoke a system call when executed from a single-threaded process in a UNIX/Linux operating system?

    Question 15
    2021 Slot Set1 PYQ
    Consider a linear list based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of pointers to the data blocks. Consider a given directory foo.
    Which of the following operations will necessarily require a full scan of foo for successful completion?
    Question 16
    2021 Slot Set1 PYQ
    Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery.
    Which of the following statements is/are correct?
    Question 17
    2021 Slot Set1 PYQ
    A relation in a relational database has 1200 tuples. The attribute has integer values ranging from 6 to 20, and the attribute has integer values ranging from 1 to 20. Assume that the attributes and are independently distributed.

    The estimated number of tuples in the output of is __________.
    Question 18
    2021 Slot Set1 PYQ
    The following relation records the age of 500 employees of a company, where empNo (indicating the employee number) is the key:


    Consider the following relational algebra expression:


    What does the above expression generate?
    Question 19
    2021 Slot Set1 PYQ
    Consider the following two statements.

    Destination MAC address of an ARP reply is a broadcast address.
    Destination MAC address of an ARP request is a broadcast address.

    Which one of the following choices is correct?
    Question 20
    2021 Slot Set1 PYQ
    Assume that a 12-bit Hamming codeword consisting of 8-bit data and 4 check bits is , where the data bits and the check bits are given in the following tables:

    Data bits
    1 1 0 0 1 0 1

    Check bits
    0 1 0

    Which one of the following choices gives the correct values of and ?
    Question 21
    2021 Slot Set1 PYQ
    A TCP server application is programmed to listen on port number on host . A TCP client is connected to the TCP server over the network.
    Consider that while the TCP connection was active, the server machine crashed and rebooted. Assume that the client does not use the TCP keepalive timer.
    Which of the following behaviors is/are possible?
    Question 22
    2021 Slot Set1 PYQ
    Consider the following statements.

    The sequence of procedure calls corresponds to a preorder traversal of the activation tree.
    The sequence of procedure returns corresponds to a postorder traversal of the activation tree.

    Which one of the following options is correct?
    Question 23
    2021 Slot Set1 PYQ
    Consider the following statements.

    Every SLR(1) grammar is unambiguous but there are certain unambiguous grammars that are not SLR(1).
    For any context-free grammar, there is a parser that takes at most time to parse a string of length .

    Which one of the following options is correct?
    Question 24
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code:


    With respect to the above grammar, which one of the following choices is correct?
    Question 25
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a computer system with a byte-addressable primary memory of size bytes. Assume the computer system has a direct-mapped cache of size 32 KB (1 KB = bytes), and each cache block is of size 64 bytes.
    The size of the tag field is __________ bits.
    Question 26
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following representation of a number in IEEE 754 single-precision floating point format with a bias of 127.


    Here , and denote the sign, exponent and fraction components of the floating point representation.

    The decimal value corresponding to the above representation (rounded to 2 decimal places) is __________.
    Question 27
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    A five-stage pipeline has stage delays of 150, 120, 150, 160 and 140 nanoseconds. The registers that are used between the pipeline stages have a delay of 5 nanoseconds each.
    The total time to execute 100 independent instructions on this pipeline, assuming there are no pipeline stalls, is __________ nanoseconds.
    Question 28
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    The ratio of boys to girls in a class is 7 to 3.

    Among the options below, an acceptable value for the total number of students in the class is:
    Question 29
    2021 Slot Set1 PYQ
    Level 3: Exam Standard

    We have 2 rectangular sheets of paper, M and N, of dimensions 6 cm x 1 cm each. Sheet M is rolled to form an open cylinder by bringing the short edges of the sheet together. Sheet N is cut into equal square patches and assembled to form the largest possible closed cube. Assuming the ends of the cylinder are closed, the ratio of the volume of the cylinder to that of the cube is __________

    Question 30
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Items Cost
    (₹)
    Profit % Marked Price
    (₹)
    P 5,400 --- 5,860
    Q --- 25 10,000

    Details of prices of two items P and Q are presented in the above table. The ratio of cost of item P to cost of item Q is 3:4. Discount is calculated as the difference between the marked price and the selling price. The profit percentage is calculated as the ratio of the difference between selling price and cost, to the cost .

    The discount on item Q, as a percentage of its marked price, is ______
    Question 31
    2021 Slot Set1 PYQ
    Level 3: Exam Standard

    Let the representation of a number in base 3 be 210. What is the hexadecimal representation of the number?

    Question 32
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a 3-bit counter, designed using T flip-flops, as shown below:

    TP TQ TR P P′ Q Q′ R R′ Clock Pulse P Q R
    Assuming the initial state of the counter given by PQR as 000, what are the next three states?
    Question 33
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following Boolean expression.


    Which of the following Boolean expressions is/are equivalent to (complement of )?
    Question 34
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following sentences:

    (i) Everybody in the class is prepared for the exam.
    (ii) Babu invited Danish to his home because he enjoys playing chess.

    Which of the following is the CORRECT observation about the above two sentences?
    Question 35
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Some people suggest anti-obesity measures (AOM) such as displaying calorie information in restaurant menus. Such measures sidestep addressing the core problems that cause obesity: poverty and income inequality.

    Which one of the following statements summarizes the passage?
    Question 36
    2021 Slot Set1 PYQ
    A polygon is convex if, for every pair of points, P and Q belonging to the polygon, the line segment PQ lies completely inside or on the polygon.

    Which one of the following is NOT a convex polygon?
    Question 37
    2021 Slot Set1 PYQ
    Level 3: Exam Standard

    A circular sheet of paper is folded along the lines in the directions shown. The paper, after being punched in the final folded state as shown and unfolded in the reverse order of folding, will look like _______.
    Question 38
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    _____ is to surgery as writer is to ________

    Which one of the following options maintains a similar logical relation in the above sentence?
    Question 39
    2021 Slot Set1 PYQ
    Level 3: Exam Standard
    Given below are two statements 1 and 2, and two conclusions I and II.

    Statement 1: All bacteria are microorganisms.

    Statement 2: All pathogens are microorganisms.

    Conclusion I: Some pathogens are bacteria.

    Conclusion II: All pathogens are not bacteria.

    Based on the above statements and conclusions, which one of the following options is logically CORRECT?

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

    GATE CS 2021_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: 12 · Algorithms: 7 · Theory of Computation: 5 · Programming and Data Structures: 5 · Operating System: 5 · Databases: 5 · Computer Networks: 5 · Compiler Design: 5 · Computer Organization and Architecture: 4 · Quantitative Aptitude: 3 · Digital Logic: 3 · Verbal Aptitude: 2 · Spatial Aptitude: 2 · Analytical Aptitude: 2

    Free sample questions from GATE CS 2021_Set1 Question Paper

    Question 1 · Engineering Mathematics · 2021_Set1 MCQ
    Let and be two propositions. Consider the following two formulae in propositional logic.


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

      Both and are tautologies.

    2. B.

      is a tautology but is not a tautology.

    3. C.

      is not a tautology but is a tautology.

    4. D.

      Neither nor is a tautology.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a tautology checking question, recognizable because it asks to classify propositional formulae as tautologies. We can simplify the expressions algebraically using logical equivalences.

    Step 1: Simplify the common subexpression.

    Both and contain the term .

    Using the Distributive Law:

    Since is a contradiction (False):

    .

    Step 2: Analyze .

    Using the Implication Law ():

    Using De Morgan's Law:

    Using Associative Law:

    Since is a tautology (True):

    .

    Since simplifies to True for all values of and , is a tautology.

    Step 3: Analyze .

    Using the Implication Law:

    Using the Distributive Law in reverse:

    .

    This expression is not always true (e.g., if and , it evaluates to ).

    Therefore, is not a tautology (it is a contingency).

    Step 4: Conclusion.

    is a tautology, but is not.

    Answer: B

    Question 2 · Engineering Mathematics · 2021_Set1 MCQ
    There are five bags each containing identical sets of ten distinct chocolates. One chocolate is picked from each bag.

    The probability that at least two chocolates are identical is ___________
    1. A.

      0.3024

    2. B.

      0.4235

    3. C.

      0.6976

    4. D.

      0.8125

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: "at least two identical" is the complement of "all distinct", so count the distinct case and subtract from 1.

    Exam route:

    Total ways to pick one chocolate from each of 5 bags = .

    Ways to get all 5 chocolates distinct (slot-filling) = .

    .

    .

    Learning route:

    This is a complementary-counting question, signalled by the phrase "at least two".

    Step 1 — Build the sample space. Each bag is independent and has 10 distinct chocolates, so picking one from each of 5 bags gives equally likely outcomes.

    Step 2 — Count the complementary event. "All distinct" means no two of the five picked chocolates share a label. The first pick has 10 choices, the second must avoid the first (9 choices), the third avoids the first two (8 choices), and so on: .

    Step 3 — Subtract from 1. .

    Wrong path: If you forget to complement, you land on 0.3024 (option A), which is the probability that all are distinct — the exact opposite of what is asked.

    Verification: , so the two complementary events partition the sample space correctly.

    Question 3 · Engineering Mathematics · 2021_Set1 NAT

    In an undirected connected planar graph , there are eight vertices and five faces. The number of edges in is __________.

    Correct Answer:

    11.00

    Step-by-Step Solution

    Insight: Euler's formula for connected planar graphs directly relates vertices, edges, and faces.

    Exam route: .

    Learning route:

    Step 1: Identify the graph properties. The graph is undirected, connected, and planar.

    Step 2: Recall Euler's formula for connected planar graphs: .

    Step 3: Substitute the given values. We have vertices and faces (including the outer face).

    Step 4: Solve for :

    .

    Question 4 · Algorithms · 2021_Set1 MCQ

    Let be an array containing integers. Let be the lowest upper bound on the number of comparisons of the array elements, required to find the minimum and maximum values in an arbitrary array of elements. Which one of the following choices is correct?

    1. A.

    2. B.

      and

    3. C.

      and

    4. D.

      and

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a comparison bounds question, recognisable because it asks for the lowest upper bound on the number of comparisons required to find both the minimum and maximum values simultaneously.

    Step 1: The naive approach finds the minimum in comparisons and the maximum in another comparisons, totaling comparisons.

    Step 2: The optimal approach processes elements in pairs. Divide the elements into pairs.

    Step 3: Compare the two elements within each pair. This takes comparisons and yields a local minimum and a local maximum for each pair.

    Step 4: Find the global minimum by comparing the local minimums. This takes comparisons.

    Step 5: Find the global maximum by comparing the local maximums. This takes comparisons.

    Step 6: Total comparisons .

    Step 7: This value is strictly less than or equal to . For (with the minor exception of where it equals ), it is greater than . Among the choices, Option C is the only one that correctly bounds the optimal count from above by and generally satisfies the lower bound for meaningful array sizes.

    Answer: C

    Question 5 · Algorithms · 2021_Set1 MCQ
    Consider the following three functions.


    Which one of the following options arranges the functions in the increasing order of asymptotic growth rate?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a function growth comparison question, recognizable because it asks to order three functions by asymptotic growth rate.

    Why this method applies: When comparing functions with variables in both the base and the exponent, taking the logarithm of all functions preserves their relative order and simplifies the expressions into comparable polynomial/logarithmic forms.

    Step 1: Take the base-2 logarithm of each function.

    .

    .

    .

    Step 2: Compare the growth rates of the logarithms.

    We need to order , , and .

    Divide all three by (valid since for large ):

    We get , , and .

    Step 3: Apply the standard hierarchy of growth rates.

    It is a well-known fact that .

    Therefore, multiplying back by , we have .

    Step 4: Since the logarithms are ordered as , the original functions follow the exact same order: .

    Answer: Option D is correct.

    Question 6 · Algorithms · 2021_Set1 MCQ
    Consider the following array.

    2332456972738997

    Which algorithm out of the following options uses the least number of comparisons (among the array elements) to sort the above array in ascending order?
    1. A.

      Selection sort

    2. B.

      Mergesort

    3. C.

      Insertion sort

    4. D.

      Quicksort using the last element as pivot

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a sorting algorithm operation counting question, recognisable because it provides a specific array and asks which algorithm uses the least number of comparisons. The added layer is recognizing the initial state of the array.

    Step 1: Observe the given array: .

    Step 2: Notice that the array is already sorted in ascending order. Let .

    Step 3: Evaluate each option for an already sorted array:

    • Selection sort: Always performs comparisons regardless of input order. For , this is comparisons.
    • Mergesort: Always performs comparisons. For , it is around comparisons (specifically, 17 to 21 depending on implementation).
    • Insertion sort: For an already sorted array, the inner loop condition fails immediately on the first check for each element. It performs exactly comparisons. For , this is comparisons.
    • Quicksort (last element as pivot): For an already sorted array, this is the worst-case scenario. It performs comparisons. For , this is 28 comparisons.

    Step 4: Compare the counts: (Insertion) is the least.

    Answer: C

    Question 7 · Theory of Computation · 2021_Set1 MCQ

    Suppose that is a regular language and is a context-free language. Which one of the following languages is NOT necessarily context-free?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a closure properties question involving the interaction between Regular and Context-Free Languages (CFLs), recognizable because it asks which operation does NOT preserve the CFL property.

    Step 1: Recall the closure properties of CFLs. CFLs are closed under union, concatenation, Kleene star, and intersection with Regular languages.

    Step 2: Evaluate Option A: . Since is regular and is CFL, their intersection is guaranteed to be CFL.

    Step 3: Evaluate Option B: . Since Regular languages are a subset of CFLs, this is the concatenation of two CFLs, which is always CFL.

    Step 4: Evaluate Option D: . The union of a regular language and a CFL is always CFL.

    Step 5: Evaluate Option C: . By definition, . If this were always CFL, then by choosing (which is regular), we would have is always CFL. This would mean CFLs are closed under complement, which is false. Thus, is NOT necessarily CFL.

    Answer: C

    Question 8 · Theory of Computation · 2021_Set1 MSQ

    Let denote an encoding of an automaton . Suppose that . Which of the following languages is/are NOT recursive?

    1. A.

    2. B.

    3. C.

    4. D.

    Question 9 · Theory of Computation · 2021_Set1 MCQ
    Consider the following language.


    Which one of the following deterministic finite automata accepts ?
    1. A. start 1 0 0 1 0 1 1 0
    2. B. start 1 0 0 1 0 1 0,1
    3. C. start 1 0 0 1 0 1 1 0
    4. D. start 1 0 0 1 0 1 1 0
    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a DFA design question for a specific suffix pattern, recognizable by the "ends with" phrasing. The core method is tracking the longest suffix of the input that matches a prefix of the target pattern.

    Step 1: Define the target pattern. We want strings ending in "011". The states must remember how much of "011" we have successfully matched at the end of the string read so far.

    Step 2: Define the states based on the longest matched suffix:

    • : Start state. No part of "011" matched (or the string ends in '1' but not '01' or '011').
    • : The string ends in "0".
    • : The string ends in "01".
    • : The string ends in "011". This is the only final state.

    Step 3: Determine transitions strictly using the longest suffix rule:

    • From : reading '0' gives suffix "0" . Reading '1' gives suffix "1" (no prefix match) .
    • From (ends in "0"): reading '0' gives "00", longest suffix matching prefix is "0" . Reading '1' gives "01" .
    • From (ends in "01"): reading '0' gives "010", longest matching prefix is "0" . Reading '1' gives "011" .
    • From (ends in "011"): reading '0' gives "0110", longest matching prefix is "0" . Reading '1' gives "0111", longest matching prefix is .

    Step 4: Match this logic to the given options. Option C is the only diagram that correctly routes on '1' back to and on '0' to , avoiding the trap of accepting "0111" or "011011".

    Answer: C

    Question 10 · Programming and Data Structures · 2021_Set1 MCQ

    A binary search tree contains distinct elements. What is the time complexity of picking an element in that is smaller than the maximum element in ?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: This is a BST complexity trick question, recognizable because it asks for the time complexity of finding "an element" smaller than the maximum, not a specific element like the second maximum.

    Exam route: The maximum element in a BST is the rightmost node. We need ANY element smaller than it. If the root has a right child, the root itself is strictly smaller than the maximum (which is in the right subtree). If the root has no right child, the root IS the maximum, but since is distinct and presumably , the root must have a left child, which is strictly smaller. In either case, we can pick a valid element by inspecting only the root and its immediate children. This takes time.

    Learning route:

    Step 1: Understand the goal. We need to find ANY element in the BST that is strictly less than the maximum element. We do not need to find the second largest, just any valid candidate.

    Step 2: Identify the maximum element. In a BST, the maximum is always the rightmost node.

    Step 3: Consider the root node. There are two cases for the root:

    • Case A: The root has a right child. This means the maximum element is somewhere in the right subtree. Therefore, the root's value is strictly less than the maximum. We can simply pick the root.
    • Case B: The root has no right child. This means the root itself is the maximum element. However, since the tree has distinct elements (and for the question to be meaningful, ), the root must have a left child. The left child's value is strictly less than the root (the maximum). We can simply pick the left child.

    Step 4: Analyze the time complexity. In both cases, we only need to check the root and at most one of its immediate children (the right child, or if null, the left child). This requires a constant number of pointer dereferences.

    Step 5: Conclude. The time complexity is .

    Wrong path: Assuming we must find the exact "second maximum" element (the inorder predecessor of the max), which would take or time in a balanced tree, leading to Option C. Or assuming we must traverse the whole tree, leading to Option B.

    Question 11 · Programming and Data Structures · 2021_Set1 NAT
    Consider the following sequence of operations on an empty stack.

    push(54); push(52); pop(); push(55); push(62); s = pop();

    Consider the following sequence of operations on an empty queue.

    enqueue(21); enqueue(24); dequeue(); enqueue(28); enqueue(32); q = dequeue();

    The value of s + q is __________.
    Correct Answer:

    86.00

    Step-by-Step Solution

    Insight: This is a data structure simulation question, recognizable because it provides a sequence of standard stack (LIFO) and queue (FIFO) operations and asks for the final extracted values.

    Exam route: Trace the stack to find s=62, trace the queue to find q=24, and sum them to get 86.

    Learning route:

    Step 1: Simulate the stack operations. The stack starts empty.

    • push(54): Stack is [54]
    • push(52): Stack is [54, 52]
    • pop(): Removes 52. Stack is [54]
    • push(55): Stack is [54, 55]
    • push(62): Stack is [54, 55, 62]
    • s = pop(): Removes and assigns 62 to s. Stack is [54, 55]. So, s = 62.

    Step 2: Simulate the queue operations. The queue starts empty.

    • enqueue(21): Queue is [21]
    • enqueue(24): Queue is [21, 24]
    • dequeue(): Removes 21. Queue is [24]
    • enqueue(28): Queue is [24, 28]
    • enqueue(32): Queue is [24, 28, 32]
    • q = dequeue(): Removes and assigns 24 to q. Queue is [28, 32]. So, q = 24.

    Step 3: Calculate the final value. s + q = 62 + 24 = 86.

    Question 12 · Programming and Data Structures · 2021_Set1 MCQ
    Consider the following ANSI C program.

    #include <stdio.h>
    int main()
    {
        int i, j, count;
        count = 0;
        i = 0;
        for (j = -3; j <= 3; j++)
        {
            if ((j >= 0) && (i++))
                count = count + j;
        }
        count = count + i;
        printf("%d", count);
        return 0;
    }

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

      The program will not compile successfully.

    2. B.

      The program will compile successfully and output 10 when executed.

    3. C.

      The program will compile successfully and output 8 when executed.

    4. D.

      The program will compile successfully and output 13 when executed.

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: This is a short-circuit evaluation question with a post-increment side effect hidden inside the loop condition.

    Exam route: Build a 7-row trace table. The key pivot is that && skips i++ entirely when j < 0, and at j=0 the post-increment returns 0 (false) so the body is skipped but i still increments.

    Learning route:

    1. Initialize: count = 0, i = 0.
    2. For j = -3, -2, -1: (j >= 0) is false. Short-circuit skips (i++). Neither the body nor the increment runs. i stays 0, count stays 0.
    3. For j = 0: (j >= 0) is true, so (i++) is evaluated. Post-increment returns the old value 0, which is falsy. The overall condition is false. Body is skipped. But the side effect fires: i becomes 1. count stays 0.
    4. For j = 1: (i++) returns 1 (truthy). Body runs: count = 0 + 1 = 1. Side effect: i becomes 2.
    5. For j = 2: (i++) returns 2 (truthy). Body runs: count = 1 + 2 = 3. Side effect: i becomes 3.
    6. For j = 3: (i++) returns 3 (truthy). Body runs: count = 3 + 3 = 6. Side effect: i becomes 4.
    7. After loop: count = count + i = 6 + 4 = 10.

    Wrong path producing 13: A student who ignores short-circuit evaluation assumes i++ runs for all 7 values of j, making i = 7. They also incorrectly add negative j values. This is wrong because && guarantees the right operand is never evaluated when the left is false.

    Wrong path producing 8: A student who forgets that post-increment still fires at j=0 (even though the body is skipped) would compute final i = 3 instead of 4, yielding 6 + 3 = 9 or possibly miscount the body executions.

    Verification: Body executes for j = 1, 2, 3, accumulating . The increment i++ fires 4 times (at j = 0, 1, 2, 3), so final i = 4. Total . Confirmed.

    Generalization: In any A && B condition, if A is false, B (including all its side effects) is completely skipped. Track the boolean test value and the post-side-effect value of any incremented variable as separate columns.

    Question 13 · Operating System · 2021_Set1 MSQ

    In the context of operating systems, which of the following statements is/are correct with respect to paging?

    1. A.

      Paging helps solve the issue of external fragmentation.

    2. B.

      Page size has no impact on internal fragmentation.

    3. C.

      Paging incurs memory overheads.

    4. D.

      Multi-level paging is necessary to support pages of different sizes.

    Question 14 · Operating System · 2021_Set1 MSQ

    Which of the following standard C library functions will <i>always</i> invoke a system call when executed from a single-threaded process in a UNIX/Linux operating system?

    1. A.

      exit

    2. B.

      malloc

    3. C.

      sleep

    4. D.

      strlen

    Question 15 · Operating System · 2021_Set1 MSQ
    Consider a linear list based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of pointers to the data blocks. Consider a given directory foo.
    Which of the following operations will necessarily require a full scan of foo for successful completion?
    1. A.

      Creation of a new file in foo

    2. B.

      Deletion of an existing file from foo

    3. C.

      Renaming of an existing file in foo

    4. D.

      Opening of an existing file in foo

    Question 16 · Databases · 2021_Set1 MSQ
    Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery.
    Which of the following statements is/are correct?
    1. A.

      The same undo and redo list will be used while recovering again.

    2. B.

      The system cannot recover any further.

    3. C.

      All the transactions that are already undone and redone will not be recovered again.

    4. D.

      The database will become inconsistent.

    Question 17 · Databases · 2021_Set1 NAT
    A relation in a relational database has 1200 tuples. The attribute has integer values ranging from 6 to 20, and the attribute has integer values ranging from 1 to 20. Assume that the attributes and are independently distributed.

    The estimated number of tuples in the output of is __________.
    Question 18 · Databases · 2021_Set1 MCQ
    The following relation records the age of 500 employees of a company, where empNo (indicating the employee number) is the key:


    Consider the following relational algebra expression:


    What does the above expression generate?
    1. A.

      Employee numbers of only those employees whose age is the maximum.

    2. B.

      Employee numbers of only those employees whose age is more than the age of exactly one other employee.

    3. C.

      Employee numbers of all employees whose age is not the minimum.

    4. D.

      Employee numbers of all employees whose age is the minimum.

    Question 19 · Computer Networks · 2021_Set1 MCQ
    Consider the following two statements.

    Destination MAC address of an ARP reply is a broadcast address.
    Destination MAC address of an ARP request is a broadcast address.

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

      Both and are true.

    2. B.

      is true and is false.

    3. C.

      is false and is true.

    4. D.

      Both and are false.

    Question 20 · Computer Networks · 2021_Set1 MCQ
    Assume that a 12-bit Hamming codeword consisting of 8-bit data and 4 check bits is , where the data bits and the check bits are given in the following tables:

    Data bits
    1 1 0 0 1 0 1

    Check bits
    0 1 0

    Which one of the following choices gives the correct values of and ?
    1. A.

      is 0 and is 0.

    2. B.

      is 0 and is 1.

    3. C.

      is 1 and is 0.

    4. D.

      is 1 and is 1.

    Question 21 · Computer Networks · 2021_Set1 MSQ
    A TCP server application is programmed to listen on port number on host . A TCP client is connected to the TCP server over the network.
    Consider that while the TCP connection was active, the server machine crashed and rebooted. Assume that the client does not use the TCP keepalive timer.
    Which of the following behaviors is/are possible?
    1. A.

      If the client was waiting to receive a packet, it may wait indefinitely.

    2. B.

      The TCP server application on can listen on after reboot.

    3. C.

      If the client sends a packet after the server reboot, it will receive a RST segment.

    4. D.

      If the client sends a packet after the server reboot, it will receive a FIN segment.

    Question 22 · Compiler Design · 2021_Set1 MCQ
    Consider the following statements.

    The sequence of procedure calls corresponds to a preorder traversal of the activation tree.
    The sequence of procedure returns corresponds to a postorder traversal of the activation tree.

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

      is true and is false

    2. B.

      is false and is true

    3. C.

      is true and is true

    4. D.

      is false and is false

    Question 23 · Compiler Design · 2021_Set1 MCQ
    Consider the following statements.

    Every SLR(1) grammar is unambiguous but there are certain unambiguous grammars that are not SLR(1).
    For any context-free grammar, there is a parser that takes at most time to parse a string of length .

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

      is true and is false

    2. B.

      is false and is true

    3. C.

      is true and is true

    4. D.

      is false and is false

    Question 24 · Compiler Design · 2021_Set1 MCQ
    Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code:


    With respect to the above grammar, which one of the following choices is correct?
    1. A.

      The actions can be used to correctly type-check any syntactically correct program.

    2. B.

      The actions can be used to type-check syntactically correct integer variable declarations and integer expressions.

    3. C.

      The actions can be used to type-check syntactically correct boolean variable declarations and boolean expressions.

    4. D.

      The actions will lead to an infinite loop.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: Trace the syntax-directed translation (SDT) actions to see what types are actually supported and checked.

    Step 1: Look at the declaration rules. The grammar allows declaring variables as int or bool and records them in the symbol table.

    Step 2: Look at the expression rules. The rule E -> ID has the action {set E.type := int}. It hardcodes the type to int and completely ignores the symbol table lookup.

    Step 3: Because E -> ID always returns int, any boolean variable used in an expression will be incorrectly treated as an integer. Therefore, the SDT cannot correctly type-check any program (Option A is false) and cannot type-check boolean expressions (Option C is false).

    Step 4: The SDT does not contain any recursive or cyclic dependencies that would cause an infinite loop (Option D is false).

    Step 5: Since the expression rules only support int (e.g., E1 + E2 checks for int), the SDT can only successfully type-check integer variable declarations and integer expressions.

    Answer: B

    Question 25 · Computer Organization and Architecture · 2021_Set1 NAT
    Consider a computer system with a byte-addressable primary memory of size bytes. Assume the computer system has a direct-mapped cache of size 32 KB (1 KB = bytes), and each cache block is of size 64 bytes.
    The size of the tag field is __________ bits.
    Correct Answer:

    17.00

    Step-by-Step Solution

    Insight: This is a direct address-decomposition question — split the 32-bit address into Tag, Index, Offset using cache size and block size.

    Exam route:

    1. Cache = 32 KB = B, Block = 64 B = B.
    2. Lines = .
    3. Index = bits.
    4. Offset = bits.
    5. Tag = bits.

    Learning route:

    This is a standard address-decomposition question, recognisable because the problem gives cache size, block size, and address width and asks for the tag field size.

    In a direct-mapped cache every physical address is split into three contiguous fields: Tag | Index | Offset.

    • The Offset selects the byte within a block. Block = 64 B, so Offset = bits.
    • The Index selects the cache line. Number of lines = Cache / Block = . So Index = bits.
    • The Tag is whatever remains: Tag = bits.

    The main memory size ( B) is consistent with the 32-bit address but is not needed for the calculation — only cache size, block size, and address width matter.

    Verification: Tag + Index + Offset = ✓.

    Answer: 17

    Question 26 · Computer Organization and Architecture · 2021_Set1 NAT
    Consider the following representation of a number in IEEE 754 single-precision floating point format with a bias of 127.


    Here , and denote the sign, exponent and fraction components of the floating point representation.

    The decimal value corresponding to the above representation (rounded to 2 decimal places) is __________.
    Correct Answer:

    -7.75

    Step-by-Step Solution

    Key idea: This is an IEEE 754 single-precision decoding question, recognisable because it gives , , fields and asks for the decimal value.

    Step 1: Identify the fields. (negative), , .

    Step 2: Compute the exponent. . True exponent .

    Step 3: Compute the significand. Since , this is normalized. The implicit leading gives:

    Step 4: Apply the formula:

    Step 5: Rounded to 2 decimal places: .

    Answer: -7.75

    Question 27 · Computer Organization and Architecture · 2021_Set1 NAT
    A five-stage pipeline has stage delays of 150, 120, 150, 160 and 140 nanoseconds. The registers that are used between the pipeline stages have a delay of 5 nanoseconds each.
    The total time to execute 100 independent instructions on this pipeline, assuming there are no pipeline stalls, is __________ nanoseconds.
    Correct Answer:

    17160

    Step-by-Step Solution

    Key idea: This is a pipeline execution time calculation, recognisable because it provides stage delays, register delays, and a number of instructions, asking for total execution time with no stalls.

    Step 1: The pipeline clock cycle is determined by the slowest stage, because every stage must complete within one clock period. Find the maximum stage delay: ns.

    Step 2: Add the pipeline register delay to get the cycle time. Each pipeline register sits between stages and adds overhead. Cycle time ns.

    Step 3: Use the pipeline execution time formula for instructions on a -stage pipeline with no stalls: .

    Step 4: Substitute , : .

    Step 5: Compute ns.

    Answer: 17160

    Question 28 · Quantitative Aptitude · 2021_Set1 MCQ
    The ratio of boys to girls in a class is 7 to 3.

    Among the options below, an acceptable value for the total number of students in the class is:
    1. A.

      21

    2. B.

      37

    3. C.

      50

    4. D.

      73

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The total quantity must be a multiple of the sum of the ratio parts.

    Exam route: Ratio is 7:3. Sum of parts = 10. Total students must be a multiple of 10. Among the options, only 50 is a multiple of 10.

    Learning route:

    Step 1: Let the number of boys be and girls be .

    Step 2: Total students .

    Step 3: Since must be an integer (you cannot have a fraction of a student), the total number of students must be a multiple of 10.

    Step 4: Check the options: 21, 37, 50, 73. Only 50 is divisible by 10.

    Trap warning: Students might just look for a multiple of 7 or 3 individually. The sum of the parts is the key invariant.

    Verification: If total is 50, . Boys = 35, Girls = 15. Ratio = 35:15 = 7:3. Matches perfectly.

    Question 29 · Quantitative Aptitude · 2021_Set1 MCQ

    We have 2 rectangular sheets of paper, M and N, of dimensions 6 cm x 1 cm each. Sheet M is rolled to form an open cylinder by bringing the short edges of the sheet together. Sheet N is cut into equal square patches and assembled to form the largest possible closed cube. Assuming the ends of the cylinder are closed, the ratio of the volume of the cylinder to that of the cube is __________

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: Rolling a sheet along its short edge makes the long edge the circumference. A closed cube requires exactly 6 square faces.

    Exam route: Cylinder circumference = 6, height = 1 , Volume = . Cube has 6 faces of 1x1 Volume = 1. Ratio = .

    Learning route:

    1. Sheet M (6 cm x 1 cm) is rolled by bringing the short edges together. This means the seam is 1 cm long, so the cylinder height cm.
    2. The circumference of the cylinder is the long edge, cm.
    3. From , we get the radius cm.
    4. Volume of the cylinder cm.
    5. Sheet N (6 cm x 1 cm) is cut into equal square patches to form the largest possible closed cube. A closed cube has exactly 6 faces.
    6. The only way to cut a 6x1 sheet into 6 equal squares is to make six 1x1 cm squares.
    7. These 6 squares assemble into a cube of edge length cm.
    8. Volume of the cube cm.
    9. The ratio of the volume of the cylinder to that of the cube is .

    Wrong path: Rolling along the long edge, making circumference = 1 and height = 6. This gives and Volume = , which is not an option. Or assuming an open cube (5 faces), which doesn't divide 6 evenly into squares.

    Question 30 · Quantitative Aptitude · 2021_Set1 MCQ
    Items Cost
    (₹)
    Profit % Marked Price
    (₹)
    P 5,400 --- 5,860
    Q --- 25 10,000

    Details of prices of two items P and Q are presented in the above table. The ratio of cost of item P to cost of item Q is 3:4. Discount is calculated as the difference between the marked price and the selling price. The profit percentage is calculated as the ratio of the difference between selling price and cost, to the cost .

    The discount on item Q, as a percentage of its marked price, is ______
    1. A.

      25

    2. B.

      12.5

    3. C.

      10

    4. D.

      5

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The cost price of Q can be derived from the given ratio with P's cost price, then selling price follows from the profit percentage, and finally the discount percentage is calculated from the marked price.

    Exam route: CP_Q = 5400 (4/3) = 7200. SP_Q = 7200 1.25 = 9000. Discount = 10000 - 9000 = 1000. Discount % = (1000 / 10000) * 100 = 10%.

    Learning route:

    1. Identify knowns: CP_P = 5400, and the ratio CP_P : CP_Q = 3 : 4.
    2. Calculate CP_Q: Since 3 parts = 5400, 1 part = 1800. Thus, CP_Q = 4 * 1800 = 7200.
    3. Use Profit % for Q (25%) to find SP_Q: SP_Q = CP_Q (1 + 25/100) = 7200 1.25 = 9000.
    4. Use MP_Q (10000) to find the absolute Discount: Discount = MP_Q - SP_Q = 10000 - 9000 = 1000.
    5. Calculate Discount %: The base for discount percentage is always the Marked Price. So, (1000 / 10000) * 100 = 10%.
    Question 31 · Digital Logic · 2021_Set1 MCQ

    Let the representation of a number in base 3 be 210. What is the hexadecimal representation of the number?

    1. A.

      15

    2. B.

      21

    3. C.

      D2

    4. D.

      528

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Route through Base 10 to convert from Base 3 to Hexadecimal (Base 16).

    Exam route:

    1. .
    2. R . Result is .

    Learning route:

    The question requires converting a Base 3 number to Hexadecimal. Since 3 and 16 are not powers of the same base, we must use Base 10 as an intermediate.

    Step 1: Convert to Base 10. The positional weights for Base 3 are , , .

    .

    Step 2: Convert to Base 16. Divide 21 by 16. The quotient is 1 and the remainder is 5.

    Reading the remainders gives .

    Verification: . Matches.

    Question 32 · Digital Logic · 2021_Set1 MCQ
    Consider a 3-bit counter, designed using T flip-flops, as shown below:

    TP TQ TR P P′ Q Q′ R R′ Clock Pulse P Q R
    Assuming the initial state of the counter given by PQR as 000, what are the next three states?
    1. A.

      011, 101, 000

    2. B.

      001, 010, 111

    3. C.

      011, 101, 111

    4. D.

      001, 010, 000

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: This is a synchronous counter where the T inputs are driven by combinational logic of the current state, requiring step-by-step state tracing using the T flip-flop characteristic equation.

    Exam route: Extract excitation equations: , , . Use . Starting from , compute next states: .

    Learning route:

    Step 1: Identify the flip-flop type and its characteristic equation. For T flip-flops, .

    Step 2: Read the circuit diagram to find the excitation equations for each flip-flop input.

    • is connected to , so .
    • is connected to , so .
    • is connected to , so .

    Step 3: Substitute the current state into the excitation equations.

    • , , .

    Step 4: Calculate the next state using .

    Next state is .

    Step 5: Repeat for the next state .

    • , , .
    • , , .

    Next state is .

    Step 6: Repeat for .

    • , , .
    • , , .

    Next state is .

    Verification: The sequence perfectly matches the first option.

    Question 33 · Digital Logic · 2021_Set1 MSQ
    Consider the following Boolean expression.


    Which of the following Boolean expressions is/are equivalent to (complement of )?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["B","C","D"]

    Step-by-Step Solution

    Insight: Simplify first using consensus and absorption, then apply De Morgan's laws to find .

    Exam route: . Then . Complementing gives .

    Learning route:

    Step 1: Simplify .

    Apply the rule with :

    .

    Step 2: Multiply by the third term:

    .

    Factor : .

    Step 3: Find using De Morgan's laws:

    .

    Step 4: Verify options against .

    Option B is exactly . (Correct)

    Option C: . (Correct)

    Option D: .

    By consensus on and , the term is redundant, but wait, let's use a truth table or algebra:

    .

    This is algebraically identical to . (Correct)

    Option A simplifies to , which fails for (gives 0, but ). (Incorrect)

    Question 34 · Verbal Aptitude · 2021_Set1 MCQ
    Consider the following sentences:

    (i) Everybody in the class is prepared for the exam.
    (ii) Babu invited Danish to his home because he enjoys playing chess.

    Which of the following is the CORRECT observation about the above two sentences?
    1. A.

      (i) is grammatically correct and (ii) is unambiguous

    2. B.

      (i) is grammatically incorrect and (ii) is unambiguous

    3. C.

      (i) is grammatically correct and (ii) is ambiguous

    4. D.

      (i) is grammatically incorrect and (ii) is ambiguous

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: Indefinite pronouns like 'Everybody' are grammatically singular, while personal pronouns must have a single, unmistakable antecedent to avoid ambiguity.

    Exam route: Sentence (i) uses 'Everybody', which is singular and correctly pairs with the singular verb 'is'. Sentence (ii) uses the pronoun 'he', which could logically refer to either 'Babu' or 'Danish', making the sentence ambiguous. Therefore, (i) is correct and (ii) is ambiguous.

    Learning route:

    Step 1: Analyze sentence (i). 'Everybody' belongs to the class of indefinite pronouns (along with someone, anyone, nobody), which always take singular verbs. 'Is' is singular, so the sentence is grammatically correct.

    Step 2: Analyze sentence (ii). The pronoun 'he' is used in the dependent clause. The main clause contains two male nouns: 'Babu' and 'Danish'. Because both are valid antecedents for 'he', the reader cannot know who enjoys playing chess. This is a classic ambiguous reference error.

    Step 3: Match these findings to the options. Option C correctly identifies (i) as correct and (ii) as ambiguous.

    Common trap: Students might think 'Everybody' implies a plural group and incorrectly select 'are', or they might assume 'he' naturally refers to the subject 'Babu' and miss the ambiguity.

    Verification: Rewriting (ii) to remove ambiguity (e.g., "Babu invited Danish because Babu enjoys chess") proves the original was structurally flawed in its clarity.

    Question 35 · Verbal Aptitude · 2021_Set1 MCQ
    Some people suggest anti-obesity measures (AOM) such as displaying calorie information in restaurant menus. Such measures sidestep addressing the core problems that cause obesity: poverty and income inequality.

    Which one of the following statements summarizes the passage?
    1. A.

      The proposed AOM addresses the core problems that cause obesity.

    2. B.

      If obesity reduces, poverty will naturally reduce, since obesity causes poverty.

    3. C.

      AOM are addressing the core problems and are likely to succeed.

    4. D.

      AOM are addressing the problem superficially.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: The passage contrasts superficial measures (AOM) with core problems (poverty). The correct summary must capture this contrast without introducing outside facts.

    Exam route: AOM "sidesteps addressing the core problems", meaning it only addresses the issue superficially. Option D captures this perfectly.

    Learning route:

    1. Identify the core argument: The author notes that AOM (like displaying calorie information) are suggested by some, but explicitly states that these measures "sidestep addressing the core problems" (which are poverty and income inequality).
    2. Evaluate Option A: Claims AOM "addresses the core problems". This directly contradicts the word "sidestep". Incorrect.
    3. Evaluate Option B: Claims "obesity causes poverty". This causal link is never mentioned in the passage. It relies on outside assumptions. Incorrect.
    4. Evaluate Option C: Claims AOM are "likely to succeed". The passage is critical of AOM for missing the root cause; it does not predict success. Incorrect.
    5. Evaluate Option D: Claims AOM are addressing the problem "superficially". This is a perfect paraphrase of "sidestep addressing the core problems". If you ignore the root cause, you are only treating the surface. Correct.
    6. Conclusion: Option D is the only valid summary.
    Question 36 · Spatial Aptitude · 2021_Set1 MCQ
    A polygon is convex if, for every pair of points, P and Q belonging to the polygon, the line segment PQ lies completely inside or on the polygon.

    Which one of the following is NOT a convex polygon?
    1. A.
    2. B.
    3. C.
    4. D.
    Question 37 · Spatial Aptitude · 2021_Set1 MCQ

    A circular sheet of paper is folded along the lines in the directions shown. The paper, after being punched in the final folded state as shown and unfolded in the reverse order of folding, will look like _______.
    1. A.
    2. B.
    3. C.
    4. D.
    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a paper folding and punching problem. We must reverse the folding steps to determine the location and orientation of the punched holes on the unfolded sheet.

    Step 1: Analyze the final folded state and the punch.

    The final state is a quarter-circle sector (top-right quadrant of the original circle, if we assume standard folding).

    The punch consists of:

    • A small circular hole near the center (the corner of the sector).
    • A rectangular notch on the curved edge.
    • A rectangular notch on the straight vertical edge.
    • A rectangular notch on the straight horizontal edge.

    Actually, looking at the SVG for the final state:

    • It's a quarter circle.
    • Punches:
    1. A small rectangle on the vertical radius.
    2. A small rectangle on the horizontal radius.
    3. A larger rectangle-like shape on the arc? No, it looks like a hole inside.

    Let's look at the options to infer the punch pattern.

    The options show:

    • A central circular hole.
    • Four rectangular holes arranged symmetrically.

    Let's trace the folds backwards.

    Fold 1: Vertical fold (Left over Right? Or Right over Left?). The arrow shows the left side folding to the right. So we have a semi-circle (Right half).

    Fold 2: Horizontal fold (Bottom over Top? Or Top over Bottom?). The arrow shows the bottom folding up. So we have a quarter-circle (Top-Right quadrant).

    The punch is made in this Top-Right quadrant.

    Unfold Step 1 (Reverse Horizontal Fold):

    Reflect the punch pattern across the horizontal axis (the bottom edge of the current quarter circle).

    • The Top-Right quadrant becomes the Right Half (Top-Right and Bottom-Right).
    • Any hole in the Top-Right will have a mirror image in the Bottom-Right.

    Unfold Step 2 (Reverse Vertical Fold):

    Reflect the entire Right Half pattern across the vertical axis (the left edge of the semi-circle).

    • The Right Half becomes the Full Circle.
    • Any hole in the Right Half will have a mirror image in the Left Half.

    Analysis of Holes:

    1. Central Hole: The punch near the corner (center of circle) reflects to itself or creates a cluster. In the options, there is a single central circular hole. This implies the punch was at the center or created a symmetric pattern that merges.
    2. Rectangular Holes:
    • In the final quadrant, there appear to be punches on the edges.
    • Option A shows 4 rectangular holes: Top, Bottom, Left, Right.
    • This symmetry corresponds to a single punch in the quadrant that gets reflected 3 times.

    Let's look at the specific shape in the final fold SVG:

    • There is a small rectangular cut on the vertical edge.
    • There is a small rectangular cut on the horizontal edge.
    • There is a cut on the arc?

    Comparing with Option A:

    • Option A has rectangles at 12, 6, 3, 9 o'clock positions.
    • If we punch a rectangle at the midpoint of the vertical radius in the folded state, unfolding horizontally creates a pair at 3 o'clock (if it was on the edge) or similar.

    Let's look at the "notch" shapes in the final fold.

    • One notch on the vertical straight edge.
    • One notch on the horizontal straight edge.
    • One notch on the curved edge?

    If we unfold a notch on the vertical edge of the Top-Right quadrant:

    • Reflect across Horizontal: It stays in the Right Half (Top-Right and Bottom-Right? No, the vertical edge is the axis of the first fold? No, the vertical edge is the center of the original circle? No.

    Let's re-evaluate the fold axes.

    1. Circle folded vertically. Axis is vertical diameter. Result: Semi-circle.
    2. Semi-circle folded horizontally. Axis is horizontal diameter. Result: Quarter-circle.

    The straight edges of the final quarter-circle are the radii along the axes.

    • Vertical straight edge: Part of the vertical diameter.
    • Horizontal straight edge: Part of the horizontal diameter.

    Punches in the final state:

    1. A punch on the vertical straight edge. When unfolded horizontally (Step 1), this punch is on the axis of reflection? No, the horizontal fold axis is the horizontal edge. The vertical edge is perpendicular to it. So the punch on the vertical edge reflects to a punch on the vertical edge in the lower quadrant. So we have two punches on the vertical radius (one up, one down).

    Then unfold vertically (Step 2). The vertical radius is the axis of reflection. Punches on the axis reflect to themselves? Or do they split? If it's a hole on the edge, it becomes a symmetric hole centered on the axis.

    1. A punch on the horizontal straight edge. When unfolded horizontally, this is on the axis. It becomes a symmetric hole centered on the horizontal axis.

    Option A shows:

    • Rectangles at Top and Bottom (on vertical axis).
    • Rectangles at Left and Right (on horizontal axis).

    This matches perfectly if there were punches on the straight edges of the folded quadrant.

    Answer: A

    Question 38 · Analytical Aptitude · 2021_Set1 MCQ
    _____ is to surgery as writer is to ________

    Which one of the following options maintains a similar logical relation in the above sentence?
    1. A.

      Plan, outline

    2. B.

      Hospital, library

    3. C.

      Doctor, book

    4. D.

      Medicine, grammar

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: This is a Worker-to-Product/Action analogy. The logical relationship is "A [Professional] performs/produces [Action/Product]".

    Exam route: A Writer produces a Book. Following the same directional relationship, a Doctor performs Surgery. Therefore, the missing pair is Doctor, book.

    Learning route:

    Step 1: Isolate the known contiguous pair: "writer" and the blank. We know a writer's primary output is a "book".

    Step 2: Formulate the Bridge Sentence: "A [Worker] produces/performs [Product/Action]".

    Step 3: Apply to the first part: "A [Worker] performs surgery". The professional who performs surgery is a "Doctor".

    Step 4: Verify directionality. Doctor Surgery (Worker Action). Writer Book (Worker Product). The logical relation is perfectly maintained.

    Question 39 · Analytical Aptitude · 2021_Set1 MCQ
    Given below are two statements 1 and 2, and two conclusions I and II.

    Statement 1: All bacteria are microorganisms.

    Statement 2: All pathogens are microorganisms.

    Conclusion I: Some pathogens are bacteria.

    Conclusion II: All pathogens are not bacteria.

    Based on the above statements and conclusions, which one of the following options is logically CORRECT?
    1. A.

      Only conclusion I is correct

    2. B.

      Only conclusion II is correct

    3. C.

      Either conclusion I or II is correct.

    4. D.

      Neither conclusion I nor II is correct.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: Two subsets of a larger set may or may not overlap; without explicit information, neither overlap nor disjointness can be definitively concluded.

    Exam route: Draw Venn diagram with Bacteria and Pathogens inside Microorganisms. They can be disjoint or overlapping. Since neither is a definite conclusion, select Option D.

    Learning route: Let Microorganisms be the universal set. Bacteria and Pathogens are both subsets. The premises do not specify the relationship between Bacteria and Pathogens. If they overlap, Conclusion I (Some pathogens are bacteria) is true, and Conclusion II (All pathogens are not bacteria / No pathogens are bacteria) is false. If they are disjoint, Conclusion I is false, and Conclusion II is true. Because we cannot determine which scenario is the actual case from the premises alone, neither conclusion is logically correct as a definite deduction. Option C is a trap for those who recognize they are contradictory, but in strict syllogism, we only accept conclusions that are definitively true in all valid diagrams.

    Wrong path: A student might see that I and II are contradictory and select Option C (Either I or II). This breaks because in strict syllogism, a conclusion must be definitely true based on the premises. Since we cannot deduce which one is true from the given statements, neither is a valid definite conclusion. Generalization: A conclusion must hold in every valid Venn diagram to be correct; do not fall for the "Either/Or" trap when neither is definitively provable. Verification: Both disjoint and overlapping diagrams satisfy the premises, proving neither conclusion is definite.

    Other GATE CS papers