In an unknown liquid, the percentage composition with respect to carbon, hydrogen and iodine is 34.31%, 5.28% and 60.41% respectively.
Let the mass of liquid be 100 g thus, mass of carbon, hydrogen and oxygen will be 34.31 g, 5.28 g and 60.41 g respectively.
To calculate molecular formula of compound, convert mass into number of moles as follows:
[tex]n=\frac{m}{M}[/tex]
Molar mass of carbon, hydrogen and iodine is 12 g/mol, 1 g/mol and 126.90 g/mol.
Taking the ratio:
[tex]C:H:I=n_{C}:n_{H}:n_{I}[/tex]
Putting the values,
[tex]C:H:I=\frac{34.31 g}{12 g/mol}:\frac{5.28 g}{1 g/mol}:\frac{60.41 g}{126.90 g/mol}=6:11:1[/tex]
Thus, molecular formula of compound will be [tex]C_{6}H_{11}I[/tex].