Placement AptitudeHardTCS NQT · Accenture

How many integers from 1 to 1000 (inclusive) are perfect squares or perfect cubes?

  1. A. 41
  2. B. 40
  3. C. 39
  4. D. 38

Correct answer: D. 38

Squares: 1² to 31² (31). Cubes: 1³ to 10³ (10). Both (sixth powers): 1, 64, 729 (3). Total 31 + 10 − 3 = 38.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic