The general characteristic of English questions is the use of an auxiliary verb in the inversion at the beginning of the sentence. Let's see how this auxiliary works depending on the type of question you're using:

YES/NO questions

They need this kind of answer so they are also called "total" questions. The structures is AUXILIARY+SUBJECT+VERB.

Is he in our class? → Yes, he is.
Do they speak German? → No, they don't
Did you study English here last school year? → Yes, I did
Can you understand me? → Yes, we can.
Are you coming home early today? → Yes, I am.

Partial questions

These are also called wh-questions, when you only ask something in particular, that is, a "part" of the sentence; these questions start with WH-words but you also have the inversion.

WHERE was he born → He was born in Murcia.
HOW MANY children have you got? → I've got 2, a boy and a girl.
HOW MUCH sugar do you need? → Just a little.em>
WHY did you phone her yesterday? → Because I wanted to meet her.

Here you are some links with exercises: exercise 1 - exercise 2 - exercise 3 - exercise 4 -