C++ MCQ Test: C++ MCQs - Practice Questions
1. What is a lambda expression in C++?
2. What is the purpose of 'static' keyword in C++?
3. What does the 'endl' manipulator do in C++?
4. How does exception handling work in C++?
5. What is the purpose of the 'namespace' keyword in C++?
6. How do you declare a variable in C++?
7. In C++, how do you initialize an array of integers with values 1, 2, and 3?
8. What is the purpose of 'void' in a function declaration in C++?
9. What is the purpose of 'friend' functions in C++?
10. What is the 'nullptr' keyword used for in C++?