Question 1 of 25
Hints left: 3
Q1
Which keyword is used to define a constant in C++?
Q2
Which of the following is used to access the first element of an array in C++?
Q3
Which of the following is not a fundamental data type in C++?
Q4
What is the result of the expression: sizeof(int) in C++?
Q5
What function is used to return the length of a string in C++?
Q6
What is the purpose of the 'break' statement in a switch-case construct in C++?
Q7
What is the extension of a C++ source file?
Q8
What is the correct way to declare a pointer in C++?
Q9
Which C++ feature allows a function to call itself?
Q10
What is the keyword used for inheritance in C++?
Q11
What is the output of the following code: int x = 5, y = 2; cout << x / y;
Q12
What function is used to output data to the console in C++?
Q13
What is the correct syntax to dynamically allocate memory for an array of integers in C++?
Q14
What is the correct way to include a C++ standard library header file named 'vector' in a C++ program?
Q15
What is the syntax for a single-line comment in C++?
Q16
What keyword is used to define a class in C++?
Q17
Which header file is needed to use the 'cin' and 'cout' objects in C++?
Q18
What is the output of the following code: int x = 10; cout << "Value of x is: " << x++ << endl;?
Q19
What does the 'endl' manipulator do in C++?
Q20
What does the 'static' keyword mean when used with a global variable in C++?
Q21
What does the 'cin' object in C++ represent?
Q22
Which of the following is not a valid C++ identifier?
Q23
What is the output of the following code: cout << (5 > 2) ? "True" : "False";
Q24
What is the output of the following code: cout << (5 == 5.0); in C++?
Q25
In C++, what operator is used to allocate dynamic memory?