Placement AptitudeVery hardProduct company OA · CAT level
What is the minimum value of f(x) = |x − 1| + |2x − 5| + |4x − 18| over all real x?
- A. 9.5
- B. 3.5
- C. 7.5
- D. 28/3
Correct answer: C. 7.5
f is piecewise linear with corners at 1, 2.5 and 4.5; its slope is −7, −5, −1 and then +7, so it falls until x = 4.5 and the minimum is f(4.5) = 3.5 + 4 + 0 = 7.5. The coefficients act as weights 1, 2, 4, so the minimum sits at the weighted median: the middle corner gives f(2.5) = 9.5, the mean 8/3 gives 28/3, and dropping the coefficients (|x − 2.5|, |x − 4.5|) gives 3.5.
Practise more Advanced Quantitative Ability (Placement) questionsAdvanced Quantitative Ability (Placement): notes and key points
More Advanced Quantitative Ability (Placement) questions
- Two circles of radii 9 cm and 4 cm touch each other externally and both rest on a straight line. A third circle is drawn in the gap…
- In triangle ABC, AB = 10 cm, AC = 17 cm and BC = 21 cm. A square is drawn inside the triangle with one side lying on BC and the other two…
- P is a point inside a circle of radius 13 cm, at a distance of 5 cm from the centre. How many chords of the circle pass through P and have…
- An escalator moves upward at a constant speed. Asha walks up it and reaches the top after taking 30 steps. Bala walks DOWN the same…
- Pipes A and B can fill a tank in 20 minutes and 30 minutes respectively. An outlet pipe C, which can empty the full tank in 15 minutes, is…
- Vessel A holds 40 litres of milk and vessel B holds 40 litres of water. 10 litres are poured from A into B and stirred, then 10 litres are…