In the laboratory preparation of oxygen, the gas cannot be collected by downward displacement of…