What triggers the release of carbon dioxide gas in baking powder and baking soda?

a. Heat only
b. Moisture only
c. Moisture and acid combined
d. Sugar and fat