Answer: The density of the ice cream and buoyant.
Step-by-step explanation:
The density of the ice cream plus buoyant will cause the carbonation in root bear will cause gravity to push down on the ice cream and buoyant pushes the ice cream upwards, the ice cream floats because the buoyant force is greater than the weight of the ice cream.