Ans. A heat engine is a device that converts thermal energy into mechanical work. It operates based on the principles of thermodynamics, specifically the second law. Heat engines typically involve the cyclic transfer of heat from a high-temperature source to a low-temperature sink, producing useful work in the process.