Domanda di colloquio di PayPal

What is the output for grep 'c[oa]t' *.cpp | more in Unix ? Write a function to convert the string 'abcdabcdac' into 'a3b2c3d2'. Each charater is followed by the number of times in occurs in the original string. What is the order of this function? How would you improve it? Given table A with id, name and age write a query to display distinct pairs or people with same name. Why are indexes used? There was a question based on Diamond inheritance hierarchy in C++. What are static functions in C++? What is the difference between simple function, virtual function and a pure virtual function? What are templates in C++?