What happens to the energy in the bonds in glucose?

The energy is transferred to oxygen.
The energy is transferred to carbon dioxide.
The energy is transferred to water.
The energy is transferred to ATP.