Data Structures & AlgorithmsHardGATE CS · TCS NQT

What is the digital root of the product 9 * 18 * 27 * 34?

  1. A. 7
  2. B. 9
  3. C. 10
  4. D. 0

Correct answer: B. 9

Digital root is n mod 9 (with 9 instead of 0); any product containing a factor 9 has digital root 9. The product is divisible by 9, so the root is 9.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic