Final answer:
A frictionless piston-cylinder device is used to convert heat energy into mechanical work.
Step-by-step explanation:
A frictionless piston-cylinder device is a device that is used to convert heat energy into mechanical work. This device consists of a piston attached to a cylinder, where a gas is heated and expands, pushing the piston and performing work. The absence of friction in this device allows for efficient conversion of heat energy into mechanical work.