Difference between pre callback and post callback

Thanks for info. Can you please provide some sample code and some scenario where we can use it.