Solution:
Concept: Gas pressure comes from molecules striking the walls; it depends on how often they hit and how hard.
Step 1 — Part (a): temperature doubled at constant volume.
Doubling the absolute temperature doubles the average kinetic energy of the molecules, so they move faster and strike the walls more often and harder. At constant volume the pressure is proportional to the kelvin temperature, so the pressure doubles.
Step 2 — Part (b): volume halved at constant temperature.
The same number of molecules now moves in half the space, at the same average speed. Twice as many strike each square centimetre of wall every second, so by Boyle's law the pressure doubles.
Watch out: In (a) 'doubled' must mean the kelvin temperature; doubling a Celsius temperature does not double the pressure.
Therefore, the pressure is doubled in both cases: in (a) because the molecules hit harder and more often, in (b) because more molecules hit each unit area.