The document lists 50 fundamental questions about C++ concepts including memory management functions like realloc() and free(), object-oriented programming concepts like inheritance, polymorphism, and virtual functions, templates, iterators, references versus pointers, classes versus structures, and more. It covers questions about the C++ language features, standard library, and common programming techniques.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
88 views2 pages
Fundamental C++ Questions
The document lists 50 fundamental questions about C++ concepts including memory management functions like realloc() and free(), object-oriented programming concepts like inheritance, polymorphism, and virtual functions, templates, iterators, references versus pointers, classes versus structures, and more. It covers questions about the C++ language features, standard library, and common programming techniques.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
Fundamental C++ Questions
1. What is the difference between realloc() and free()?
2. What is function overloading and operator overloading? 3. What are some advantages of inheritance? 4. How does one create a pure virtual function? 5. Why are pure virtual functions used if they don't have implementation and when does a pure virtual function become useful? 6. What are virtual destructors? 7. What is meant by early binding and late binding? How it is related to dynamic binding? 8. What is a reference variable? How does one create a reference variable? 9. What are some differences between reference variables and pointers? 10. What is the difference between an array and a list? 11. What is a template? 12. What is a constructor? 13. What are some ways of calling a constructor? 14. Explain differences between new() and malloc()? 15. What is the difference between a class and a structure? 16. What is abstraction? 17. What are namespace? Give example. 18. What is the difference between an object and a class? 19. What is a class? 20. What is a friend function? 21. What is a virtual function? 22. What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator. 23. What is the scope resolution operator? 24. Why are arrays usually processed with a for loop? 25. What is the difference between char a[] = “string”; and char *p = “string”;? 26. What is the “auto” keyword good for? 27. What is a default constructor? 28. What is a conversion constructor? 29. How often should one use multiple inheritance? 30. When is a template a better solution than a base class? 31. What is a mutable member? 32. What is an explicit constructor? 33. What is the Standard Template Library (STL)? 34. What problem does the namespace feature solve? 35. What is a modifier? 36. What is an accessor? 37. What is the difference between a template class and a class template? 38. What is a dangling pointer? 39. What is the difference between mutex and binary semaphore? 40. What is polymorphism? 41. What is an overflow error? 42. What are some disadvantages of C++? 43. What is a callback function? 44. What is a smart pointer? 45. What are the differences between method overriding and method overloading? 46. What is the difference between delete and delete[]? 47. What is memory alignment? 48. How do I allocate/deallocate an array of things? 49. What is a memory leak? 50. What are some advantages/disadvantages of using friend functions?