Both of the answers can be found in the Help section under "On-line Books", on QC/TD. Unless these are test or interview questions I would suggest you read the on-line books and then ask a more in-depth question. We are not here to train you, but to assist you when you need help which can not be found elsewhere.
Success is the ability to go from one failure to another with no loss of enthusiasm.
~ Winston Churchill ~