The correct option is C IV>I>III>II
Aniline itself act as lewis base as the nitrogen of −NH2 can donate electron pairs. Its basic strength increases by presence of alkyl group which shows +I effect. Addition of −CN or −NO2 decrease its basic strength as they both show −M effect. −M effect of nitro group is higher than nitrile group. Therfore the order of strength is IV>I>III>II