
Note
Firstly, The basic rule for divisibility by 4 is that if the number formed by the last two digits in a number is divisible by 4, the original number is divisible by 4
Secondly, If the last two digits end with 00 this is because 100 is divisible by 4 and so adding hundreds, thousands, etc. 4 can divide perfectly.
Given
The divisibility test successful 98942d is divisible by 4

Therefore d can be

The final answer
d is either
0 or 4 or 8