Programming Language C++ MCQ SET-25

C++ Progamming Language MCQs Questions and Answers | SET-25

Important C++ Progamming Language Solved Questions and Answers

Welcome to our exclusive collections of C++ Progamming Language (MCQ) Questions and with answers. Important C++ Progamming Language online MCQs practice test sets questions with answers for interviews, competitive exams. These multiple choice questions(MCQs) on C++ Progamming Language are suitable for both aspirant freshers and experienced who are preparing for competitive exam. In these MCQs sets we are going to share most important questions related to C++ Progamming Language. These questions are very helpful for those candidates ans aspirants who are preparing for the various government and non government exam as well as in interview.

C++ Progamming Language MCQs Questions and Answers | SET-25


Question 241-250

Question : 241

How many loops are there in C++ 98?

[A].   2
[B].   3
[C].   4
[D].   1


Question : 242

The derivation of Child class from Base class is indicated by ____ symbol.

[A].   ::
[B].   :
[C].   ;
[D].   |


Question : 243

Logical expressions produce ____________ type results.

[A].   explicit
[B].   garbage
[C].   bool
[D].   static


Question : 244

19)   Predict the output:

int x = 786;
cout << setfill(‘*’) << setw(6) << x;


786***
**786
***786
******

[A].   786***
[B].   **786
[C].   ***786
[D].   ******


Question : 245

Syntax for Pure Virtual Function is ______________ .

[A].   virtual void show()==0
[B].   void virtual show()==0
[C].   virtual void show()=0
[D].   void virtual show()=0


Question : 246

Run time polymorphism can be achieved with______ .

[A].   Virtual Base class
[B].   Container class
[C].   Virtual function
[D].   Both a and c


Question : 247

A Constructor that does not have any parameters is called____________ Constructor.

[A].   Custom
[B].   Dynamic
[C].   Static
[D].   Default


Question : 248

Which of the following is not a false statement about new operator?

[A].   It can’t be overloaded.
[B].   It returns garbage value when memory allocation fails.
[C].   It automatically computes the size of the data object.
[D].   All of these


Question : 249

If we have object from fstream class, then what is the default mode of opening the file

[A].   ios::in|ios::out
[B].   ios::in|ios::out|ios::trunc
[C].   ios::in|ios::trunc
[D].   Default mode depends on compiler


Question : 250

Only functions of the class can access the data of the class and they(functions) provides the interface between data, objects and the program. This kind isolation of the data from direct access by the program is called _______________ .

[A].   Data Abstraction
[B].   Data Hiding
[C].   Data Binding
[D].   Data Encapsulation





To Read Next Set
Click on below links



Please Read These Useful Post Also
कृपया इन्हें भी पढ़ें


MCQs Practice Sets for Sure Success in all competitive exams



If you are planning to qualify teacher eligibility test, TET, CTET, all India state TET, JEE Main, NEET UG, AIPMT, AIIMS, AFMC, DPMT, BHU, IP MBBS, JIPMER, State PMT, MHT , you can practice these question papers online. We have taken all the necessary care to provide you with genuine question papers and the answers from reliable sources. Hope our labors server student’s community in better way.

Visit  http://examsuccessmaster.blogspot.com/  for a complete list of exam quizzes e.g. Child development, Psychlogy, Inclusive Education, Social Studies, physics || general science MCQ, Himachal pradesh Gk, chemistry, physics, Mathematics, math, General science, computer basics, old question papers, environmental studies,Geography, Polity Social Issue, Social Science complete study material,aptitude tests, Practice sets,HPTET,Engineering Interview, Civil Engineering, Mechanical Engineering, Electrical Engineering, most frequently asked,tests,HPTET Questions and Answers, Engineering Multiple choice, MCQ Questions on various subjects and topics and much more.

No comments:

Post a Comment