C++ Programming - MCQ Practice Questions
C++ MCQs — OOP, STL, pointers, templates for coding rounds & IT exams.
100 questions | 100% Free
Q.21Hard
What problem does the Diamond Problem primarily address in multiple inheritance?
Q.22Hard
What will be the output? class Test { public: static int count; }; int Test::count = 0; int main() { Test t1, t2; Test::count = 5; cout << t1.count << " " << t2.count; }
Q.23Hard
An abstract class in C++ is one that contains at least one pure virtual function. Which statement about abstract classes is TRUE?