a.

Reaction a
In the given reaction,
The bonds broken are:
( = 285 kJ/mol) and H-OH ( = 498 kJ/mol).
The bonds formed are:
role="math" localid="1648188865190" ( = 393 kJ/mol) and H-Br ( = 368 kJ/mol).
Since the enthalpy of the reaction is positive, the given reaction is endothermic.
b.

Reaction b
In the given reaction,
The bonds broken are:
(= 435 kJ/mol) and Cl-Cl (= 242 kJ/mol).
The bonds formed are:
(= 351 kJ/mol) and H-Cl ( = 431 kJ/mol).
Since the enthalpy of the reaction is negative, the given reaction is exothermic.