This set of multiple choice questions focuses on the Basics of C++ Programming. Firstly, read all the questions and after that select the appropriate option. Moreover, each question contains four options, out of them only one option will be correct. If you fail to select the correct option, don’t worry, you can try again at the end. You can use Previous and Next button to switch to a different set of questions.
In the last set of MCQs, we were introduced to C++ Basics. There, we have discussed some questions.
Now, in this set again, you will find some more questions on C++ Basics.
TEST INSTRUCTIONS: Click on options to see the answer.
Now, start attempting the quiz.
#1. _____ function is used to allocate space for array in memory.
#2. A class can contain objects of other classes and this phenomenon is called______
#3. Operators that cannot be overloaded in C++ are
i) Member access operators ( . And .* )
ii) Conditional operator ( ? : )
iii) Scope resolution operator ( : : )
iv) Size operator (sizeof)
#4. Which operation is used as Logical 'AND'
#5. Which function is used to read a single character from the console in C++?
#6. Which function is used to write a single character to console in C++?
#7. In C++, the keyword void was used ___
#8. Object based language differs from object oriented language as it does not support features _____
3. Dynamic Binding
#9. While redefining a virtual function in the derived class, if its prototype is changed then _________
#10. A C++ code line ends with ___
<< Prev- C++ MCQs : C++ Basics
>> Next- C++ MCQ : C++ Variables
If you scored less. Don’t worry! You can attempt any number of times.
Don’t forget to explore all the topics of C++ programming. Here, is the complete set of Multiple Choice Questions and Answers. These question sets are very helpful in preparing for Competitive Exams and University level exams.
All the answers in this set are correct. But in case, you find any typographical, grammatical or any other error in our site then kindly inform us. Don’t forget to provide the appropriate URL along with error description.
Thanks in advance.
For discussion about any question, join the below comment section. And get the solution of your query.