Chemical compounds in which anions and cations are held together by electrostatic force of attraction are known as ionic compounds. Cations and anions are charged species which are formed by losing and gaining electron(s) respectively to attain the nearest noble gas configuration or stability. Usually metals lose their valence electrons to form cations while non-metals accept electrons and form anions. Being held by a strong electrostatic force of attraction between ions, ionic compounds have high melting and boiling points.
(ii) To form an ionic compound, element Y accepts two electrons from X. Guess the elements X and Y from the options given below: