Quine
The trick to writing a quine involves writing a string which somehow has a "hole" in it, then outputting that string, with the "hole" filled in with its own quotation. For example in Python the function which quotes a string is called repr, and the % operator fills in a hole which is written as %s in the string, while converting %% to %: