The correct option is B Ba, Ca and Sr
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.
Ca, Ba and Sr impart brick red, apple green and crimson colours respectively to the flame.