Programming Language C++ MCQ SET-12

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

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


Question 111-120

Question : 111

How to access and edit data in data file handling using structures

[A].   Read()
[B].   Write()
[C].   Both [A] and [B]
[D].   Without read()


Question : 112

 Throwing an unhandled exception causes standard library function then _________ to be invoked.

[A].   stop()
[B].   aborted()
[C].   terminate()
[D].   Abandon()


Question : 113

How many Access specifier are there in C++?

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


Question : 114

When a class is defined inside any function or block, it is called ___________ .

[A].   Nested class
[B].   Block class
[C].   Local class
[D].   It is not possible


Question : 115

Which of the followings are false statements about Local class?

1. A local class type name can only be used in the enclosing function
2. All the methods of Local classes must be defined inside the class only
3. A Local class can contain static data members.
4. A Local class may contain static functions.
5. Non-static variables of the enclosing function are not accessible inside local classes.
6. Local classes cannot access global types, variables and functions.

[A].   Only 1,3
[B].   Only 3, 6
[C].   Only 2 , 4 , 6
[D].   None of these


Question : 116

 If an argument to a function is declared as const, then _______ .

[A].   function can modify the argument.
[B].   Function can’t modify the argument.
[C].   const argument to a function is not possible.
[D].   None of these


Question : 117

Assume class TEST. Which of the following statements is/are responsible to invoke copy constructor?

[A].   TEST T2(T1)
[B].   TEST T4 = T1
[C].   T2 = T1
[D].   Both a and b


Question : 118

C structure differs from CPP class in regards that by default all the members of the structure are __________ in nature.

[A].   private
[B].   protected
[C].   public
[D].   None of these


Question : 119

In case of binary operator overloading with member function, which of following statement should be taken into consideration?

[A].   Right hand operand must be object.
[B].   Left hand operand must be object.
[C].   Both the operands must be objects.
[D].   All of these should be considered.


Question : 120

 Return type of uncaught_exception() is ________________ .

[A].   int
[B].   bool
[C].   char *
[D].   double





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