Programming Language C++ MCQ SET-6

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

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


Question 51-60

Question : 51

Find the output of below program:-
int main()
{
int i = 0, x = 0; do
{
if(i % 5 == 0)
{
cout< }
++i; }
while(i<10); cout<}

[A].   1
[B].   012
[C].   0
[D].   0123


Question : 52

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

What should be output of below program if use enter a = 5? int main() { int a; cin>>a; // user can enter any value if (++a*5 <= 25) { cout<<"Hello"; } else { cout<<"Bye"; } }

[A].   Hello
[B].   Bye
[C].   Undefined
[D].   Compilation Error


Question : 54

Default value of static variable is_____ .

[A].   0
[B].   1
[C].   Garbage value
[D].   Compiler dependent


Question : 55

Find the output of below program.
int main() { for(int i=1;i<=2;i++) { for(int j=i;j<=2;j++) cout< [A].   1@2@
[B].   1@2@1@
[C].   1@1@2@
[D].   1@2@2@


Question : 56

 ________ are used to format the data display in CPP.

[A].   Iterators
[B].   Punctuators
[C].   Manipulators
[D].   Allocators


Question : 57

Which of the followings is/are pointer-to-member declarator?

[A].   >
[B].    .
[C].   ::
[D].   both a and b


Question : 58

During dynamic memory allocation in CPP, new operator returns _________ value if memory allocation is unsuccessful.

[A].   False
[B].   NULL
[C].   Zero
[D].   None of these


Question : 59

#include using namespace std; class X { public: X() { cout<<"X"; } ~X() { cout<<"~X"; } }; class Y : public X { public: Y() { cout<<"Y"; } ~Y() { cout<<"~Y"; } }; int main() { Y obj; return 0; }

[A].   XY~X~Y
[B].   XY~Y~X
[C].   X~XY~Y
[D].   X~X~YY


Question : 60

What is the full form of oop

[A].   Object oriented programming
[B].   Oriented object programming
[C].   Office oriented programming
[D].   office objective programming





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