Total Questions : 20
Expected Time : 20 Minutes

1. What is the purpose of the 'inline' keyword in C++?

2. What is the difference between 'override' and 'final' in C++?

3. What is the 'auto' keyword used for in C++?

4. What is the 'cin' object used for in C++?

5. What is the syntax for a single-line comment in C++?

6. How does exception handling work in C++?

7. What is the 'virtual' keyword used for in C++?

8. What is a destructor in C++?

9. How is polymorphism achieved in C++?

10. How is exception handling done in C++?

11. What does the 'this' pointer refer to in C++?

12. What is the purpose of the 'const' keyword in C++?

13. What is the purpose of 'cout' in C++?

14. What is the difference between 'const' and 'constexpr' in C++?

15. How is operator overloading implemented in C++?

16. What is the purpose of the 'const_cast' operator in C++?

17. What is the purpose of the 'auto' keyword in C++11?

18. How do you declare a variable in C++?

19. How is a copy constructor different from an assignment operator in C++?

20. Explain the difference between pass by value and pass by reference in C++.