this answer is correct because in Mg the outermost electons are tightly bonded because of the nuclear force of attraction and cannot be excited to the higher energy level by the energy provided by the flame and hence it does not respond to the flame test.