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

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

    11 Qs

    17% of total marks

    Programming and Data Structures

    7 Qs

    11% of total marks

    Computer Organization and Architecture

    6 Qs

    9% of total marks

    Theory of Computation

    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

    Algorithms

    5 Qs

    8% of total marks

    Digital Logic

    4 Qs

    6% of total marks

    Compiler Design

    4 Qs

    6% of total marks

    Verbal Aptitude

    3 Qs

    5% of total marks

    Spatial Aptitude

    2 Qs

    3% of total marks

    Quantitative Aptitude

    2 Qs

    3% of total marks

    Analytical Aptitude

    1 Qs

    2% of total marks

    Free Solved Questions with Step-by-Step Solutions

    Authentic examination problems with detailed derivations and answer keys.

    Question 1
    2025 Slot Set1 PYQ
    Level 2: Moderate

    A fair six-faced dice, with the faces labelled ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, and ‘6’, is rolled thrice. What is the probability of rolling ‘6’ exactly once?

    Question 2
    2025 Slot Set1 PYQ
    Level 3: Exam Standard

    A shop has 4 distinct flavors of ice-cream. One can purchase any number of scoops of any flavor. <b>The order in which the scoops are purchased is inconsequential.</b> If one wants to purchase 3 scoops of ice-cream, in how many ways can one make that purchase?

    Question 3
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    is a function from to , is a function from to , and their composition defined as is a mapping from to .

    If and are onto (surjective) functions, which ONE of the following is TRUE about the function ?
    Question 4
    2025 Slot Set1 PYQ
    Level 3: Exam Standard

    Which of the following statement(s) is/are <b>TRUE</b> for any binary search tree (BST) having distinct integers?

    Question 5
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    #include <stdio.h>
    void foo(int *p, int x){
    *p=x;
    }
    int main(){
    int *z;
    int a = 20, b = 25;
    z = &a;
    foo(z,b);
    printf("%d",a);
    return 0;
    }

    The output of the given C program is __________. (Answer in integer)
    Question 6
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    The height of any rooted tree is defined as the maximum number of edges in the path from the root node to any leaf node.

    Suppose a Min-Heap stores 32 keys. The height of is _____________. (Answer in integer)
    Question 7
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives:

    (i) The processor saves the content of the program counter.
    (ii) The program counter is loaded with the start address of the ISR.
    (iii) The processor finishes the present instruction.

    Which ONE of the following is the CORRECT sequence of steps?
    Question 8
    2025 Slot Set1 PYQ
    Level 2: Moderate

    The number can be represented as 1010 in 4-bit 2’s complement representation. Which of the following is/are <b>CORRECT</b> 2’s complement representation(s) of ?

    Question 9
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    A partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown?

    RA (32 bit)RB (32 bit)Mux_AMux_BALURZ (32 bit)immediate value32 bitimmediate value32 bitSelect RA/immediateSelect RB/immediateALU control
    Question 10
    2025 Slot Set1 PYQ
    Consider the following context-free grammar , where , , and are the variables (non-terminals), and are the terminal symbols, is the start variable, and the rules of are described as:


    Which ONE of the languages is accepted by ?
    Question 11
    2025 Slot Set1 PYQ
    Level 3: Exam Standard

    A regular language is accepted by a non-deterministic finite automaton (NFA) with states. Which of the following statement(s) is/are <b>FALSE</b>?

    Question 12
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following two languages over the alphabet :



    Which ONE of the following statements is CORRECT?
    Question 13
    2025 Slot Set1 PYQ

    Consider a demand paging memory management system with 32-bit logical address, 20-bit physical address, and page size of 2048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?

    Question 14
    2025 Slot Set1 PYQ
    Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operation is performed. Assume that there will always be a context switch whenever a process requests for an I/O, and also whenever the process returns from an I/O. The number of times the process will enter the ready queue during its lifetime (not counting the time the process enters the ready queue when it is run initially) is _______. (Answer in integer)

    int main()
    {
    int x=0,i=0;
    scanf("%d",&x);
    for(i=0; i<20; i++)
    {
    x = x+20;
    printf("%d\n",x);
    }
    return 0;
    }
    Question 15
    2025 Slot Set1 PYQ
    A computer has two processors, and . Four processes with CPU bursts of 20, 16, 25, and 10 milliseconds, respectively, arrive at the same time and these are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities decided as follows:

    • uses priority of execution for the processes as, , i.e., and have highest and lowest priorities, respectively.
    • uses priority of execution for the processes as, , i.e., and have highest and lowest priorities, respectively.

    A process is scheduled to a processor , if the processor is free and no other process is waiting with higher priority. At any given point of time, a process can be allocated to any one of the free processors without violating the execution priority rules. Ignore the context switch time. What will be the average waiting time of the processes in milliseconds?
    Question 16
    2025 Slot Set1 PYQ
    A schedule of three database transactions , , and is shown. and denote read and write of data item by transaction , . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back?

    Question 17
    2025 Slot Set1 PYQ
    Consider the following tree with 5 nodes, in which a node can store at most 3 key values. The value 23 is now inserted in the tree. Which of the following options(s) is/are CORRECT?

    612191437910131517202122
    Question 18
    2025 Slot Set1 PYQ
    Consider two relations describing and in a sports league:

    • : are team-id and team-name, respectively
    • : , and denote player-id, player-name and the team-id of the player, respectively

    Which ONE of the following tuple relational calculus queries returns the name of the players who play for the team having as ‘’?
    Question 19
    2025 Slot Set1 PYQ
    Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.

    OSI Layers                      Functionalities
    (a) Network layer            (I) Packet routing
    (b) Transport layer          (II) Framing and error handling
    (c) Datalink layer            (III) Host to host communication
    Question 20
    2025 Slot Set1 PYQ

    Consider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2, and P3, in order. Which of the following option(s) is/are <b>TRUE</b> with respect to TCP header flags that are set in the packets?

    Question 21
    2025 Slot Set1 PYQ
    A packet with the destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?

    Subnet AddressSubnet Mask (in CIDR notation)Interface145.36.0.0/16E1145.36.128.0/17E2145.36.64.0/18E3145.36.255.0/24E4Default--E5
    Question 22
    2025 Slot Set1 PYQ

    Let be any undirected graph with positive edge weights, and be a minimum spanning tree of . For any two vertices, and , let and be the shortest distances between and in and , respectively. Which ONE of the options is CORRECT for all possible , , and ?

    Question 23
    2025 Slot Set1 PYQ
    Consider the following recurrence relation:



    Which ONE of the following options is CORRECT?
    Question 24
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    The pseudocode of a function fun() is given below:

    fun(int A[0,…,n-1]){
    for i=0 to n-2
    for j=0 to n-i-2
    if (A[j]>A[j+1])
    then swap A[j] and A[j+1]

    }

    Let be an array storing 30 distinct integers in descending order. The number of swap operations that will be performed, if the function fun() is called with as argument, is __________. (Answer in integer)
    Question 25
    2025 Slot Set1 PYQ
    Level 3: Exam Standard

    Let be a 3-variable Boolean function that produces output as ‘1’ when at least two of the input variables are ‘1’. Which of the following statement(s) is/are <b>CORRECT</b>, where are Boolean variables?

    Question 26
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the following four variable Boolean function in sum-of-product form


    where the value of the function is computed by considering as a 4-bit binary number, where denotes the most significant bit and denotes the least significant bit. Note that there are no don’t care terms. Which ONE of the following options is the CORRECT minimized Boolean expression for ?
    Question 27
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider a finite state machine (FSM) with one input and one output , represented by the given state transition table. The minimum number of states required to realize this FSM is ________. (Answer in integer)

    Present stateNext stateOutput fX = 0X = 1X = 0X = 1AFB00BDC00CFE00DGA10EDC00FFB11GGH01HGA10
    Question 28
    2025 Slot Set1 PYQ
    Level 3: Exam Standard

    Which ONE of the following statements is FALSE regarding the symbol table?

    Question 29
    2025 Slot Set1 PYQ

    Which ONE of the following techniques used in compiler code optimization uses live variable analysis?

    Question 30
    2025 Slot Set1 PYQ

    Which of the following statement(s) is/are <b>TRUE</b> while computing First and Follow during top down parsing by a compiler?

    Question 31
    2025 Slot Set1 PYQ
    Level 3: Exam Standard

    Ravi had ______ younger brother who taught at ______ university. He was widely regarded as ______ honorable man.

    Select the option with the correct sequence of articles to fill in the blanks.

    Question 32
    2025 Slot Set1 PYQ
    Level 3: Exam Standard

    The CEO’s decision to downsize the workforce was considered myopic because it sacrificed long-term stability to accommodate short-term gains.

    Select the most appropriate option that can replace the word “myopic” without changing the meaning of the sentence.

    Question 33
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    “I put the brown paper in my pocket along with the chalks, and possibly other things. I suppose every one must have reflected how primeval and how poetical are the things that one carries in one’s pocket: the pocket-knife, for instance the type of all human tools, the infant of the sword. Once I planned to write a book of poems entirely about the things in my pocket. But I found it would be too long: and the age of the great epics is past.”

    (From G.K. Chesterton’s “A Piece of Chalk”)

    Based only on the information provided in the above passage, which one of the following statements is true?
    Question 34
    2025 Slot Set1 PYQ
    Level 4: Challenger
    According to the map shown in the figure, which one of the following statements is correct?

    Note: The figure shown is representative.

    LibraryPhysics LabCanteenHospitalHostelsClassroomsChemistryLab1st Main Road5th Cross RoadNSWE
    Question 35
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    A square paper, shown in figure (I), is folded along the dotted lines as shown in the figures (II) and (III). Then a few cuts are made as shown in figure (IV). Which one of the following patterns will be obtained when the paper is unfolded?

    Note: The figures shown are representative.

    (I)(II)(III)(IV)
    Question 36
    2025 Slot Set1 PYQ
    Level 3: Exam Standard

    The average marks obtained by a class in an examination were calculated as 30.8. However, while checking the marks entered, the teacher found that the marks of one student were entered incorrectly as 24 instead of 42. After correcting the marks, the average becomes 31.4. How many students does the class have?

    Question 37
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    In the diagram, the lines QR and ST are parallel to each other. The shortest distance between these two lines is half the shortest distance between the point P and line QR. What is the ratio of the area of the triangle PST to the area of the trapezium SQRT?

    Note: The figure shown is representative.

    PQRST
    Question 38
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    Consider the relationships among P, Q, R, S, and T:

    • P is the brother of Q.
    • S is the daughter of Q.
    • T is the sister of S.
    • R is the mother of Q.

    The following statements are made based on the relationships given above.

    (1) R is the grandmother of S.

    (2) P is the uncle of S and T.

    (3) R has only one son.

    (4) Q has only one daughter.

    Which one of the following options is correct?

    Unlock All 65 Questions in Real Examination Mode

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

    More GATE CS Previous Year Papers

    Free preview ends here

    Login to view the complete paper and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

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

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

    Free sample questions from GATE CS 2025_Set1 Question Paper

    Question 1 · Engineering Mathematics · 2025_Set1 MCQ

    A fair six-faced dice, with the faces labelled ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, and ‘6’, is rolled thrice. What is the probability of rolling ‘6’ exactly once?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a Binomial Probability problem, recognizable because we have a fixed number of independent trials (rolling the die 3 times) and we are looking for a specific number of successes (rolling a '6').

    Step 1: Identify the parameters of the Bernoulli trial.

    • Total trials () = 3.
    • Success event: Rolling a '6'.
    • Probability of success () = .
    • Probability of failure () = .
    • Desired number of successes () = 1.

    Step 2: Apply the Binomial Probability Formula.

    The probability of getting exactly successes in trials is:

    Step 3: Substitute the values and calculate.

    Answer:

    Question 2 · Engineering Mathematics · 2025_Set1 MCQ

    A shop has 4 distinct flavors of ice-cream. One can purchase any number of scoops of any flavor. <b>The order in which the scoops are purchased is inconsequential.</b> If one wants to purchase 3 scoops of ice-cream, in how many ways can one make that purchase?

    1. A.

      4

    2. B.

      20

    3. C.

      24

    4. D.

      48

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a Stars and Bars problem, recognizable by the distribution of identical items (scoops of the same flavor are indistinguishable) into distinct categories (the 4 distinct flavors), with the phrase "order is inconsequential" confirming we are choosing a multiset.

    Step 1: Identify the parameters for the Stars and Bars formula.

    Number of identical items to distribute: (scoops).

    Number of distinct bins: (flavors).

    Step 2: Apply the standard Stars and Bars formula for non-negative integer solutions.

    The number of ways is given by .

    Step 3: Substitute the values and calculate.

    .

    .

    Answer: B

    Question 3 · Engineering Mathematics · 2025_Set1 MCQ
    is a function from to , is a function from to , and their composition defined as is a mapping from to .

    If and are onto (surjective) functions, which ONE of the following is TRUE about the function ?
    1. A.

      must be an onto (surjective) function.

    2. B.

      must be a one-to-one (injective) function.

    3. C.

      must be a bijective function, that is, both one-to-one and onto.

    4. D.

      is not required to be a one-to-one or onto function.

    Correct Answer:

    D

    Step-by-Step Solution

    Key idea: This is a function composition property question, recognizable by the given surjectivity of and .

    Step 1: Analyze the given conditions. We know is onto, and is onto.

    Step 2: Test if must be onto. Consider , , . Let and . Here, is onto and is onto, but is not onto (2 is not in the range of ). Thus, is not required to be onto.

    Step 3: Test if must be one-to-one. Consider , , . Let and . Here, is onto and is onto, but is not one-to-one.

    Step 4: Since is neither required to be onto nor one-to-one, Option D is the only necessarily true statement.

    Answer: Option D.

    Question 4 · Programming and Data Structures · 2025_Set1 MSQ

    Which of the following statement(s) is/are <b>TRUE</b> for any binary search tree (BST) having distinct integers?

    1. A.

      The maximum length of a path from the root node to any other node is .

    2. B.

      An inorder traversal will always produce a sorted sequence of elements.

    3. C.

      Finding an element takes time in the worst case.

    4. D.

      Every BST is also a Min-Heap.

    Correct Answer:

    ["A","B"]

    Step-by-Step Solution

    Insight: A BST's inorder traversal is always sorted, and its maximum possible depth is (achieved by a completely skewed tree).

    Exam route: Evaluate each option. A is true because a tree with nodes has at most edges in any path. B is true by the definition of BST. C is false because worst-case search is for a skewed tree. D is false because BST ordering (left < parent < right) does not imply heap ordering (parent children).

    Learning route:

    1. Option A: A path in a tree with nodes can have at most nodes, which means edges. A right-skewed BST achieves exactly this maximum length. Thus, the maximum length is bounded by and can be .
    2. Option B: The BST property (left subtree < node < right subtree) guarantees that an inorder traversal (Left, Node, Right) visits elements in strictly ascending order.
    3. Option C: Search time is , where is the height. In the worst case (skewed tree), , making the time complexity , not .
    4. Option D: A Min-Heap requires every parent to be its children. A BST only requires left child < parent < right child. For example, a BST with root 10, left child 5, and right child 15 violates the Min-Heap property because 10 is not 5.

    Verification: For , elements inserted as gives a right-skewed tree. Path length from root (1) to leaf (3) is 2 edges (). Inorder is (sorted). Search for 3 takes 3 steps (). Root 1 is not left child (none), but if we had root 2, left 1, right 3, 2 is not 1, so not a min-heap.

    Question 5 · Programming and Data Structures · 2025_Set1 NAT
    #include <stdio.h>
    void foo(int *p, int x){
    *p=x;
    }
    int main(){
    int *z;
    int a = 20, b = 25;
    z = &a;
    foo(z,b);
    printf("%d",a);
    return 0;
    }

    The output of the given C program is __________. (Answer in integer)
    Correct Answer:

    25.00

    Step-by-Step Solution

    Insight: This is a pointer dereferencing and pass-by-reference simulation question, recognizable by a pointer being passed to a function that modifies the pointed-to value.

    Exam route: z holds &a. foo(z, b) passes &a and 25. Inside foo, *p = x modifies a to 25. printf prints 25.

    Learning route:

    1. a is initialized to 20, b to 25.
    2. z = &a makes z point to a.
    3. foo(z, b) is called. The arguments passed are the address of a and the value 25.
    4. Inside foo, p receives &a and x receives 25.
    5. *p = x dereferences p (accessing a) and assigns it the value of x (25). Thus, a becomes 25.
    6. Back in main, printf("%d", a) prints the updated value of a, which is 25.
    Question 6 · Programming and Data Structures · 2025_Set1 NAT
    The height of any rooted tree is defined as the maximum number of edges in the path from the root node to any leaf node.

    Suppose a Min-Heap stores 32 keys. The height of is _____________. (Answer in integer)
    Correct Answer:

    5.00

    Step-by-Step Solution

    Insight: This is a direct application of the heap height formula. The height of a complete binary tree with nodes is simply .

    Exam route: The problem states the min-heap stores 32 keys. Using the height formula , we substitute . Since , . The floor of 5 is 5. The height is 5.

    Learning route:

    1. Understand the definition: The height of a rooted tree is the maximum number of edges on any path from the root to a leaf.
    2. Recall the structure of a heap: A heap is a complete binary tree. This means all levels except possibly the last are completely full, and the last level is filled from left to right.
    3. Apply the formula: For a complete binary tree with nodes, the height is given by .
    4. Calculate: Here, . We know that , so .
    5. Conclusion: The height of the min-heap is 5.
    Question 7 · Computer Organization and Architecture · 2025_Set1 MCQ
    Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives:

    (i) The processor saves the content of the program counter.
    (ii) The program counter is loaded with the start address of the ISR.
    (iii) The processor finishes the present instruction.

    Which ONE of the following is the CORRECT sequence of steps?
    1. A.

      (iii), (i), (ii)

    2. B.

      (i), (iii), (ii)

    3. C.

      (i), (ii), (iii)

    4. D.

      (iii), (ii), (i)

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is an interrupt handling sequence question, testing the exact order of hardware and software actions when an asynchronous interrupt occurs.

    Step 1: The processor cannot abort an instruction mid-execution without corrupting the system state. Therefore, it must first finish the currently executing instruction. This is step (iii).

    Step 2: Before jumping to the ISR, the processor must save the return address so it can resume the interrupted program later. This is done by saving the content of the Program Counter (PC). This is step (i).

    Step 3: Finally, the processor loads the PC with the starting address of the ISR to begin executing the interrupt service routine. This is step (ii).

    Step 4: The correct sequence is (iii), (i), (ii).

    Answer: A

    Question 8 · Computer Organization and Architecture · 2025_Set1 MSQ

    The number can be represented as 1010 in 4-bit 2’s complement representation. Which of the following is/are <b>CORRECT</b> 2’s complement representation(s) of ?

    1. A.

      1000 1010 in 8-bits

    2. B.

      1111 1010 in 8-bits

    3. C.

      1000 0000 0000 1010 in 16-bits

    4. D.

      1111 1111 1111 1010 in 16-bits

    Correct Answer:

    ["B","D"]

    Step-by-Step Solution

    Key idea: This is a sign extension question in 2's complement, recognisable because a negative number is given in 4 bits and you must pick its correct wider representations.

    Step 1: The sign extension rule for 2's complement says: replicate the MSB (sign bit) into all new higher-order bit positions.

    Step 2: The 4-bit representation of is . The MSB is .

    Step 3: Extend to 8 bits by prepending four s: . This matches option B.

    Step 4: Extend to 16 bits by prepending twelve s: . This matches option D.

    Step 5: Options A () and C () pad with s instead of s. That is the sign-magnitude rule, not 2's complement. For example, in 8-bit 2's complement equals , not .

    Answer: Options B and D.

    Question 9 · Computer Organization and Architecture · 2025_Set1 MSQ
    A partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown?

    RA (32 bit)RB (32 bit)Mux_AMux_BALURZ (32 bit)immediate value32 bitimmediate value32 bitSelect RA/immediateSelect RB/immediateALU control
    1. A.

      The data path can implement arithmetic operations involving two registers.

    2. B.

      The data path can implement arithmetic operations involving one register and one immediate value.

    3. C.

      The data path can implement arithmetic operations involving two immediate values.

    4. D.

      The data path can only implement arithmetic operations involving one register and one immediate value.

    Correct Answer:

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

    Step-by-Step Solution

    Key idea: This is a processor datapath analysis question, recognisable by the diagram showing registers, multiplexers, and an ALU, asking what operations are supported. Why this method applies: We must trace the possible data flows from the inputs (registers and immediate values) through the multiplexers to the ALU inputs. Step 1: Analyze the inputs to Mux_A. The diagram shows Mux_A has two inputs: the register RA and a 32-bit immediate value. Therefore, the first operand to the ALU can be either a register value or an immediate value. Step 2: Analyze the inputs to Mux_B. The diagram shows Mux_B has two inputs: the register RB and a 32-bit immediate value. Therefore, the second operand to the ALU can also be either a register value or an immediate value. Step 3: Evaluate the combinations. Since Mux_A and Mux_B operate independently, we can select any combination of their inputs: - Case 1: Select RA for Mux_A and RB for Mux_B. This implements arithmetic operations involving two registers. (Option A is correct). - Case 2: Select RA for Mux_A and immediate for Mux_B (or vice versa). This implements arithmetic operations involving one register and one immediate value. (Option B is correct). - Case 3: Select immediate for Mux_A and immediate for Mux_B. This implements arithmetic operations involving two immediate values. (Option C is correct). Step 4: Evaluate Option D. Option D states the datapath can only implement operations with one register and one immediate. This is false, as we just proved it can do Reg+Reg and Imm+Imm as well. Answer: Options A, B, and C.
    Question 10 · Theory of Computation · 2025_Set1 MCQ
    Consider the following context-free grammar , where , , and are the variables (non-terminals), and are the terminal symbols, is the start variable, and the rules of are described as:


    Which ONE of the languages is accepted by ?
    1. A.

    2. B.

    3. C.

    4. D.

    Question 11 · Theory of Computation · 2025_Set1 MSQ

    A regular language is accepted by a non-deterministic finite automaton (NFA) with states. Which of the following statement(s) is/are <b>FALSE</b>?

    1. A.

      may have an accepting NFA with states.

    2. B.

      may have an accepting DFA with states.

    3. C.

      There exists a DFA with states that accepts .

    4. D.

      Every DFA that accepts has states.

    Correct Answer:

    ["D"]

    Step-by-Step Solution

    Key idea: This is a state complexity bounds question, recognizable by the comparison of NFA and DFA state counts for a regular language .

    Step 1: Analyze the premise. We are given that SOME NFA with states accepts . This NFA is not stated to be minimal.

    Step 2: Evaluate Option 1. Since the given NFA might have redundant states, there may exist a smaller, minimal NFA for with states. This statement is TRUE.

    Step 3: Evaluate Option 2. Similarly, the minimal DFA for might have fewer states than this specific, possibly bloated, -state NFA. For example, if , an NFA could be drawn with 5 redundant states (), but the minimal DFA has 1 state (). This statement is TRUE.

    Step 4: Evaluate Option 3. The subset construction algorithm guarantees that any NFA with states can be converted into an equivalent DFA with at most states. This statement is TRUE.

    Step 5: Evaluate Option 4. This claims EVERY DFA for has states. This directly contradicts Option 3, which guarantees the existence of at least one DFA with states. Therefore, this statement is definitively FALSE.

    Answer: Every DFA that accepts has states.

    Question 12 · Theory of Computation · 2025_Set1 MCQ
    Consider the following two languages over the alphabet :



    Which ONE of the following statements is CORRECT?
    1. A.

      Both and are regular languages.

    2. B.

      is a regular language but is not a regular language.

    3. C.

      is not a regular language but is a regular language.

    4. D.

      Neither nor is a regular language.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: We must determine the regularity of two languages defined by string patterns. The key is to simplify the pattern definitions by analyzing the constraints on and .

    Step 1: Analyze .

    is any non-empty string over . The shortest possible is a single character ('a' or 'b').

    is any non-empty string over .

    Therefore, any string in must have a length of at least , and it must start and end with the same single character.

    Can any string of length starting and ending with the same character be formed? Yes. Let the first character be , the middle part be , and the last character be .

    Thus, is exactly the set of strings of length that start and end with 'a', OR start and end with 'b'.

    Regular Expression for : .

    Since it can be described by a regular expression, is a Regular Language.

    Step 2: Analyze .

    Here, is restricted to one or more 'a's. So for some .

    The string format is .

    This requires the number of 'a's at the beginning to exactly match the number of 'a's at the end, with an arbitrary string in the middle.

    This is a classic counting dependency (similar to ), which requires unbounded memory. A finite automaton cannot track the arbitrary count .

    Therefore, is NOT a Regular Language.

    Conclusion: is regular, but is not regular.

    Answer: Option B.

    Question 13 · Operating System · 2025_Set1 MCQ

    Consider a demand paging memory management system with 32-bit logical address, 20-bit physical address, and page size of 2048 bytes. Assuming that the memory is byte addressable, what is the maximum number of entries in the page table?

    1. A.

    2. B.

    3. C.

    4. D.

    Question 14 · Operating System · 2025_Set1 NAT
    Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operation is performed. Assume that there will always be a context switch whenever a process requests for an I/O, and also whenever the process returns from an I/O. The number of times the process will enter the ready queue during its lifetime (not counting the time the process enters the ready queue when it is run initially) is _______. (Answer in integer)

    int main()
    {
    int x=0,i=0;
    scanf("%d",&x);
    for(i=0; i<20; i++)
    {
    x = x+20;
    printf("%d\n",x);
    }
    return 0;
    }
    Question 15 · Operating System · 2025_Set1 MCQ
    A computer has two processors, and . Four processes with CPU bursts of 20, 16, 25, and 10 milliseconds, respectively, arrive at the same time and these are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities decided as follows:

    • uses priority of execution for the processes as, , i.e., and have highest and lowest priorities, respectively.
    • uses priority of execution for the processes as, , i.e., and have highest and lowest priorities, respectively.

    A process is scheduled to a processor , if the processor is free and no other process is waiting with higher priority. At any given point of time, a process can be allocated to any one of the free processors without violating the execution priority rules. Ignore the context switch time. What will be the average waiting time of the processes in milliseconds?
    1. A.

      9

    2. B.

      8.75

    3. C.

      6.5

    4. D.

      7.5

    Question 16 · Databases · 2025_Set1 MCQ
    A schedule of three database transactions , , and is shown. and denote read and write of data item by transaction , . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back?

    1. A.

      Only

    2. B.

      Only

    3. C.

      Both and

    4. D.

      Neither nor

    Question 17 · Databases · 2025_Set1 MSQ
    Consider the following tree with 5 nodes, in which a node can store at most 3 key values. The value 23 is now inserted in the tree. Which of the following options(s) is/are CORRECT?

    612191437910131517202122
    1. A.

      None of the nodes will split.

    2. B.

      At least one node will split and redistribute.

    3. C.

      The total number of nodes will remain same.

    4. D.

      The height of the tree will increase.

    Question 18 · Databases · 2025_Set1 MCQ
    Consider two relations describing and in a sports league:

    • : are team-id and team-name, respectively
    • : , and denote player-id, player-name and the team-id of the player, respectively

    Which ONE of the following tuple relational calculus queries returns the name of the players who play for the team having as ‘’?
    1. A.

    2. B.

    3. C.

    4. D.

    Question 19 · Computer Networks · 2025_Set1 MCQ
    Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.

    OSI Layers                      Functionalities
    (a) Network layer            (I) Packet routing
    (b) Transport layer          (II) Framing and error handling
    (c) Datalink layer            (III) Host to host communication
    1. A.

      (a)-(I), (b)-(II), (c)-(III)

    2. B.

      (a)-(I), (b)-(III), (c)-(II)

    3. C.

      (a)-(II), (b)-(I), (c)-(III)

    4. D.

      (a)-(III), (b)-(II), (c)-(I)

    Question 20 · Computer Networks · 2025_Set1 MSQ

    Consider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2, and P3, in order. Which of the following option(s) is/are <b>TRUE</b> with respect to TCP header flags that are set in the packets?

    1. A.

      P3: SYN = 1, ACK = 1

    2. B.

      P2: SYN = 1, ACK = 1

    3. C.

      P2: SYN = 0, ACK = 1

    4. D.

      P1: SYN = 1

    Question 21 · Computer Networks · 2025_Set1 MCQ
    A packet with the destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?

    Subnet AddressSubnet Mask (in CIDR notation)Interface145.36.0.0/16E1145.36.128.0/17E2145.36.64.0/18E3145.36.255.0/24E4Default--E5
    1. A.

      E3

    2. B.

      E1

    3. C.

      E2

    4. D.

      E5

    Question 22 · Algorithms · 2025_Set1 MCQ

    Let be any undirected graph with positive edge weights, and be a minimum spanning tree of . For any two vertices, and , let and be the shortest distances between and in and , respectively. Which ONE of the options is CORRECT for all possible , , and ?

    1. A.

    2. B.

    3. C.

    4. D.

    Question 23 · Algorithms · 2025_Set1 MCQ
    Consider the following recurrence relation:



    Which ONE of the following options is CORRECT?
    1. A.

    2. B.

    3. C.

    4. D.

    Question 24 · Algorithms · 2025_Set1 NAT
    The pseudocode of a function fun() is given below:

    fun(int A[0,…,n-1]){
    for i=0 to n-2
    for j=0 to n-i-2
    if (A[j]>A[j+1])
    then swap A[j] and A[j+1]

    }

    Let be an array storing 30 distinct integers in descending order. The number of swap operations that will be performed, if the function fun() is called with as argument, is __________. (Answer in integer)
    Correct Answer:

    435

    Step-by-Step Solution

    Key idea: This is a sorting algorithm operation counting question, recognisable because it provides pseudocode and asks for the number of swap operations. The added layer is identifying the algorithm and its behavior on a specific input (reverse sorted).

    Step 1: Analyze the pseudocode. The outer loop runs for from to . The inner loop runs for from to . Inside, it swaps and if .

    Step 2: Recognize this as the standard Bubble Sort algorithm.

    Step 3: The input array has distinct integers in descending order. This is the worst-case input for Bubble Sort.

    Step 4: In the worst case, every comparison evaluates to true, so a swap is performed every time.

    Step 5: Calculate the total number of comparisons (and thus swaps).

    For , goes from to (which is iterations).

    For , goes from to (which is iterations).

    ...

    For , goes from to (which is iteration).

    Step 6: Total swaps = .

    Step 7: Substitute : Total swaps = .

    Answer: 435

    Question 25 · Digital Logic · 2025_Set1 MSQ

    Let be a 3-variable Boolean function that produces output as ‘1’ when at least two of the input variables are ‘1’. Which of the following statement(s) is/are <b>CORRECT</b>, where are Boolean variables?

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    ["B","D"]

    Step-by-Step Solution

    Insight: is the 3-variable majority function, which is symmetric and idempotent-friendly under self-composition.

    Exam route: Use the identities and to test the options algebraically or with a strategic counterexample.

    Learning route:

    The function outputs 1 if at least two inputs are 1. This is the majority function: .

    Note the absorption-like property: .

    Option A: Test with .

    LHS: .

    RHS: .

    , so A is FALSE.

    Option B: Let . We want to show .

    .

    Substitute :

    .

    Thus . TRUE.

    Option C: and . RHS .

    Test . .

    LHS . RHS . FALSE.

    Option D: . RHS .

    Since is symmetric, .

    Using the property from B with variables : .

    Thus RHS . TRUE.

    Correct options: B, D.

    Question 26 · Digital Logic · 2025_Set1 MCQ
    Consider the following four variable Boolean function in sum-of-product form


    where the value of the function is computed by considering as a 4-bit binary number, where denotes the most significant bit and denotes the least significant bit. Note that there are no don’t care terms. Which ONE of the following options is the CORRECT minimized Boolean expression for ?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Plot the 7 minterms on a 4-variable K-map; the largest power-of-two rectangles reveal the essential prime implicants.

    Exam route: Identify the three essential PIs: , , and .

    Learning route:

    Minterms in binary (): 0000, 0010, 0100, 1000, 1010, 1011, 1100.

    K-map groups:

    • Quad : .
    • Quad : .
    • Pair : .

    Check essentiality:

    • is only covered by .
    • is only covered by .
    • is only covered by .

    All three PIs are essential and cover all minterms.

    Minimal SOP: .

    Matches Option A.

    Question 27 · Digital Logic · 2025_Set1 NAT
    Consider a finite state machine (FSM) with one input and one output , represented by the given state transition table. The minimum number of states required to realize this FSM is ________. (Answer in integer)

    Present stateNext stateOutput fX = 0X = 1X = 0X = 1AFB00BDC00CFE00DGA10EDC00FFB11GGH01HGA10
    Correct Answer:

    5.00

    Step-by-Step Solution

    Insight: To find the minimum number of states, we look for equivalent states using row matching and partition refinement. States with identical next-states and outputs can be merged.

    Exam route: Scan the table for identical rows. Merge them. Repeat until no more identical rows exist. Count the remaining unique states.

    Learning route:

    Step 1: Compare rows for exact matches in Next State and Output columns.

    • Row B: Next states (D, C), Outputs (0, 0).
    • Row E: Next states (D, C), Outputs (0, 0).

    Rows B and E are identical. Merge E into B.

    • Row D: Next states (G, A), Outputs (1, 0).
    • Row H: Next states (G, A), Outputs (1, 0).

    Rows D and H are identical. Merge H into D.

    Step 2: Update the table with the merged states (replace E with B, and H with D).

    • Row A: F, B | 0, 0
    • Row B: D, C | 0, 0
    • Row C: F, E F, B | 0, 0
    • Row D: G, A | 1, 0
    • Row F: F, B | 1, 1
    • Row G: G, H G, D | 0, 1

    Step 3: Scan the updated table for new identical rows.

    • Row A: F, B | 0, 0
    • Row C: F, B | 0, 0

    Rows A and C are now identical. Merge C into A.

    Step 4: Update the table again (replace C with A).

    The remaining unique states are A, B, D, F, G.

    Let's verify no more merges are possible:

    • A: F, B | 0, 0
    • B: D, A | 0, 0 (since C became A)
    • D: G, A | 1, 0
    • F: F, B | 1, 1
    • G: G, D | 0, 1

    All 5 remaining states have distinct output signatures or distinct next-state transitions.

    Step 5: The minimum number of states required is 5.

    Question 28 · Compiler Design · 2025_Set1 MCQ

    Which ONE of the following statements is FALSE regarding the symbol table?

    1. A.

      Symbol table is responsible for keeping track of the scope of variables.

    2. B.

      Symbol table can be implemented using a binary search tree.

    3. C.

      Symbol table is not required after the parsing phase.

    4. D.

      Symbol table is created during the lexical analysis phase.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Understand the lifecycle and usage of the symbol table across all compiler phases.

    Step 1: Analyze Option A. The symbol table stores information about identifiers, including their scope, type, and memory location. This is TRUE.

    Step 2: Analyze Option B. The symbol table can be implemented using various data structures like hash tables, binary search trees, or linked lists, depending on the scope structure. This is TRUE.

    Step 3: Analyze Option C. The symbol table is heavily used after the parsing phase. Semantic analysis uses it for type checking, intermediate code generation uses it for address calculation, and the back-end uses it for final memory allocation. Thus, saying it is "not required after the parsing phase" is FALSE.

    Step 4: Analyze Option D. The lexical analyzer recognizes identifiers and inserts them into the symbol table. Thus, it is created/populated during the lexical analysis phase. This is TRUE.

    Answer: C

    Question 29 · Compiler Design · 2025_Set1 MCQ

    Which ONE of the following techniques used in compiler code optimization uses live variable analysis?

    1. A.

      Run-time function call management

    2. B.

      Register assignment to variables

    3. C.

      Strength reduction

    4. D.

      Constant folding

    Question 30 · Compiler Design · 2025_Set1 MSQ

    Which of the following statement(s) is/are <b>TRUE</b> while computing First and Follow during top down parsing by a compiler?

    1. A.

      For a production , will be added to .

    2. B.

      If there is any input right end marker, it will be added to , where is the start symbol.

    3. C.

      For a production , will be added to .

    4. D.

      If there is any input right end marker, it will be added to , where is the start symbol.

    Question 31 · Verbal Aptitude · 2025_Set1 MCQ

    Ravi had ______ younger brother who taught at ______ university. He was widely regarded as ______ honorable man.

    Select the option with the correct sequence of articles to fill in the blanks.

    1. A.

      a; a; an

    2. B.

      the; an; a

    3. C.

      a; an; a

    4. D.

      an; an; a

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Articles depend on the specificity of the noun and its phonetic sound, not just its spelling.

    Exam route: The first mention of a singular countable noun ('younger brother') takes 'a'. 'University' starts with a consonant sound /j/, so it takes 'a'. 'Honorable' starts with a silent 'h' producing a vowel sound /ɒ/, so it takes 'an'. The sequence is a, a, an.

    Learning route:

    Step 1: Analyze the first blank. 'Younger brother' is introduced for the first time and is singular/countable, requiring the indefinite article 'a'.

    Step 2: Analyze the second blank. 'University' begins with the letter 'U', but phonetically it starts with the consonant sound /j/ (like 'you'). Therefore, it takes 'a', not 'an'.

    Step 3: Analyze the third blank. 'Honorable' begins with 'H', but the 'H' is silent. The word starts with the vowel sound /ɒ/. Thus, it requires 'an'.

    Combining these gives 'a; a; an'.

    Common trap: Students often look at the first letter rather than the sound, leading them to incorrectly choose 'an university' or 'a honorable'.

    Verification: Substituting 'a; a; an' into the sentence reads perfectly and follows all phonetic and grammatical rules for articles.

    Question 32 · Verbal Aptitude · 2025_Set1 MCQ

    The CEO’s decision to downsize the workforce was considered myopic because it sacrificed long-term stability to accommodate short-term gains.

    Select the most appropriate option that can replace the word “myopic” without changing the meaning of the sentence.

    1. A.

      visionary

    2. B.

      shortsighted

    3. C.

      progressive

    4. D.

      innovative

    Correct Answer:

    B

    Step-by-Step Solution

    Insight: The word "because" provides the exact definition of the target word "myopic" within the sentence itself.

    Exam route: The sentence states the decision "sacrificed long-term stability to accommodate short-term gains." This is the definition of lacking foresight. "Shortsighted" is the direct synonym for this concept. "Visionary", "progressive", and "innovative" are positive traits, contradicting the negative context.

    Learning route:

    Step 1: Identify the logical clue. The word "because" introduces the explanation for why the decision was considered "myopic".

    Step 2: Analyze the explanation. The explanation is "sacrificed long-term stability to accommodate short-term gains." This describes a focus on the immediate future while ignoring distant consequences.

    Step 3: Predict the meaning. We need a word that means "lacking long-term vision" or "focused only on the immediate".

    Step 4: Evaluate options. "Visionary" means thinking about the future with imagination (the opposite). "Shortsighted" means lacking imagination or foresight, matching our prediction perfectly. "Progressive" and "innovative" are positive descriptors, contradicting the negative consequence described.

    Question 33 · Verbal Aptitude · 2025_Set1 MCQ
    “I put the brown paper in my pocket along with the chalks, and possibly other things. I suppose every one must have reflected how primeval and how poetical are the things that one carries in one’s pocket: the pocket-knife, for instance the type of all human tools, the infant of the sword. Once I planned to write a book of poems entirely about the things in my pocket. But I found it would be too long: and the age of the great epics is past.”

    (From G.K. Chesterton’s “A Piece of Chalk”)

    Based only on the information provided in the above passage, which one of the following statements is true?
    1. A.

      The author of the passage carries a mirror in his pocket to reflect upon things.

    2. B.

      The author of the passage had decided to write a poem on epics.

    3. C.

      The pocket-knife is described as the infant of the sword.

    4. D.

      Epics are described as too inconvenient to write.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a detail-extraction and figurative language interpretation question. The correct option must be strictly supported by the text without adding external assumptions or literal misinterpretations.

    Step 1: Evaluate Option A. The passage uses "reflected" in the mental sense ("must have reflected how primeval..."), meaning "thought about". It does not imply the physical act of using a mirror. This is a literal interpretation trap.

    Step 2: Evaluate Option B. The author planned to write poems about "the things in my pocket", not about epics. The mention of epics is to explain why the pocket-themed book was abandoned (its length would rival great epics, and that age is past).

    Step 3: Evaluate Option C. The passage explicitly states: "the pocket-knife, for instance the type of all human tools, the infant of the sword." This directly and accurately matches the option.

    Step 4: Evaluate Option D. The author found the book of poems about pocket items would be "too long", not that epics themselves are inconvenient to write.

    Answer: C

    Question 34 · Spatial Aptitude · 2025_Set1 MCQ
    According to the map shown in the figure, which one of the following statements is correct?

    Note: The figure shown is representative.

    LibraryPhysics LabCanteenHospitalHostelsClassroomsChemistryLab1st Main Road5th Cross RoadNSWE
    1. A.

      The library is located to the northwest of the canteen.

    2. B.

      The hospital is located to the east of the chemistry lab.

    3. C.

      The chemistry lab is to the southeast of physics lab.

    4. D.

      The classrooms and canteen are next to each other.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a map directions and relative positions question, recognisable because it asks to determine the relative location of buildings based on a provided map with a compass rose.

    Why this method applies: We can assign approximate grid positions or relative directions (North, South, East, West) to each building based on the map layout and then evaluate each option systematically.

    Step 1: Understand the compass and map layout. The compass rose in the bottom right corner indicates standard orientation: North (N) is Up, South (S) is Down, West (W) is Left, and East (E) is Right.

    Step 2: Locate the key buildings on the map grid.

    • Library: Top-Left quadrant.
    • Physics Lab: Middle-Left (directly below Library).
    • Canteen: Top-Right quadrant.
    • Hospital: Middle-Right (directly below Canteen).
    • Hostels: Bottom-Left (below the horizontal road).
    • Classrooms: Bottom-most Left (below Hostels).
    • Chemistry Lab: Bottom-Right (below Hospital).

    Step 3: Evaluate Option A. The Library and Canteen are in the same horizontal band (Top). The Library is on the left and Canteen is on the right. Thus, the Library is directly West of the Canteen, not Northwest. Option A is false.

    Step 4: Evaluate Option B. The Hospital and Chemistry Lab are in the same vertical band (Right). The Hospital is above the Chemistry Lab. Thus, the Hospital is directly North of the Chemistry Lab, not East. Option B is false.

    Step 5: Evaluate Option C. The Physics Lab is in the Middle-Left. The Chemistry Lab is in the Bottom-Right. To move from the Physics Lab to the Chemistry Lab, you must go Right (East) and Down (South). Therefore, the Chemistry Lab is to the Southeast of the Physics Lab. Option C is true.

    Step 6: Evaluate Option D. The Classrooms are in the Bottom-Left and the Canteen is in the Top-Right. They are diagonally opposite across the map and separated by roads, so they are not next to each other. Option D is false.

    Answer: C

    Question 35 · Spatial Aptitude · 2025_Set1 MCQ
    A square paper, shown in figure (I), is folded along the dotted lines as shown in the figures (II) and (III). Then a few cuts are made as shown in figure (IV). Which one of the following patterns will be obtained when the paper is unfolded?

    Note: The figures shown are representative.

    (I)(II)(III)(IV)
    1. A.
    2. B.
    3. C.
    4. D.
    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: Reverse unfolding using the reflection principle. We start from the final cut state and unfold step-by-step, mirroring the cuts across the fold lines.

    Step 1: Analyze the final folded state (Figure IV). It is a right-angled triangle. The cuts are:

    • A rectangular hole inside the triangle.
    • A triangular notch on the top edge (hypotenuse of this small triangle).
    • A rectangular notch on the left edge (a leg of this small triangle).

    Step 2: Understand the fold mapping.

    • The first fold was along the diagonal of the original square.
    • The second fold was along the altitude to the hypotenuse, creating the small triangle in Figure IV.
    • The hypotenuse of the small triangle in Figure IV corresponds to the outer perimeter of the original square.
    • The legs of the small triangle correspond to the diagonal fold lines of the original square.

    Step 3: Unfold and reflect.

    • The rectangular hole is offset from the center (the right-angle vertex). Since the paper has 4 layers here, unfolding will replicate this hole 4 times, symmetrically placed in the four quadrants. The hole's sides are parallel to the hypotenuse (original square's sides), so the unfolded holes will be upright squares/rectangles, not rotated diamonds.
    • The triangular notch on the hypotenuse (perimeter) will be replicated on all four sides of the original square. Since the cut removes material from the edge, the unfolded representation must show a notch pointing inward (missing material from the boundary).

    Step 4: Evaluate the options.

    • Option A shows notches pointing outward (outside the boundary), which is an incorrect representation of a removed edge piece.
    • Option B shows diamond-shaped holes, which implies the cut was rotated 45 degrees relative to the sides. This is incorrect.
    • Option C correctly shows upright square holes and inward-pointing triangular notches on all four edges, matching the reflection of the perimeter cut.
    • Option D shows a single central hole, which would only occur if the cut was made exactly at the right-angle vertex (the center of the original square).

    Answer: C

    Question 36 · Quantitative Aptitude · 2025_Set1 MCQ

    The average marks obtained by a class in an examination were calculated as 30.8. However, while checking the marks entered, the teacher found that the marks of one student were entered incorrectly as 24 instead of 42. After correcting the marks, the average becomes 31.4. How many students does the class have?

    1. A.

      25

    2. B.

      28

    3. C.

      30

    4. D.

      32

    Correct Answer:

    C

    Step-by-Step Solution

    Insight: The increase in the average is caused entirely by the correction in the misrecorded mark, distributed equally among all students.

    Exam route: Error in sum = 42 - 24 = 18. Increase in average = 31.4 - 30.8 = 0.6. Number of students = 18 / 0.6 = 30.

    Learning route:

    Step 1: Identify the error in the total sum. The mark 24 was entered instead of 42. The sum was short by 42 - 24 = 18.

    Step 2: Identify the increase in the average. The average went from 30.8 to 31.4, an increase of 31.4 - 30.8 = 0.6.

    Step 3: Relate the sum error to the average error. The extra 18 marks were distributed equally among students, increasing the average by 0.6.

    So, .

    Step 4: Solve for . .

    Trap warning: Some students might subtract 24 from 42 and get 18, then divide by the initial average 30.8, which is incorrect. The 18 is the total increase in the sum, not a single student's mark.

    Verification: Initial sum = 30 * 30.8 = 924. Correct sum = 924 - 24 + 42 = 942. Correct average = 942 / 30 = 31.4. Matches perfectly.

    Question 37 · Quantitative Aptitude · 2025_Set1 MCQ
    In the diagram, the lines QR and ST are parallel to each other. The shortest distance between these two lines is half the shortest distance between the point P and line QR. What is the ratio of the area of the triangle PST to the area of the trapezium SQRT?

    Note: The figure shown is representative.

    PQRST
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Parallel lines inside a triangle create similar triangles. The ratio of their areas is the square of the ratio of their corresponding heights.

    Exam route: Height ratio of to is . Area ratio is . Trapezium area is . Ratio is .

    Learning route:

    1. Let the shortest distance from to be .
    2. The problem states the distance between the parallel lines and is half of this, so it is .
    3. Since is parallel to and lies between and , the distance from to is .
    4. and are similar by the AA test (they share , and due to parallel lines).
    5. The ratio of their corresponding heights is .
    6. The ratio of their areas is the square of the height ratio: .
    7. Let and .
    8. The trapezium is the region minus , so its area is .
    9. The required ratio is .

    Wrong path: Forgetting to square the height ratio, leading to an area ratio of . This would make the trapezium area , giving a ratio of , or mistakenly using the large triangle's area in the denominator to get (Option B).

    Question 38 · Analytical Aptitude · 2025_Set1 MCQ
    Consider the relationships among P, Q, R, S, and T:

    • P is the brother of Q.
    • S is the daughter of Q.
    • T is the sister of S.
    • R is the mother of Q.

    The following statements are made based on the relationships given above.

    (1) R is the grandmother of S.

    (2) P is the uncle of S and T.

    (3) R has only one son.

    (4) Q has only one daughter.

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

      Both (1) and (2) are true.

    2. B.

      Both (1) and (3) are true.

    3. C.

      Only (3) is true.

    4. D.

      Only (4) is true.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Build a generational family tree using standard symbols (squares for males, circles for females, horizontal lines for spouses/siblings, vertical for parent-child) before evaluating any statement.

    Exam route:

    Step 1: "R is the mother of Q" R (Gen 1, Female) Q (Gen 2).

    Step 2: "P is the brother of Q" P (Gen 2, Male) is sibling of Q.

    Step 3: "S is the daughter of Q" and "T is the sister of S" S, T (Gen 3, Female) are children of Q.

    Step 4: Evaluate statements. (1) R is grandmother of S: True (R is mother of Q, Q is parent of S). (2) P is uncle of S and T: True (P is brother of Q, Q is parent of S, T). (3) R has only one son: Unknown (Q's gender is not specified, and R could have other children). (4) Q has only one daughter: False (Q has at least two daughters, S and T).

    Step 5: Select "Both (1) and (2) are true."

    Learning route:

    Step 1: Draw Gen 1: R (Female, circle).

    Step 2: Draw Gen 2: P (Male, square) and Q (gender unknown) connected horizontally (siblings), with a vertical line from R.

    Step 3: Draw Gen 3: S and T (Females, circles) connected horizontally (sisters), with a vertical line from Q.

    Step 4: Trace paths for evaluation. Path R Q S confirms R is grandmother. Path P Q S,T confirms P is uncle.

    Step 5: Identify "Unknown" traps. "Only one son" requires explicit confirmation of all children and their genders, which is absent.

    Other GATE CS papers