The correct choice is (b) Mechanical work
To elaborate: A heat engine gives mechanical work as output. In a heat engine, input is given in the form of heat and this heat is converted into mechanical work. The remaining heat which is not converted into work is exhausted.