Skip to content
Official PYQ · 2026

GATE CS 2026 Set 1 Q8 — General Aptitude

Explain with AI

For positive real numbers SS and KK, the function HK(S)H_{K}(S) is defined as:

 HK(S)=max⁡(S−K,0)H_{K}(S)=\max (S-K, 0). The max function is defined as:
max⁡(a,b)={a, when a>bb, when a≤b\max (a, b)=\left\{\begin{array}{ll} a, & \text{ when } a>b \\ b, & \text{ when } a \leq b \end{array}\right.

The graph below shows the plot of a function N(S)N(S) versus SS.

N(S)N(S) can be expressed as ____\_\_\_\_.

Choose one option
View worked solution

Answer: A

The function HK(S)H_{K}(S) is defined as max⁡(S−K,0)\max(S-K, 0). Let us evaluate the expression in Option A, N(S)=H10(S)−H20(S)N(S) = H_{10}(S) - H_{20}(S), across different intervals of SS:

  • Case 1: S≤10S \le 10
    Both terms are zero:
    H10(S)=0andH20(S)=0H_{10}(S) = 0 \quad \text{and} \quad H_{20}(S) = 0N(S)=0−0=0N(S) = 0 - 0 = 0
  • Case 2: 10<S≤2010 < S \le 20
    Only the first term is active:
    H10(S)=S−10andH20(S)=0H_{10}(S) = S - 10 \quad \text{and} \quad H_{20}(S) = 0N(S)=(S−10)−0=S−10N(S) = (S - 10) - 0 = S - 10This represents a straight line with a slope of 11, starting at (10,0)(10, 0) and ending at (20,10)(20, 10).
  • Case 3: S>20S > 20
    Both terms are active:
    H10(S)=S−10andH20(S)=S−20H_{10}(S) = S - 10 \quad \text{and} \quad H_{20}(S) = S - 20N(S)=(S−10)−(S−20)=10N(S) = (S - 10) - (S - 20) = 10This represents a flat horizontal line at N(S)=10N(S) = 10.

The resulting piecewise function starts at 00 for S≤10S \le 10, rises linearly with a slope of 11 between S=10S = 10 and S=20S = 20, and remains constant at 1010 for S≥20S \ge 20, which perfectly matches the given graph.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore General Aptitude questions