Question
Question: Arrange the following nitrogen containing compounds in order of basicity?  and Z is least basic because N on the compound Aniline is participated in delocalization over the aromatic ring and it is less readily available for protonation as compared to Y.
Therefore the order of basicity is X > Y >Z
So, the correct answer is Option A.
Note: The basicity of heterocyclic amines depends on the position of the nitrogen atom electron pair, its hybridization, and whether or not it is possible to stabilise the resonance. Basicity is expressed by means of the Kb values determined by the amine reaction with water. An alternative basicity measure is pKb, which is −logKb. A big Kb and a small pKbshows a strong base. The acidity of their conjugate acids also reflects the basicity of amines. A strong base, shows smallKa value and a large pKa by its weak conjugate acid.