31. Which of the following is the correct syntax for declaring a pointer to an integer in C++?
32. What is the output of the following code: cout << (5 < 2) ? "True" : "False"; in C++?
33. In C++, what is the purpose of the 'endl' manipulator?
34. What is the result of the expression: sizeof(char) in C++?
35. What does the 'const' keyword signify when used with a member function in a C++ class declaration?
36. Which operator is used to dereference a pointer in C++?
37. What is the correct way to include the C++ standard input/output library header file in a C++ program?
38. What is the output of the following code: int x = 5, y = 2; cout << x / y; in C++?
39. What is the correct syntax to define a class named 'Rectangle' with private member variables 'length' and 'width' in C++?
40. What is the output of the following code: cout << "Hello\nWorld"; 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.