Both the ¿?
and ¡!
signs encapsulate statements that make an exclamation or a question or both. Both signs have the same rules.
In the usage of both it is very important to have the following considerations:
- They have to be used at the beginning and the end of the statement.
- It is mandatory in spanish to use them. It will not be ignored as in the spelling of other languages that use only the ending mark because they have other grammatical rules that help identify the beginning of the statement (question or exclamation)
For example in spanish you can ask:
¿Estás comiendo en el restaurante?
and the equivalent in english would be Are you eating at the restaurant?
in this case in english you have the word order that lets you know that it is a question. You can formulate exactly the same sentence in spanish Estás comiendo en el restaurante.
that would have another meaning and tone.
- You never put a point at the end of the statement. The question or exclamation mark already delimits the end.
It was implemented in 1754 on the second edition of Ortografía de la real academia because there are many cases in which you can't tell if the statement is a question or not, even if the ending has a mark, you won't know where the question begins. For instance:
Susana se fue de la casa muy tarde y después se fue a donde sus amigos por la noche?
In this case what is the question? did Susana left the house late? Did she go to her friends house? Did she go at night?
Possible Fix:
Susana se fue de la casa muy tarde, después, ¿se fue a donde sus amigos por la noche?
There are other alternative fixes. But I'm too lazy to write them.
Nota: Please remember that is important to know that these are statements when inside a sentence, and sentences when on their own!!!
Examples:
Statement form:
Susana, ¿has decidido qué vas a hacer?
Pepe, ¡cuánto me alegro de que hayas venido!
Si no responde, ¿qué le vamos a decir?
Sentence form:
¿Has decidido qué vas a hacer, Susana?
¡Cuánto me alegro de que hayas venido, Pepe!
¿Qué le vamos a decir si no responde?
There are other uses for the inverted question marks, for instance to express irony or doubt, but in those cases it is mandatory the use of parentheses.
Examples:
José Pérez Segovia es el presidente (?) de la asociación.
Tendría mucha gracia (?) que llegara a la cita con un día de retraso.
And exclamation marks to express surprise or irony:
Un joven de treinta y seis años (!) fue el ganador del concurso de composición.
Está más gordo que nunca, pero dice que sólo pesa ochenta kilos (!) en la báscula de su casa.
If someone finds better examples don't hesitate to edit the answer.
Addressing your specific questions:
There is no preference between the statement form and the sentence form. There must always be a comma before the Question in a statement form, or it will change the tone of the sentence. Contrary to what Randolf said. The comma is required if the question is in a statement form, you can read the sources for a more specific explanation.
It is okay to use the comma, but you can also make it a stand alone sentence. Like this:
Eso es maravilloso. ¿Verdad?
Sources:
Profesor en línea
Uso de los signos de exclamación e interrogación
Signos de puntuación
¿
should be two separate questions though they're obviously related and are fine mentioning other. Otherwise we risk the TL;DR effect. All the usage subtleties belong here. All the reasoning behind belong on the "origin" question.