Solution:
Key idea: By VSEPR theory, the number of electron pairs round the central atom gives its hybridisation, and the lone pairs decide the shape.
Step 1 — Count the electron pairs on Xe.
Xenon has 8 valence electrons. The Xe=O double bond uses 2 of them and the four Xe–F bonds use 4, so 2 electrons (1 lone pair) are left. So xenon has 5 bonded atoms and 1 lone pair, which makes 6 electron pairs in all.
Step 2 — Find the hybridisation and shape.
Six electron pairs need six hybrid orbitals, so xenon is sp3d2 hybridised and the pairs point to the corners of an octahedron. The lone pair takes one corner, with the O atom opposite it and the four F atoms round the middle, so the atoms form a square pyramid.
Therefore, the geometry of XeOF₄ is square pyramidal and the hybridisation of xenon is sp³d².