In (a) the water that makes up the ice cube is the system.
The ice cube absorbs heat from the surroundings as it melts, so
∆H is positive and the process is endothermic.
In (b) the system
is the 1 g of butane and the oxygen required to combust it. The
combustion of butane in oxygen gives off heat, so ∆H is negative
and the process is exothermic.