The product formed in the following reaction is :
M + H2
[M alkaline earth metal ]
M2H
M(OH)2
MO
MH2
As we learnt ,
Reaction of hydrogen with alkaline earth metals produces their hydride except beryllium
Therefore, option(4) is correct.