The other pattern used to form questions in English is called inversion. With this pattern, you must recognize the subject and the verb of the sentence, and reverse their order. In between the reversed subject and verb, you place a dash. Here are some basic examples:
Vous parlez français. (You speak French.) becomes...
Parlez-vous français? (Do you speak French?)
Tu aimes l'histoire. (You like history.) becomes...
Aimes-tu l'histoire? (Do you like history?)
The rest of the sentence remains the same, making the change easy to use with basic sentences. There is one additional rule with this form, involving only those sentences whose subjects are il, elle, or on. In that case, you add a dash, a t, and another dash in between the reversed subject and verb, instead of just a dash. For example...
Il mange une pizza. (He's eating a pizza.)
Mange-t-il une pizza? (Is he eating a pizza?)
This is done entirely for pronunciation, as the t sound makes it much easier to flow between the verb and the vowel at the beginning of the subjects il, elle, and on. It is not used with ils or elles because their verbs tend to end in a "t" already, making the additional "t" unnecessary.
The final part to inversion comes with verbs that have multiple parts. For example, in the passé composé, you have two parts to the verb, such as "vous avez dit." In compound verbs, you also have multiple verbs, such as "tu aimes nager." In cases like this, you only reverse the order of the first verb, or first part of the verb, and leave the rest as they are. Thus, "vous avez dit..." becomes "avez-vous dit...?" and "tu aimes nager" becomes "aimes-tu nager?" This is very similar to the English pattern of "You [do] understand" becoming "Do you understand?"
Inversion is more of a formal question pattern, though it is still used quite often, primarily in writing. It is also used for its brevity, as it does not require any additional words, so it is often seen in places where space is a concern, such as on a cell phone.