C++ Interview Questions

If you have to interview a C++ candidate, try asking these questions. You should be able to measure his C++ proficiency.
  • Question 1 Implication of having a pointer/reference member variable.
  • Question 2 Implication of having a virtual function.
  • Question 3 Implication of inheriting from a virtual base class and non-virtual base class.
  • Question 4 Using dynamic_cast operator.
  • Question 5 What happens if you delete a NULL pointer or an invalid pointer?
  • Question 6 Overloading a function accross class hierarchy boundary.
  • Question 7 Sequence of events for dynamic class instance
  • Question 8 Cases where you must use "member initializer list" for initializing member variables.
  • Question 9 The order of class member variable construction.

Copyright © 2008 SpiralSpace All rights reserved.