The correct options are
A endothermic
B exothermic
In reaction I, heat is written on the reactant side which means that heat is required for the reaction to take place. In other words, heat is absorbed in the reaction. Therefore, reaction I is endothermic.
In reaction II, heat is written on the product side which means that heat is liberated in the reaction. Therefore, reaction II is exothermic.