C4Swimmers Newsletter  

(Interview) Some C++ Interview Questions

Interview: Some C++ Interview Questions

1. What is a void return type?
2. How is it possible for two String objects with identical values not to be equal under the == operator?
3. What is the difference between a while statement and a do statement?
4. Can a for statement loop indefinitely?
5. How do you link a C++ program to C functions?
6. How can you tell what shell you are running on UNIX system?
7. How do you find out if a linked-list has an end? (i.e. the list is not a cycle)
8. How do you write a function that can reverse a linked-list?
9. Can a copy constructor accept an object of the same class as parameter, instead of reference of the object?
10. What is a local class?
11. What is a nested class?
12. What are the access privileges in C++? What is the default access level?
13. What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages?
14. How do you access the static member of a class?
15. What does extern int func(int *, Foo) accomplish?