chapter
    Quantitative Aptitude PYQs for GATE CS

    GATE CS Quantitative Aptitude: 2 units and 6 chapters, weightage from 33 previous year questions across 10 papers, a study order by exam weight and 540 practi

    A question from this chapter

    Question 1
    2026 Slot Set2 PYQ
    Level 3: Exam Standard

    The values of Stock A and Stock B on a particular day are Rs. 50 and Rs. 80, respectively. An investor invests Rs. 100 in Stock A and Rs. 80 in Stock B. He sells all the stocks the next day when the value of Stock A is Rs. 55 and Stock B is Rs. 70. The profit made by the investor is Rs. ________

    Question 2
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

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

    Question 3
    2025 Slot Set2 PYQ
    Level 3: Exam Standard
    In the given figure, PQRS is a square of side 2 cm and PLMN is a rectangle. The corner L of the rectangle is on the side QR. Side MN of the rectangle passes through the corner S of the square.

    What is the area (in cm) of the rectangle PLMN?

    Note: The figure shown is representative.

    PQRSLMN
    Question 4
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

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

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

    Iteration ()0123Input ()20−41015Output ()20162641Output ()20−80−800−12000
    Question 6
    2024 Slot Set2 PYQ
    Level 3: Exam Standard
    The pie charts depict the shares of various power generation technologies in the total electricity generation of a country for the years 2007 and 2023.

    Year2007Year2023Coal35%Gas25%Hydro30%Solar 5%Wind5%Coal20%Gas15%Hydro35%Solar20%Wind10%

    The renewable sources of electricity generation consist of Hydro, Solar and Wind. Assuming that the total electricity generated remains the same from 2007 to 2023, what is the percentage increase in the share of the renewable sources of electricity generation over this period?
    Free preview ends here

    Login to view the complete previous-year questions 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.

    Quantitative Aptitude PYQs for GATE CS

    GATE CS Quantitative Aptitude: 2 units and 6 chapters, weightage from 33 previous year questions across 10 papers, a study order by exam weight and 540 practice questions.

    About Quantitative Aptitude Previous Year Questions (PYQs)

    33 previous year questions from Quantitative Aptitude in GATE CS, grouped by chapter with the exam year, answer key and step-by-step solution for each.

    GATE CS Quantitative Aptitude Unit-wise Weightage from Past Papers

    We counted every GATE CS Quantitative Aptitude previous year question in our bank (33 questions from 10 papers) and grouped them by unit.

    UnitChaptersPYQsShare of sectionAvg per paper
    Numerical computation and estimation42885%2.8
    Data interpretation2515%0.5

    Suggested Quantitative Aptitude Study Order for GATE CS

    1. Numerical computation and estimation: 85% of past Quantitative Aptitude questions, about 2.8 per paper.
    2. Data interpretation: 15% of past Quantitative Aptitude questions, about 0.5 per paper.

    Start where the marks are. Units at the top of this list have appeared most often in past GATE CS papers.

    Units in GATE CS Quantitative Aptitude

    All Quantitative Aptitude chapters

    One Solved Question from Each Quantitative Aptitude Chapter

    Question 1 · Arithmetic, Ratios, Percentages and Commercial Mathematics · 2026_Set2 MCQ

    The values of Stock A and Stock B on a particular day are Rs. 50 and Rs. 80, respectively. An investor invests Rs. 100 in Stock A and Rs. 80 in Stock B. He sells all the stocks the next day when the value of Stock A is Rs. 55 and Stock B is Rs. 70. The profit made by the investor is Rs. ________

    1. A.

      0

    2. B.

      5

    3. C.

      10

    4. D.

      20

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: Calculate the number of shares purchased for each stock using the initial investment and price, then find the total selling value.

    Exam route: Shares of A = 100 / 50 = 2. Shares of B = 80 / 80 = 1. Selling value = 2 55 + 1 70 = 110 + 70 = 180. Total cost = 180. Profit = 180 - 180 = 0.

    Learning route:

    Step 1: Find the number of shares bought for Stock A. Investment = Rs. 100, Price = Rs. 50. Shares of A = 100 / 50 = 2.

    Step 2: Find the number of shares bought for Stock B. Investment = Rs. 80, Price = Rs. 80. Shares of B = 80 / 80 = 1.

    Step 3: Calculate the total selling value the next day. Price of A = Rs. 55, Price of B = Rs. 70.

    Selling value of A = 2 * 55 = 110.

    Selling value of B = 1 * 70 = 70.

    Total selling value = 110 + 70 = 180.

    Step 4: Calculate profit. Total cost = 100 + 80 = 180. Profit = Total selling value - Total cost = 180 - 180 = 0.

    Trap warning: A common mistake is to just average the percentage changes or add the price differences (55 - 50 + 70 - 80 = -5) without weighting by the number of shares.

    Verification: Cost = 180. Final value = 180. Profit = 0. Matches option A.

    Question 2 · Algebra, Equations, Functions and Sequences · 2026_Set1 MCQ

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

    1. A.

      10

    2. B.

      15

    3. C.

      20

    4. D.

      25

    Correct Answer:

    D

    Step-by-Step Solution

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

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

    Learning route:

    Step 1: Formulate the total credits equation: .

    Step 2: Apply the given constraints: and .

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

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

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

    Step 6: Substitute these values: .

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

    Question 3 · Geometry, Mensuration and Area · 2025_Set2 MCQ
    In the given figure, PQRS is a square of side 2 cm and PLMN is a rectangle. The corner L of the rectangle is on the side QR. Side MN of the rectangle passes through the corner S of the square.

    What is the area (in cm) of the rectangle PLMN?

    Note: The figure shown is representative.

    PQRSLMN
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: The area of the rectangle PLMN is invariant and equals the area of the square PQRS due to a shared geometric relationship through triangle PLS.

    Exam route: Area of rectangle = Area of square = .

    Learning route:

    1. Consider . Its base is , which is a side of the rectangle PLMN.
    2. The vertex lies on the line , which is parallel to . Therefore, the perpendicular height of from to is exactly the width of the rectangle, .
    3. Area of .
    4. Now consider with respect to the square PQRS. Let the base be (a side of the square, length 2). The vertex lies on . The perpendicular distance from to the line containing is exactly the side length of the square, which is 2.
    5. Area of .
    6. Equating the two expressions for the area of : .

    Wrong path: Trying to assign coordinates to and and solving complex algebraic equations, or assuming the rectangle must be a square and guessing .

    Question 4 · Counting, Sets and Elementary Probability · 2026_Set1 MCQ

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

    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

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

    Exam route:

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

    Learning route:

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

    Build the case table:

    | | Allowed | Count |

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

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

    | 2 | 2, 4, 6 | 3 |

    | 3 | 3, 6 | 2 |

    | 4 | 4 | 1 |

    | 5 | 5 | 1 |

    | 6 | 6 | 1 |

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

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

    Wrong-path autopsy:

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

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

    Question 5 · Tables and Structured Data · 2025_Set2 MCQ
    Which one of the following options is correct for the given data in the table?

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

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

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

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

    Learning route:

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

    . (Matches table)

    . (Matches table)

    1. Test Option A for :

    . (Matches table)

    . (Matches table)

    1. Test Option A for :

    . (Matches table)

    . (Matches table)

    1. Conclusion: Option A is the only recurrence relation that consistently reproduces the table's values.
    Question 6 · Charts and Graphical Data Interpretation · 2024_Set2 MCQ
    The pie charts depict the shares of various power generation technologies in the total electricity generation of a country for the years 2007 and 2023.

    Year2007Year2023Coal35%Gas25%Hydro30%Solar 5%Wind5%Coal20%Gas15%Hydro35%Solar20%Wind10%

    The renewable sources of electricity generation consist of Hydro, Solar and Wind. Assuming that the total electricity generated remains the same from 2007 to 2023, what is the percentage increase in the share of the renewable sources of electricity generation over this period?
    1. A.

      25%

    2. B.

      50%

    3. C.

      77.5%

    4. D.

      62.5%

    Correct Answer:

    D

    Step-by-Step Solution

    Insight: Since total electricity generated remains constant across both years, percentage shares can be used directly in the percentage change formula without converting to absolute values.

    Exam route: Sum the renewable percentages for each year, then apply (new − old)/old × 100.

    Learning route:

    Step 1: Identify renewable sources from the question statement: Hydro, Solar, and Wind.

    Step 2: Sum renewable share for 2007 from the pie chart: Hydro 30% + Solar 5% + Wind 5% = 40%.

    Step 3: Sum renewable share for 2023 from the pie chart: Hydro 35% + Solar 20% + Wind 10% = 65%.

    Step 4: Since total generation is constant, the percentage increase in share equals the percentage increase in actual generation. The old value is the anchor denominator.

    Step 5: Apply the percentage change formula:

    Verification: If total generation = 100 units, renewables went from 40 to 65 units. . ✓