Sapient Technical Interview Questions

1. Differentiate between an object and a class?
2. Write a program to find out the size of an empty class?
3. What is a virtual class?
4. What is a friend class?
5. Write a program to show the functionality of a friend class?
6. Why an array always starts with index zero in C++?
7. Write a program to print all the permutations of an entered string?
8. Write a program to copy two strings, A and B? [Given: last few bytes of string A overlaps the first few bytes of string B]

Shared by: Susant Kumar