Concept:
This sentence deals with past tense temporal clauses. When an ongoing background action in the past is suddenly interrupted or intersected by a specific, shorter completed event, we use two different tenses:
• Past Continuous Tense ($S + \text{was/were} + V\text{-ing}$): Reserved for the continuous, ongoing background activity.
• Simple Past Tense ($S + V_2$): Reserved for the sudden action that interrupts the ongoing background scenario.
Step 1: Analyze the timeline anchor of the sentence.
The sentence starts with the dependent clause: "When the principal entered the class".
The verb 'entered' is in the Simple Past tense ($V_2$). This firmly establishes that the entire scene takes place in the past. This allows us to eliminate options written in the present tense:
itemize
Option (C) 'writes' (Simple Present) is incorrect.
Option (D) 'is writing' (Present Continuous) is incorrect.
itemize
Step 2: Determine the relationship between the two past actions.
We are left with option (A) 'wrote' and option (B) 'was writing'. Let us look at how the actions interact:
The act of writing on a blackboard is a continuous activity that takes time. The principal entering the room happens at a specific single moment during that ongoing writing process.
Using the simple past 'wrote' in both clauses would imply that the student started and finished writing on the board *as a consequence of* or *at the exact same instance* the principal walked in, which distorts the natural sequence of events.
Instead, the student was already in the middle of writing on the board when the principal entered. This background action requires the Past Continuous tense form: 'was writing'. This perfectly aligns with option (B).