The correct answer is C. Compressing air in the cylinders.
In a diesel engine, the high temperature needed to ignite the fuel is achieved by compressing air in the cylinders. The air is compressed to a very high pressure, which raises its temperature to around 600 degrees Celsius. This high temperature is enough to ignite the diesel fuel, which is then injected into the cylinders.
Option A is incorrect because the heat from exhaust is not used to ignite the fuel in a diesel engine. The exhaust gases are simply released into the atmosphere.
Option B is incorrect because the battery does not provide the high temperature needed to ignite the fuel in a diesel engine. The battery provides the electrical current that powers the spark plugs in a gasoline engine, but diesel engines do not have spark plugs.
Option D is incorrect because an electrical spark is not used to ignite the fuel in a diesel engine. The fuel is ignited by the high temperature of the compressed air.