when it is a salt, like NH4NO3, it would.
you could have picked D or A by realizing that in order for the compound to be neutral its fragments had to have equal and opposite charges.
Also you can think of each fragment.
NH4, N would have a positive charge when bonded to 4 hydrogen atoms. You can figure this out by designating formal charges. N has 5 valence electrons - 4 electrons from bonds = +1, while the Hs have no charges. Thus, the overall fragment will have a +1 charge. (hope this makes sense)