Open In App

GATE | GATE-CS-2015 (Set 2) | Question 65

Consider a function f(x) = 1 – |x| on –1 ≤ x ≤ 1. The value of x at which the function attains a maximum and the maximum value of the function are:
(A) 0, –1
(B) –1, 0
(C) 0, 1
(D) –1, 2

Answer: (C)
Explanation:

f(x) = 1 – |x|
f(0) = 1
f(1) = f(-1) = 0
f(0.5) = f(-0.5) = 0.5

The maximum is attained at x = 0, and the maximum value is 1.
Quiz of this Question

Article Tags :