Question 1 of 25
Hints left: 3
Q1
What is the correct way to represent octal values in C++?
Q2
What does the 'auto' keyword do in C++?
Q3
Which of the following is a valid way to initialize a variable in C++?
Q4
What is the result of the following expression in C++: 7 % 3?
Q5
What is the range of values for a 'signed char' data type in C++?
Q6
What will be the output of the following code: cout << sizeof(char); in C++?
Q7
What is the data type of the expression: 3.14f in C++?
Q8
What will be the output of the following code: cout << (5 != 2); in C++?
Q9
What is the size of a 'long double' data type in C++?
Q10
What is the correct way to represent hexadecimal values in C++?
Q11
What is the maximum value that can be stored in an 'unsigned short int' data type in C++?
Q12
Which of the following is not a valid data type in C++?
Q13
What is the correct way to declare a constant variable named 'PI' with a value of 3.14159 in C++?
Q14
Which keyword is used to define a constant in C++?
Q15
Which of the following is not a valid variable name in C++?
Q16
What is the correct data type for storing a single character in C++?
Q17
What is the correct way to declare a pointer to an integer in C++?
Q18
Which of the following is the correct way to declare a constant 'PI' with a value of 3.14159 in C++?
Q19
What is the output of the following code: `cout << (true || false);` in C++?
Q20
What does the 'volatile' keyword do in C++?
Q21
What is the data type of the expression: 5.2f in C++?
Q22
What is the size of the 'bool' data type in C++?
Q23
Which of the following is an example of a floating-point data type in C++?
Q24
What will be the result of the expression: 10 / 3 in C++?
Q25
What is the maximum value that can be stored in an 'unsigned int' data type in C++?