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. Which operation is used as Logical 'AND'
#2. Which function is used to read a single character from the console in C++?
#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. A C++ code line ends with ___
#5. Object based language differs from object oriented language as it does not support features _____
1. Encapsulation
2. Inheritance
3. Dynamic Binding
4. Abstraction
5. Polymorphism
#6. While redefining a virtual function in the derived class, if its prototype is changed then _________
#7. In C++, the keyword void was used ___
#8. Which function is used to write a single character to console in C++?
#9. _____ function is used to allocate space for array in memory.
#10. A class can contain objects of other classes and this phenomenon is called______
Results
<< 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.