Programming Language C++ MCQ SET-8

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

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


Question 71-80

Question : 71

Default return type of functions in CPP is ____ .

[A].   void
[B].   long
[C].   char
[D].   Int


Question : 72

Inline functions may not work ______ .

1. If function contain static variables.
2. If function contain global and register variables.
3. If function returning value consists looping construct(i.e. for, while).
4. If inline functions are recursive.
5. If function contains const value.

[A].   Only 1,4,5
[B].   Only 2,3,5
[C].   Only 1,3,4
[D].   All of these


Question : 73

Which of the followings is/are not false about friend function ?

1. It can be called / invoked with class object.
2. It has objects as arguments.
3. It can have built-in types as arguments.
4. It must declared only in public part of a class.
5. It does not have this pointer as an argument.

[A].   Only 2,4
[B].   Only 1,2,5
[C].   Only 2,3,5
[D].   All of these


Question : 74

class Mycpp { int Mycpp() { cout<<"Constructor"; return 0; } }; int main() { Mycpp obj; return 0; }

[A].   Constructor
[B].   0
[C].   Compilation Error
[D].   Runtime Error


Question : 75

To create an output stream, we must declare the stream to be of class ___________ .

[A].   ofstream
[B].   ifstream
[C].   iostream
[D].   None of these


Question : 76

C++ is superset of which langauge?

[A].   BASIC
[B].   VB
[C].   PASCAL
[D].   C


Question : 77

Which of the following statements are true about Catch handler?

1. It must be placed immediately after try block T.
2. It can have multiple parameters.
3. There must be only one catch handler for every try block.
4. There can be multiple catch handler for a try block T.
5. Generic catch handler can be placed anywhere after try block.

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


Question : 78

Run time polymorphism can be achieved with______ .

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


Question : 79

class Mycpp { int Mycpp() { cout<<"Constructor"; return 0; } }; int main() { Mycpp obj; return 0; }

[A].   Constructor
[B].   0
[C].   Compilation Error
[D].   Runtime Error


Question : 80

What is the output of below program?
int main() { int a = 10; cout<<a++; return 0; }

[A].   10
[B].   11
[C].   12
[D].   Not defined





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