The maximum valency of halogen group with respect to oxygen is 7. This is because the halogens have 7 valence electrons, which they can share or donate to form bonds with other elements. Oxygen has 6 valence electrons, so it can form bonds with up to 2 halogens. This is why the maximum valency of halogen group with respect to oxygen is 7.
Option A is incorrect because it is too high. The halogens cannot have more than 7 valence electrons.
Option B is incorrect because it is too low. The halogens can form bonds with more than 1 oxygen atom.
Option C is incorrect because it is not a valid number.
Option D is correct because it is the maximum number of valence electrons that the halogens can have.