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-24
Question 231-240
Question : 231
What is the output of below program? int main() { if(0) { cout«"Hi"; } else { cout«"Bye"; } return 0; }
[A]. Hi[B]. Bye
[C]. HiBye
[D]. Compilation Error
Question : 232
Generic pointers can be declared with__________ .
[A]. auto[B]. void
[C]. asm
[D]. None of these
Question : 233
Static variable declared in a class are also called_________ .
[A]. instance variable[B]. named constant
[C]. global variable
[D]. class variable
Question : 234
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.
[B]. Only 1, 6
[C]. Only 2, 6
[D]. Only 2, 4
Question : 235
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.
[B]. Only 1, 2, 3
[C]. Only 1, 4
[D]. Only 1, 2
Question : 236
class X, class Y and class Z are derived from class BASE. This is ______ inheritance.
[A]. Multiple[B]. Multilevel
[C]. Hierarchical
[D]. Single
Question : 237
Exception handlers are declared with ____________ keyword.
[A]. Try[B]. catch
[C]. throw
[D]. Finally
Question : 238
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.
[B]. Only 2,3,4,5
[C]. Only 2 , 3 , 5
[D]. All of these
Question : 239
Streams that will be performing both input and output operations must be declared as class _________ .
[A]. iostream[B]. fstream
[C]. stdstream
[D]. Stdiostream
Question : 240
Which of the followings are true about constructors?
1. A class can have more than one constructor.
2. They can be inherited.
3. Their address can be referred.
4. Constructors cannot be declared in protected section of the class.
5. Constructors cannot return values.
[B]. 1,2,4,5
[C]. 1,3,5
[D]. 1,4,5
To Read Next Set
Click on below links
- C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 17 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 18 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 19 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 20 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 21 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 22 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 23 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 24 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 25 - C++ Progamming Language MCQs
for Bank, TET, MBA, CAT, MAT, GMAT, SSC | SET – 26
Please Read These Useful Post Also
कृपया इन्हें भी पढ़ें
MCQs Practice Sets for Sure Success in all competitive exams
- MS Access
- Computer Awareness in hindi
- Computer Awareness
- IT Computer
- C++ MCQ
- MS EXCEL
- MS Word
- C Language
- HTML
- CSS
- PPT
- Java
- PHP
- Web Design
- IT-Abbreviations
- OS System
- Indian GK
- Indian History
- Geography
- Indian Politics
- Indian Economy
- Indian Constitution
- Indian Railaway
- EVS
- India Sports GK
- World GK
- CTET
- Current Affairs
- Psychology
- Biology
- Physics
- Chemistry
- Mathematics
- English Grammar
- Hindi Grammar
- Banking
- HP-All Exam
- HP-JAO
- HP-Allied Services
- HP-Naib Tehsildar
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