21. What does the 'static' keyword mean when used with a global variable in C++?
22. Which of the following is used to access the first element of an array in C++?
23. What is the output of the following code: cout << (5 == 5.0); in C++?
24. What is the purpose of the 'break' statement in a switch-case construct in C++?
25. What is the correct way to include a C++ standard library header file named 'vector' in a C++ program?
26. Which operator is used to access the member functions and variables of an object in C++?
27. What is the output of the following code: cout << (10 / 4); in C++?
28. What is the correct syntax to define a function named 'add' that takes two integers as parameters and returns their sum in C++?
29. Which of the following is not a valid data type in C++?
30. What does the 'new' operator return when memory allocation fails in C++?
Read More Section(Introduction to C plus plus)
Each Section contains maximum 100 MCQs question on Introduction to C plus plus. To get more questions visit other sections.