Answer :
a) In the flame test, when an ionic compound is heated, the valence electrons absorb energy from the flame and get excited to a higher energy level. While returning back to their ground state, the absorbed energy is emitted in the form of a color. This color is unique to the metal which helps in the identification of the metal.
Therefore the color in a substance arises from "Absorption and Emission" which are closely related processes
b) We have discussed above that when the solution is heated, the electrons in metal absorb energy and get excited to a higher level.
Therefore when the solution is heated "an electron absorbs energy and it makes a transition to a higher energy orbital."
c) This absorbed energy is emitted as the electron comes to lower energy level. The wavelength of the emitted radiation falls in the visible spectrum of light. As a result a color can be seen.
Therefore when the color appears in the flame "an electron emits energy and it makes a transition to a lower energy orbital."