"Do you like a glass?"
Translation:Magst du ein Glas?
The order :)
In german, the correct order when asking a question is "Magst du ein Glas?"
Other examples: "Willst du eine Katze?" "Trinkst du ein Bier?"
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!
Gefällt dir ein Glas isn't accepted, I just did it. Seems like it should be because they asked do you like a glass, not would you like a glass.