"Do you like a glass?"
Translation:Magst du ein Glas?
One principle to be kept in mind that when it's a yes or no question,verb is ought to be placed at the beginning of a sentence. So lets make an outline of the types of sentences generally in German ;). Verb placed at the first place: Imperative sentence and yes or no sentence. Verb placed at the second place:WH-questions and declarative sentence. Good luck!