Which digits should come in place of * and $ if the number 4675*2$ is divisible by both 5 & 8?
(A) 4, 0
(B) 4, 5
(C) 1, 0
(D) 8, 0
Explanation: Since the given number is divisible by 5, 0 or 5 must come in place of $. But a number ending with 5 is never divisible with 8 because a divisible number must be even. Therefore 0 will replace $. If the number is divisible by 8, the number formed by last three digits must be divisible by 8. The number *20 must be divisible by 8. Among all 4 options, only placing 1 in place of * makes it divisible by 8.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.