GATE CS 2015, set 2 · Question 5 · General Aptitude · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

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:

  1. (A) 0, -1
  2. (B) -1, 0
  3. (C) 0, 1
  4. (D) -1, 2
Answer

Answer (C)

Answer from the official GATE CS 2015 answer key.

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