cpp interview qsns

Page 1

What are C++ storage classes? What is encapsulation? What does extern "C" int func(int *, Foo) accomplish? How do you find out if a linked-list has an end? (i.e. the list is not a cycle) How do you access the static member of a class? What is constructor or ctor? What are storage qualifiers in C++ ? What is inheritance? What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages? What is Polymorphism? What is reference ? What is "this" pointer? What is the difference between a pointer and a reference? How can you tell what shell you are running on UNIX system? What is diff between malloc()/free() and new/delete? What are the access privileges in C++? What is the default access level? What is destructor? What is passing by reference? How are prefix and postfix versions of operator++() differentiated? What do you mean by Stack unwinding? What is the difference between const char *myPointer and char *const myPointer? Define precondition and post-condition to a member function. What are the conditions that have to be met for a condition to be an invariant of the class? How can I handle a constructor that fails? What are proxy objects? When do use "const" reference arguments in function? Name some pure object oriented languages. Name the operators that cannot be overloaded. What is a node class? How can I handle a destructor that fails?


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.