C interview questions – page 8

2,130 questions. Tap “Show answer” to check yourself.

Advertisement
  1. How can you find the nodes with repetetive data in a linked list?

  2. Can we declare destructor as static? Explain?

  3. Write any small program that will compile in "C" but not in "C++"

  4. How can you quickly find the number of elements stored in a a) static array b) dynamic array ?

  5. How the compilers arranges the various sections in the executable image?

  6. What issue do auto_ptr objects address?

  7. What is size of null class?

  8. Is structure can be inherited?

  9. How the V-Table mechanism works?

  10. when can we use virtual destructor?

  11. What is virtual constructor paradigm?

  12. when can we use copy constructor?

  13. Advertisement
  14. Describe functional overloading?

  15. Difference between Operator overloading and Functional overloading?

  16. Difference between Top down and bottom up approaches for a given project ?

  17. What and all can a compiler provides by default?

  18. What are the different operators in C++?

  19. What is the difference between method and message?

  20. What is difference between initialization and assignment?

  21. What about Virtual Destructor?

  22. What are advantages of C++ when comparing with C?

  23. Can inline functions have a recursion? Give the reason?

  24. How Virtual functions call up is maintained?

  25. What is problem with Runtime type identification?

  26. Advertisement
  27. How do you link a C++ program to C functions?

  28. What are the differences between a struct in C and in C++?

  29. What are the differences between a struct and a class in C++?

  30. What are the differences between public, private, and protected access?

  31. What is the difference between a copy constructor and an overloaded assignment operator?

  32. What is the difference between Pointer and a Reference? When you would use them?

Advertisement