We know,
AgNO3 + NaCl ⇒ NaNO3 + AgCl(s)
The moles of Na+ present:
0.5 L * 0.001 mol/L
= 5 x 10⁻⁴ mol
Moles of Ag+ present:
0.5 * 0.02
= 0.01 mol
The limiting reactant is Na
Therefore, the moles of Ag reacted:
5 x 10⁻⁴
AgCl is insoluble in water; therefore, the AgCl formed will precipitate