Ions of an element of group 1 participate in the transmission of nerve signals and transport of sugars and amino acids into cells. This element imparts yellow colour to the flame in flame test and forms an oxide and a peroxide with oxygen. Identify the element and write chemical reaction to show the formation of its peroxide. Why does the element impart colour to the flame?

Yellow colour flame in flame test indicates that the alkali metal must be sodium. It reacts with O2 to form a mixture of sodium peroxide, Na2O2 and sodium oxide Na2O.
4Na+O22Na2O (Minor)
2Na2O+O22Na2O2(Major)
2Na+O2Na2O2
Ionisation enthalpy of sodium is low. When sodium metal or its salt is heated in Bunsen flame, the flame energy causes an excitation of the outmost electron which on reverting back to its initial position gives out the absorbed energy as visible light and complementary colour of absorbed colour from the light radiation is seen.
That is why sodium imparts yellow colour to the flame.