Name the gas formed when

a)dilute HCL is added to a mixture of iron filings and sulphur
b)dilute HCL is added to a compound of iron and sulphur

1. Hydrogen gas. It comes from the reaction between iron and HCl.

2. Hydrogen sulfide gas comes from the compound of FeS when HCl is added.

H2sS gas with foul smell

To answer these questions, we need to understand the reactions that occur when dilute hydrochloric acid (HCl) is added to a mixture of iron filings and sulfur, as well as when it is added to a compound of iron and sulfur.

a) When dilute HCl is added to a mixture of iron filings and sulfur:
The reaction between iron filings (Fe) and sulfur (S) in the presence of hydrochloric acid (HCl) results in the formation of a gas called hydrogen sulfide (H2S). The balanced chemical equation for this reaction is:

Fe(s) + S(s) + 2HCl(aq) -> FeCl2(aq) + H2S(g)

So, when dilute HCl is added to a mixture of iron filings and sulfur, hydrogen sulfide gas is formed.

b) When dilute HCl is added to a compound of iron and sulfur:
If you are referring to an iron-sulfur compound like Iron(II) sulfide (FeS) or Iron(III) sulfide (Fe2S3), the reaction between the sulfur compound and hydrochloric acid will produce different products.

For example, when dilute HCl is added to Iron(II) sulfide:
FeS(s) + 2HCl(aq) -> FeCl2(aq) + H2S(g)

In this case, hydrogen sulfide gas is formed along with ferrous chloride (FeCl2) in the solution.

If the compound is Iron(III) sulfide, the reaction would be:
Fe2S3(s) + 6HCl(aq) -> 2FeCl3(aq) + 3H2S(g)

In this case, hydrogen sulfide gas is formed along with ferric chloride (FeCl3) in the solution.

Therefore, the gas formed when dilute HCl is added to a compound of iron and sulfur would be hydrogen sulfide (H2S).