Solution:
- with sp hybridization are linear.
- XeF2 has sp3d hybridization on Xe atom with a linear shape.
- It acquires such shape as fivelone pairs present around the central atom(Xe) undergo repulsions leading to a bond angle of 180°.
- On the other hand, has bent shape.