IAE Academy

GATE 2026 CS1 GA Q.8: solution and answer

GATE 2026 · CS1GA Q.8 · 2 marks · MCQ

For positive real numbers S and K, the function H_K(S) is defined as: H_K(S) = max(S − K, 0). The max function is defined as: max(a, b) = a, when a > b; b, when a ≤ b. The graph below shows the plot of a function N(S) versus S. N(S) can be expressed as ______.

GATE 2026 CS1 GA question 8: A line graph with grid.Tap to open full size
Figure from the GATE 2026 CS1 paper. It is part of the question.
Figure description

A line graph with grid. Horizontal axis S, labelled at 0, 10, 20, 30. Vertical axis N(S), labelled 0, 2, 4, 6, 8, 10, 12. The plot is a black line: N(S) = 0 along the S-axis from S = 0 to S = 10; then a straight line rising from (10, 0) to (20, 10); then horizontal at N(S) = 10 from S = 20 to S = 30.

  1. (A)

    H_10(S) − H_20(S)

  2. (B)

    H_10(S) − 2H_20(S)

  3. (C)

    −H_10(S) + H_20(S)

  4. (D)

    H_15(S) − H_20(S)

Answer and solution

ANSWER

N(S) = H_10(S) − H_20(S), option (A).

Official answer: ASource: Official answer key, GATE 2026 CS1 (IIT Guwahati)

  1. Read the graph: for ; from to it is a straight line of slope ; for it stays at .

  2. By definition, equals for and for . It is a ramp of slope that starts at .

  3. A ramp of slope starting at is . It matches the graph for .

  4. To make the graph flat after , subtract a slope-1 ramp that starts at , which is . This suggests .

  5. Check : . Check : , which is at and at , a line of slope .

  6. Check : , a constant, which matches the graph.

  7. Other options: (B) gives for , which decreases, so it is wrong. (C) is the negative of (A), so it is everywhere, so it is wrong. (D) starts rising at and gives for , but the graph starts rising at and ends at , so it is wrong.

  8. Therefore the answer is (A) .

KEY IDEA

is a slope-1 ramp that starts at . Subtracting a ramp that starts later cancels the slope from that point on, so rises from to and then stays flat at .

WATCH OUT FOR

Choosing (C), which has the right ramps in the wrong order and so is non-positive. Or choosing (B), where subtracting two ramps makes the graph turn downward instead of flat.

From the GATE 2026 CS1 paper. Every question of this paper · Download the full paper · All 18 Data interpretation questions, with notes

More Data interpretation questions