Step-by-step explanation:
The sentence "What were you doing?" is in the past continuous tense. It is formed by using the past tense of the verb "to be" (in this case, "were") followed by the present participle of the main verb ("doing"). The past continuous tense describes an ongoing action that was happening in the past. Therefore, the correct option is (D) Past Continuous.