The correct order of electron affinity of B, C, N, O is
O>C>B>N
O140.9>C122.3>B83>N0 Value of electron affinity increases on going from left to right in periods but the value of electron affinity of Vth A elements is less than that of IVth A element, this is due to half filled p-orbitals presence.