Placement AptitudeHardInfosys SP · Amazon aptitude

How many points (x, y) with integer coordinates satisfy |x| + |y| ≤ 4?

  1. A. 25
  2. B. 16
  3. C. 81
  4. D. 41

Correct answer: D. 41

For |x| + |y| ≤ n the count is 2n² + 2n + 1; with n = 4 that is 41 (25 points inside with |x| + |y| ≤ 3, plus 16 on the boundary |x| + |y| = 4). 81 counts the whole 9 × 9 square.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic