Give three examples of upfront financing costs associated with residential mortgage.

Please give three examples of upfront financing costs associated with residential mortgage.  Next, what rule can one apply to determine if a settlement (closing) cost should be included in the calculation of the effective borrowing cost?