Sharpen Your CPP Skills with Mixed MCQs part one

C++ Skills with Mixed MCQs

1. What does a pointer variable hold in C++?

2. Which of the following is used to dynamically allocate memory in C++?

3. What does STL stand for in C++?

4. What is the 'this' pointer in C++?

5. Which symbol is used to declare a destructor in C++?

6. Which of the following is an access specifier in C++?

7. What is a friend function in C++?

8. What is 'cin' used for in C++?

9. Which operator is used in C++ to define a function outside a class?

10. What is the default access specifier for members of a class in C++?

11. Why are inline functions used in C++?

12. What is a reference variable in C++?

13. Which keyword allows a function to be overridden in derived classes in C++?

14. Which operator is used to free the memory allocated by 'new' in C++?

15. What is a constructor in C++?

16. What does overloading mean in C++?

17. What does polymorphism enable in C++?

18. What is multiple inheritance in C++?

19. Which keyword is used in C++ to allocate memory dynamically?

20. What is a pure virtual function in C++?

1 2 3 4

Post a Comment

Your comment will be visible after approval.
© TechTestLog. All rights reserved. Premium By Raushan Design
//My script