Answer :

I am not exactly sure if this is the answer you are looking for, but both ionic and molecular compounds require the presence of a nonmetal.