Solution:Elements in the same group (vertical column) of the periodic table have similar chemical properties because they have the same number of valence electrons. Looking at the options:
(a) Ne and Ar are noble gases (Group 18), but Na (alkali metal, Group 1) and Mg (alkaline earth metal, Group 2) are not.
(b) He is a noble gas (Group 18), Li is an alkali metal (Group 1), Mg is an alkaline earth metal (Group 2), and K is an alkali metal (Group 1).
(c) H is in Group 1, Li is in Group 1, Mg is in Group 2, and Ca is in Group 2.
(d) H, Li, Na, K are all alkali metals and belong to Group 1.
Therefore, the correct answer is H, Li, Na, K.