C++ Common Interview Questions
- What is C++?
- What are the differences between C and C++?
- What is object-oriented programming (OOP) and how is it implemented in C++?
- What are the basic data types in C++?
- What is a pointer in C++?
- What is the difference between a pointer and a reference in C++?
- What is a constructor and a destructor in C++?
- What is the difference between a shallow copy and a deep copy in C++?
- What is inheritance in C++ and how is it implemented?
- What is polymorphism in C++ and how is it implemented?
- What is an abstract class in C++?
- What is a virtual function in C++ and how is it used?
- What is an STL in C++?
- What are containers, iterators, and algorithms in STL?
- What is the difference between a vector and an array in C++?
- What is a template in C++?
- What is the difference between a class template and a function template in C++?
- What is operator overloading in C++ and how is it implemented?
- What is exception handling in C++ and how is it used?
- What is a memory leak in C++ and how is it avoided?
- What is the difference between a shallow copy and a deep copy in C++?
- What is the difference between a virtual function and a pure virtual function in C++?
- How does the virtual destructor work in C++?
- What is the diamond problem in C++ and how is it resolved?
- What is the difference between a class and a struct in C++?
- What is an iterator in C++ and how is it used?
- What is a lambda function in C++?
- What is a smart pointer in C++ and how is it used?
- What is the difference between a shared_ptr and a unique_ptr in C++?
- What is the difference between a constant pointer and a pointer to a constant in C++?
- What is the difference between a const reference and a reference to a const in C++?
- What is the difference between a function overloading and a function overriding in C++?
- What is the difference between a namespace and a class in C++?
- What is the difference between stack and heap memory allocation in C++?
- What is the difference between static and dynamic binding in C++?
- What is a pure function in C++?
- What is a recursive function in C++?
- What is the difference between a template class and a template function in C++?
- What is the difference between a friend class and a friend function in C++?
- What is the difference between pass-by-value and pass-by-reference in C++?
- What is a const object in C++ and how is it used?
- What is an inline function in C++?
- What is the difference between a header file and a source file in C++?
- What is a volatile variable in C++?
- What is a mutable keyword in C++?
- What is a default constructor and how is it used in C++?
- What is the most efficient way to read a large text file in C++?
- How can you check if a number is a power of 2 in C++?
- What is a bitset in C++ and how is it used?
- How can you detect and handle stack overflow in C++?
Comments
Post a Comment