Among LiCl,RbCl,BeCl₂, and MgCl₂ the compounds with greatest and least ionic character, respectively are:

A LiCl, RbCl
B RbCl,BeCl₂
C RbCl,MgCl₂
D MgCl2,BeCl₂