What will be the molarity of 335 ml of solutions containing 1.02 g of magnesium perchlorate. Here what i think divide 335/1.02 to get answer but i am not sure.

Question 2:) how many ml of solute will be dissolved in a 435ml of 5.4%v/v of hci solution. I am thinking divide 435ml/5.4 using the volume percent formula. However i am critical of the way i solved it.

a. Nope, that won't do it.

M = mols/L solution.
mols = grams/molar mass
335 mL = 0.335 L

b.
I'm confused by the question since HCl is a gas and not a liquid. So we need the density of the solution if that's what it is.