Programming Language C++ MCQ SET-18

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

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-18


Question 171-180

Question : 171

Which one is suitable syntax for function template?

[A].   template< class T> return_type Function_Name(parameters)
[B].   template< typename T> return_type Function_Name(parameters)
[C].   Both [A] and [B]
[D].   None of these


Question : 172

 Scope resolution operator is used______ .

[A].   to resolve the scope of global variables only
[B].   to resolve the scope of functions of the classes only
[C].   to resolve scope of global variables as well as functions of the classes
[D].   None of these


Question : 173

While overloading binary operators using member function, it requires ___ argument/s.

[A].   Zero
[B].   One
[C].   Two
[D].   Three


Question : 174

Object oriented programming employs_________ programming approach.

[A].   top-down
[B].   procedural
[C].   bottom-up
[D].   all of these.


Question : 175

In case of operator overloading, operator function must be ______ .

1. Static member functions
2. Non- static member functions
3. Friend Functions

[A].   Only 2
[B].   Only 1, 3
[C].   Only 2 , 3
[D].   All 1 , 2, 3


Question : 176

In CPP, cin and cout are the predefined stream __________ .

[A].   Operator
[B].   Functions
[C].   Objects
[D].   Data types


Question : 177

A virtual function that has no definition within the base class is called____________.

[A].   Pure virtual function
[B].   Pure static function
[C].   Pure Const function
[D].   Friend function


Question : 178

If abstract class is inherited by derived class, then_______________ .

[A].   Derived class should provide definition for all the pure virtual functions
[B].   Derived class also become abstract if fails to implement pure virtual functions
[C].   Objects of derived class can’t be created if it fails to implement pure virtual functions
[D].   All of these


Question : 179

_________________are used for generic programming.

[A].   Inheritance
[B].   Virtual Functions
[C].   Templates
[D].   None of these


Question : 180

Can we typecast void * into int *?

[A].   Yes
[B].   No
[C].   Undefined
[D].   Depends on Compiler





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