Answer:
The electrolyte is usually a solution of water or other solvents in which ions are dissolved. Molten salts such as sodium chloride are also electrolytes. All the Ionic compounds could go for electrolysis BUT there is one condition that is when they are in molten state or when in solution