Answer:
There's different ways to get an accent over a letter. One of them is the cryptic code where you hold down alt then press certain code to a certain type of letter or sign with an accent over it. For instance to put an accent over an o type in alt+0243 ó. On a make there's also codes, but it's different from the cryptic way-á = Opt + e, then a
é = Opt + e, then e
í = Opt + e, then i
ó = Opt + e, then o
ú = Opt + e, then u
For the ñ, hold down the Option key while you type the n; release and type n again.
ñ = Opt + n, then n
To place the diaeresis over the u, hold down the Option key while pressing the u key; release and type u again.
ü = Opt + u, then u
The inverted punctuation marks are achieved as follows:
¡ = Opt + 1
¿ Opt + shift + ?