The correct choice is (a) ns^2np^5
To explain: The elements of group 17 have seven electrons in the valence shell and hence their general electronic configuration is ns^2np^5, i.e., ns^2npx^2npy^2npz^1 where n = 2-6. Thus, they contain one electron less than the nearest inert gas configuration.