It's important to know the difference between a molecular compound and an ionic compound.
Ionic compounds are formed by the interaction between a metal and a non-metal, the first ones have the property of easily losing electrons, while non-metals have the property of easily gaining electrons.
In this case, C6H12O6 is a molecular compound because it's not using ionic interaction.
Therefore, the third option is correct.