11. Which keyword is used to define a constant in C++?
12. What is the output of the following code: int x = 5, y = 2; cout << x / y;
13. What is the correct way to declare a pointer in C++?
14. What is the keyword used for inheritance in C++?
15. What function is used to return the length of a string in C++?
16. What is the output of the following code: int x = 10; cout << "Value of x is: " << x++ << endl;?
17. Which of the following is not a valid C++ identifier?
18. What is the result of the expression: sizeof(int) in C++?
19. Which C++ feature allows a function to call itself?
20. What is the correct syntax to dynamically allocate memory for an array of integers 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.