Cognizant interview question

Explain the properties of object oriented programming with example. What is the best sorting algorithm you know and right down the code for it. Explain ACID properties of databases. And at the end there was an aptitude question.