Electrolytes are ionic compounds that conduct electricity
Sucrose is an covalent compound and it does not ionize.
$\ce{KNO3}$, $\ce{NaOH}$ are good ionic compounds hence the can form electolytic solutions.
Ammonium acetate also can ionize.
Hence the answer is 2