Question
The expression is equal to
Official answer and solution
- Official answer
- B
- From
- Official GATE 2017 answer key
Solution
Evaluate the expression by analyzing the two complementary cases: x >= y and x < y.
Consider the given expression:
By the definition of the absolute value function :
- Case 1: .
Then .
Substituting into the expression:Since , the minimum of and is . Thus, .
- Case 2: .
Then .
Substituting into the expression:Since , the minimum of and is . Thus, .
In both cases, the expression identically evaluates to the minimum of and :
(Note: the corresponding formula with addition, , equals ).
Final answer
B
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2017 Computer Science and Information Technology (CS) Session 1
- Question
- 63 of 65, printed as GA Q.63
- Section
- General Aptitude
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.