GATE / CS ARCHIVE

GATE CSE 2026 SET 1 / QUESTION 8

Building a capped ramp from hinges

General Aptitude · Algebra, Equations & Number Patterns · Full GATE CSE 2026 Set 1 paper

GATE 2026 Set 1, Q8 2 marks · MCQ
Report issue

Algebra, Equations & Number Patterns

Question 8, GATE 2026: For S,K>0, define H_K(S)=max(S−K,0). The plotted N(S) is zero through S=10, rises linearly from (10,0) to (20,10), and stays at 10 afterwards. Choices: A H_10−H_20; B H_10−2H_20; C −H_10+H_20; D H_15−H_20.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Givens and goal

For S,K>0, define H_K(S)=max(S−K,0). The plotted N(S) is zero through S=10, rises linearly from (10,0) to (20,10), and stays at 10 afterwards. Choices: A H10−H20; B H10−2H_20; C −H10+H20; D H15−H20.

Approach

Transcribe the graph as a piecewise function, then activate the hinge terms one interval at a time.

Step-by-step solution

1. The middle line has slope (10−0)/(20−10)=1. Hence N(S)=0 for 0<S≤10, N(S)=S−10 for 10<S≤20, and N(S)=10 for S>20.
2. H10 starts a slope-1 ramp at 10. On its own it would continue increasing beyond 20, so subtract a second slope-1 ramp that starts at 20.
3. Evaluate A=H10−H20. Below 10 both terms vanish. Between 10 and 20 only H10 is active, giving S−10. Above 20, the result is (S−10)−(S−20)=10. It also takes the correct endpoint values at 10 and 20.
4. B instead has slope 1−2=−1 above 20 and falls after the peak. C is the negative of A. D starts rising too late, at 15, and reaches a plateau of only 5. Thus only A matches every segment of the graph.

Graph coordinates for reconstruction: (0,0) to (10,0) to (20,10), followed by a horizontal ray at height 10.

Original paper, page 7 · Answer key