The correct option is B III>II>IV>I
In aqueous medium, in general, amines are more basic than ammonia.
Further, among the amines, secondary amines are most basic and then tertiary amines and then primary amines.
So the order is as follows : secondary > tertiary > primary > ammonia
Now, we give the reasons :
first amines are more basic than ammonia because of +I effect of the alkyl groups in amines.
+I effect increases basicity.
Next we may think that the order should be tertiary amines > secondary amines > primary amines
But this is not true in aqueous medium.
In water, we also have to consider the factor of solvation of the conjugate acid.
The conjugate acid of tertiary amine is less stable than the conjugate acid of secondary amine due to steric effect.
As a result, secondary amines are more basic than tertiary amines.
So, C is correct