Group the following as linear and non-linear molecules.

H2O, HOCl, BeCl2,Cl2O


The structure of the given molecules are
Therefore, only BeCl2 is linear and rest of the molecules are non-linear.