Final answer:
The correct answer is 'switched'.
Step-by-step explanation:
The correct answer is switched.
In this sentence, the action of realizing that the program had already started comes after the action of turning on the TV. Therefore, we use the past simple tense 'switched'.
Example: When I switched the TV on, I realized that the program had already started.
Learn more about Verb Tenses