GATE CS 2026, set 1 · Question 8 · General Aptitude · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

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 ______.

Line plot of N(S) (vertical axis, labelled N(S), ticks 0, 2, 4, 6, 8, 10, 12) versus S (horizontal axis, labelled S, ticks 0, 10, 20, 30), with gridlines. The graph is piecewise linear: N(S) = 0 from S = 0 to S = 10; it then rises linearly from (10, 0) to (20, 10), a slope of 1; it then stays constant at N(S) = 10 from S = 20 to S = 30.
  1. (A) H₁₀(S) - H₂₀(S)
  2. (B) H₁₀(S) - 2H₂₀(S)
  3. (C) -H₁₀(S) + H₂₀(S)
  4. (D) H₁₅(S) - H₂₀(S)
Answer

Answer (A)

Answer from the official GATE CS 2026 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes