There should be no CO2 in beer after it has boiled, or any other dissolved gasses for that matter.
The sugars in a beer post fermentation can very greatly. A oatmeal stout for example will hold a thick head because of proteins, and larger (none fermentable) sugars. A dry light beer will have...