Group the following as linear and non-linear molecules :
H2O, HOCl, BeCl2, Cl2O
BeCl2 has a linear structure because Be has no lone pairs. Thus, the electrons on the chlorides will try to stay far apart from each other, since their corresponding electrons repel each other (while experiencing no deflection from electrons on a central atom).
HOCl is also non-linear in structure. It is unstable in form and, the Cl atom has sp3 hybridized, occurs as Cl-O- ion which has a linear structure.
H2O has a V-shaped structure. It results from the sp3 -hybridization of O -atom.
Cl2O has a V-shaped structure. The oxygen atom undergoes sp3 hybridization.