1. What is the correct keyword to declare a variable in C++?
2. Which of the following is a valid variable name in C++?
3. What is the data type of the variable 'x' in the following declaration: double x = 3.14;?
4. Which of the following is not a primitive data type in C++?
5. What is the maximum value that can be stored in an 'int' data type in C++?
6. What is the size of a 'char' data type in C++?
7. What is the result of the following expression in C++: 5 / 2?
8. Which operator is used to find the size of a data type in C++?
9. What is the correct way to declare a constant in C++?
10. What will be the output of the following code: cout << (true && false); in C++?
Read More Section(Variables and Data Types in C plus plus)
Each Section contains maximum 100 MCQs question on Variables and Data Types in C plus plus. To get more questions visit other sections.