Programming Language C++ MCQ SET-7

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

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


Question 61-70

Question : 61

Which of the following are true about static member function?

1. They can access non-static data members.
2. They can call only other static member functions.
3. They can access global functions and data.
4. They can have this pointer.
5. They cannot be declared as const or volatile.

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


Question : 62

Which of the following is not a false statement about new operator?

[A].   It can’t be overloaded.
[B].   It returns garbage value when memory allocation fails.
[C].   It automatically computes the size of the data object.
[D].   All of these


Question : 63

Streams that will be performing both input and output operations must be declared as class _________ .

[A].   iostream
[B].   fstream
[C].   stdstream
[D].   Stdiostream


Question : 64

Static variable declared in a class are also called_________ .

[A].   instance variable
[B].   named constant
[C].   global variable
[D].   class variable


Question : 65

Exception handlers are declared with ____________ keyword.

[A].   Try
[B].   catch
[C].   throw
[D].   Finally


Question : 66

Which of the following operator is used to release the dynamically allocated memory in CPP?

[A].   remove
[B].   free
[C].   delete
[D].   both b and c


Question : 67

When base class is derived in protected mode, then_____________ .

1. public members of base class become private members of derived class.
2. public members of base class become protected members of derived class.
3. public members of base class become public members of derived class.
4. protected members of base class become protected members of derived class.
5. protected members of base class become private members of derived class.
6. protected members of base class become public members of derived class.

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


Question : 68

class X, class Y and class Z are derived from class BASE. This is ______ inheritance.

[A].   Multiple
[B].   Multilevel
[C].   Hierarchical
[D].   Single


Question : 69

class Mycpp { }; int main() { Mycpp obj; return 0; }

[A].   Compilation Error - Constructor Missing
[B].   Nothing would be printed
[C].   Undefined
[D].   In constructor


Question : 70

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