Total Questions : 30
Expected Time : 30 Minutes

1. What is the purpose of the 'std::algorithm' header in C++?

2. Which header file is used for input and output functions in C++?

3. What is a smart pointer in C++?

4. Explain the difference between 'stack' and 'heap' in C++ memory management.

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

6. What is the RAII (Resource Acquisition Is Initialization) principle in C++?

7. What does the 'sizeof' operator return in C++?

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

9. Explain the concept of move semantics in C++.

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

11. Explain the difference between 'malloc' and 'new' in C++.

12. What is the result of the expression '5 + 3 * 2' in C++?

13. What does the '>>' operator do in C++?

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

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

16. How is polymorphism achieved in C++?

17. What is the value of 'true' in C++?

18. Explain the use of 'std::move()' in C++.

19. In C++, what is the 'sizeof' operator used for?

20. How do you declare a constant in C++?

21. Which data type is used to store characters in C++?

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

23. How are header files used in C++?

24. How is a reference different from a pointer in C++?

25. What is the purpose of the 'virtual' keyword in C++?

26. What does the 'endl' manipulator do in C++?

27. What is the purpose of 'void' in a function declaration in C++?

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

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

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