a) HCl solution - the hydrogen ion combines with water molecule to form the hydronium molecule which is responsible for acidity. The chloride ion is also found in solution.
pH = -log [H+] = -log(10^-3) = 3
b) NaCl 10-3 g. The solid dissocates in water forming the Na+ and Cl- ions. None of these ions affect pH