Number of moles of hydrogen (H2)= Molecular weight of H2 Weight in gram of H2
Weight of H2 in gram =1g
molecular weight of H2=2
Number of moles of H2=21=0.5 moles
Number of moles of (O2)= Molecular weight of O2 Weight in gram of O2 =328=0.25 moles
Mole fraction of (H2)= Total number of moles Number of moles of H2 =0.25+0.50.5=0.667