Final answer:
The container holds 2 moles of hydrogen gas.
Step-by-step explanation:
To find the number of moles of hydrogen gas in a container, we need to use its molar mass. The molar mass of hydrogen gas (H₂) is approximately 2 g/mol. Since the container holds 4g of hydrogen gas, we can calculate the number of moles using the formula:
Number of moles = Mass of substance / Molar mass
Number of moles = 4g / 2 g/mol = 2 mol
Therefore, the container contains 2 moles of hydrogen gas.