11. What is the correct syntax to declare and initialize a variable 'age' of type 'int' with a value of 25 in C++?
12. What is the range of values for a 'short int' data type in C++?
13. What does the 'auto' keyword do in C++?
14. Which of the following is an example of a floating-point data type in C++?
15. What is the correct way to represent hexadecimal values in C++?
16. What is the correct data type for storing a single character in C++?
17. What will be the output of the following code: cout << sizeof(char); in C++?
18. Which of the following is a valid way to initialize a variable in C++?
19. What is the maximum value that can be stored in an 'unsigned int' data type in C++?
20. Which of the following is the correct way to declare a constant 'PI' with a value of 3.14159 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.