She put the books on the table.
Did she put books on the table?
The sentence is in a Simple Past Tense, so we used
Did+subject+verb
In order to make an affirmative sentence into the interrogative sentence.
Did is used before the singular subject.