Skip to content
Related Articles

Related Articles

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

View Discussion
Improve Article
Save Article
  • Last Updated : 28 Jun, 2021
View Discussion
Improve Article
Save Article

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!