Sodium (Na) - 1s22s22p63s1 Last electron is entering into s orbital this is s block element.
Chromium(Cr) - 1s22s22p63s23p64s23d5 Last electron is entering d orbital it is d block element.
Cerium (Ce) - [Xe]4f15d16s2 This is because of inert pair effect but considered as f block element.
Silicon(Si) -1s22s22p63s23p2 Last electron is entering p orbital it is a p block element.
Hence A to 2; B to 4; C to 1; D to 3.