Normally, spitting out the carb is said to be due to a lean mixture and popping out the exhaust takes place when the mixture is too rich.
It is easier to understand the exhaust popping as that takes place when unburned fuel ignites in the exhaust. [ Made worse when there is a leak which...