Option (B) is correct.
Explanation:
1000=8×125, so 5000 is a multiple of 8, and only the last three digits 3□4 decide divisibility by 8.
Try each digit from 0 to 9:
304=8×38, 344=8×43 and 384=8×48 are multiples of 8; each of 314,324,334,354,364,374,394 leaves 2, 4 or 6 over (for example, 314=8×39+2 and 334=8×41+6).
So the smudged digit is 0, 4 or 8: 3 possible digits. The counts are 5304, 5344 and 5384.
Why the other options are wrong
- (A) 5 uses the shortcut for 4: the last two digits □4 are divisible by 4 for the digits 0, 2, 4, 6, 8. But 5324 and 5364 leave 4 over in trays of 8.
- (C) 1 stops after finding one digit (such as 0), but 4 and 8 also work.
- (D) 2 forgets that the smudged digit can be 0: 5304=8×663.