Replace the word 'the alarm' with correct pronoun: When the alarm rang, I turned the alarm off.
Replace the word 'the alarm' with correct pronoun: When the alarm rang, I turned the alarm off.
Explanation
The alarm is a singular, non-living thing, so the correct pronoun is "it."
Correct sentence: When the alarm rang, I turned it off.