Explain how painting of an iron gate prevents it from rusting.
For rusting, the presence of both oxygen and water (or water vapour) is required. The coat of the paint prevents direct contact of iron with air and oxygen and thus prevents it from rusting.