The correct statement is:
They have valence electrons in the same energy level.
Nitrogen and oxygen are both in the second period of the periodic table. They have their valence electrons in the same energy level (the second energy level), but they have different numbers of valence electrons: nitrogen has 5 and oxygen has 6. Therefore, the other options listed are not accurate.