Interview Q&A / Aptitude

IntermediateQuick answer1 min readUpdated 3 Oct 2026

Plant A produced 450, 520 and 600 units over three years, and Plant B produced 300, 390 and 480 units. What is B's total output as a percentage of A's, and in which year was B's output closest to A's?

SHORT ANSWER

B's total (1,170) is about 74.52% of A's total (1,570). Year by year, B/A is 66.7%, 75% and 80%, so B came closest to A in the third year, even though the gap in units (120) was smallest in the first and third years.

Explain it simply

DI questions often ask "X as a percentage of Y". The thing after "of" is always the base, the denominator. Another trap is "closest": it can mean the smallest gap in units or the highest ratio. Read which one the question means; when it says "as a share" or "relative", use the ratio.

Example

Data:

YearPlant APlant BB/A
145030066.67%
252039075.00%
360048080.00%
Total1,5701,17074.52%
  1. B as % of A = 1,170 / 1,570 x 100 = 74.52%.
  2. Highest ratio B/A: year 3 (80%).
  3. Gaps in units: 150, 130, 120. So by the unit gap, year 3 is also the closest; by ratio it is clearly year 3.
js
const A = [450, 520, 600], B = [300, 390, 480];
const sum = a => a.reduce((x, y) => x + y);
console.log(((sum(B) / sum(A)) * 100).toFixed(2)); // Output: 74.52
console.log(B.map((b, i) => ((b / A[i]) * 100).toFixed(1))); // Output: ["66.7","75.0","80.0"]

What to say in the interview

"The base is whatever comes after 'of', so it's 1,170 over 1,570, about 74.5%. For 'closest' I compare ratios year by year, and B reached 80% of A in year 3."

Common mistakes

  • Dividing A by B (134%) when the question asks for B as a percentage of A.
  • Averaging the yearly percentages (73.9%) instead of dividing the totals.

#aptitude#data-interpretation#bar-chart

Related questions

Practise more Aptitude questions

Test your recall with short answers, then return to the detailed explanations when you need context.

Open Aptitude quick answers →

Get new questions like this by email

One short email when something new and useful lands. No spam, unsubscribe in one tap.

By subscribing you agree to the Privacy Policy.