Общий вопрос (a):
a. Did they write a test?
Альтернативный вопрос (b):
b. Did they write a test or a dictation?