A compound has cubic close packing (ccp) arrangement of X. Its unit cell structure is shown below. The empirical formula of the compound is

From the IIT-JEE 2012 · Paper 1 paper. Try it, check your answer, then read the worked solution below.
A compound has cubic close packing (ccp) arrangement of X. Its unit cell structure is shown below. The empirical formula of the compound is

Try it yourself first, then check your working against this.
Worked solution
X (ccp). 8 corners × + 6 faces × = 4.
M. 1 at the body centre + 4 edge centres × = 2.
Formula. , i.e. .
(B)
Concepts used: corner, face, edge and body contributions
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Crystal lattices and unit cells), each with a worked solution.
Timed, in the real format, and marked the moment you submit.