Rank the following protons in order of acidity
the c hydrogen is more acidic because it is stacked between two electron withdrawing carbonly groups, and after the loss of hydrogen the carbanion is more stabilized, where as the same thing is not observed in case of d hydrogen the carbanion is in conjugation but only with one of carbonly group followed by b and c hydrogen.

now in case of second example, e is more acidic because it is allylic as well as next to the carbonyl group which means the anion after loss of hydrogen is more stabilized as come to f and g.