Programming Language C++ MCQ SET-19

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

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


Question 181-190

Question : 181

Which of the following is not used to seek a file pointer?

[A].   os::cur
[B].   ios::set
[C].   ios::end
[D].   ios::beg


Question : 182

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 : 183

Static variable in a class is initialized when _____ .

[A].   every object of the class is created.
[B].   last object of the class is created.
[C].   first object of the class is created.
[D].   No need to initialize static variable.


Question : 184

Which of the followings is/are not a manipulator/s ?

1. flush
2. base
3. ends
4. oct
5. bin
6. skipws

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


Question : 185

To perform File I/O operations, we must use _____________ header file.

[A].   < ifstream>
[B].   < ofstream>
[C].   < fstream>
[D].   Any of these


Question : 186

If default constructor is not defined, then how the objects of the class will be created?

[A].   The compiler will generate error
[B].   Error will occur at run-time.
[C].   Compiler provides its default constructor to build the object.
[D].   None of these


Question : 187

An exception is thrown using _____________ keyword in CPP.

[A].   throws
[B].   throw
[C].   threw
[D].   Thrown


Question : 188

Which of the following is not a file opening mode ____ .

[A].   ios::ate
[B].   ios::nocreate
[C].   ios::noreplace
[D].   ios::truncate


Question : 189

   Which of the following is the perfect set of operators that can’t be overloaded in CPP ?

[A].   +=, ?, :: , >>
[B].   >>, <<, ?, *, sizeof()
[C].   :: , . , .* , ?:
[D].   :: , ->, * , new, delete


Question : 190

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

[A].   11
[B].   10
[C].   Error
[D].   0





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