The correct options are
A Be
B Mg
Beryllium(Be) and Magnesium(Mg) can not give flame test. These have small size and strongly bind their electrons. Thus, these have high ionization enthalpies and the thermal energy of flame is not sufficient to excite their electrons.