This kind of sentence is called an interrogative sentence. An interrogative sentence is a sentence that seeks to elicit a reaction or response from someone.
<h3>
What are other types of sentences?</h3>
Other kinds of sentences are:
Imperative Sentences
Declarative Sentences
Exclamatory sentences etc.
Thus, it is right to state that "Did you go to the demonstration on Sunday?" is an interrogative sentence.