These questions are the basics of C++ and must be known by those who wish to pursue a future in development, especially with APIs and OS development. The answers are curated from multiple sources to allow maximum room for variety in replies. More questions based on various parts, components, features and applications of the programming languages can also be asked in interviews depending on the designations and the companies.
Other questions on the C++ interview can be based on copy constructors, friend class, and functions, disadvantages of C++ and ways to work around it, operating systems programming and more. Since it is much suitable for large projects, knowledge of basics is usually expected of the interviewee. Answering these questions with real-world applications would be enough to demonstrate your knowledge and one can also enrich their replies with their own experiences.