Bunuel
The function max(a, b) returns the largest, and min(a, b) returns the smallest value among the given numbers a and b. If a and b are distinct numbers, which of the following must be true?
I. max(a, b) + min(a, b) > 0
II. max(a, b) = (a + b + |a - b|)/2
III. min(a, b) < (a + b - |a - b|)/2
A. I only
B. II only
C. III only
D. I and II only
E. I, II, and III
This is a "MUST be true" type of question.
Let's evaluate the options -
I. max(a, b) + min(a, b) > 0If 'a' and 'b' are negative, both max(a,b) and min(a,b) will be negative. In that case, max(a, b) + min(a, b) will also be negative. Hence, the stated inequality is not always true. We can eliminate all options that state option I must be true. Eliminate A, C and D.
II. max(a, b) = (a + b + |a - b|)/2There are two ways to approach this statement
1) Test out numbersCase 1: a = -5; b = -10
max(a,b) = -5
min (a,b) = -10
(a + b + |a - b|)/2 = (-5 - 10 + 5)/2 = -5
Hence, max(a, b) = (a + b + |a - b|)/2
Case 2: a = -5; b = 0
max(a,b) = 0
min (a,b) = -5
(a + b + |a - b|)/2 = (-5 - 0 + 5)/2 = 0
Hence, max(a, b) = (a + b + |a - b|)/2
Case 3: a = 0 ; b = 5
max(a,b) = 5
min (a,b) = 0
(a + b + |a - b|)/2 = (0 + 5 + 5)/2 = 5
Hence, max(a, b) = (a + b + |a - b|)/2
Case 4: a = 5 ; b = 6
max(a,b) = 6
min (a,b) = 5
(a + b + |a - b|)/2 = (5 + 6 + 1)/2 = 6
Hence, max(a, b) = (a + b + |a - b|)/2
We can conclude II holds.
2) Logical Approach|a - b| → Represents the distance between the numbers 'a' and 'b'.
Assume between 'a' and 'b', 'a' is the smaller number. Therefore, max(a,b) = b
In this case, if we add |a - b|, i.e. the distance between 'a' and 'b', to 'a', the resultant number is 'b'.
Therefore, a + |a-b| = b
(a + b + |a - b|)/2 = (b + b)/2 = b
max(a, b) is always equals to (a + b + |a - b|)/2
We can conclude II holds.
Between B and C ⇒ We can eliminate C.
Option B