Solution:Jet engines and rockets work on the same principle. They produce thrust through an internal pressure difference and as explained by Newton's third law of motion, eject exhaust gases in an equal and opposite direction.
The main difference between them is that a Jet gets the oxygen to burn its fuel from the air while a rocket carries its own supply of oxygen (oxidiser) and fuel in the form of liquid or solid propellants which allows it to operate in space.