Following quiz provides Multiple Choice Questions (MCQs) related to C++ . You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - How can we make an abstract class in C++? |
|
Show Answer |
Answer is : Option B |
Q 2 - Select the correct answer from the following which is not a class member in C++? |
|
Show Answer |
Answer is : Option A |
Q 3 - Select the correct output of the following C++ program? #include<iostream> using namespace std; class learn { static int i; int j; }; int learn::i; int main() { cout << sizeof(learn); return 0; } |
|
Show Answer |
Answer is : Option B |
Q 4 - Select the correct answer for the logical AND operator in C++? |
|
Show Answer |
Answer is : Option D |
Q 5 - Select the correct answer for how much memory does void take in C++? |
|
Show Answer |
Answer is : Option A |
Q 6 - Select the correct syntax for header files in C++? |
|
Show Answer |
Answer is : Option D |
Q 7 - If we have 5 elements in an array, then what will be the last index element position in C++? |
|
Show Answer |
Answer is : Option A |
Q 8 - Select the C++ keyword from the following? |
|
Show Answer |
Answer is : Option B |
Q 9 - Select the properties of an Object-Oriented Programming language? |
|
Show Answer |
Answer is : Option D |
Q 10 - Select the correct answer for the subscript operator in C++? |
|
Show Answer |
Answer is : Option A |