The molecular formula for sugar is C12H22O11 and it’s molar mass is 342.3 g/mol
This means that 1 mol of sugar weighs 342.3 g
Therefore we need to find how many moles are in 1 g of sugar
342.3 g Of sugar contains 1 mol
Therefore 1 g of sugar contains - 1 g / 342.3 g/mol = 0.0029 mol
There are 0.0029 mol of sugar in 1 g