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-5
Question 41-50
Question : 41
//Assume all headers are included //What should be printed? int main() { char Text[ ] = "AEM@ME"; for(int I=0; Text[I]!='�';I++) { if(!isalpha(Text[I])) Text[I]='*'; else if(isupper(Text[I])) Text[I]=Text[I]+1; else Text[I] = Text[I+1]; } cout<<Text; return 0; }
[A]. *pp@*uzz[B]. AEM@MEE
[C]. AEM@ME
[D]. Dp@*Czz
Question : 42
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 : 43
What should be printed on screen? int main() { int x = 5; if(x++ == 5) cout<<"Five&"<<endl; else if(++x == 6) cout<<"Six"<<endl; return 0; }
[A]. FiveSix[B]. Five
[C]. Six
[D]. None of these
Question : 44
Which of the following best defines the syntax for template function ?
[A]. Template[B]. Template return_type Function_Name(Parameters)
[C]. Both [A] and [B]
[D]. None of these
Question : 45
int main() { int i=0,x=0; for(i=1;i<10;i*=2) { x++; cout<<x; } cout<<x; return 0; }
[A]. 1234567899[B]. 12345678910
[C]. 123455
[D]. 12344
Question : 46
Generic pointers can be declared with__________ .
[A]. auto[B]. void
[C]. asm
[D]. None of these
Question : 47
How many times 'its a while loop' should be printed? int main() { int i = 1 ; i = i - 1 ; while(i) { cout<<"its a while loop"; i++ ; } return 0; }
[A]. 1[B]. 2
[C]. 0
[D]. INFINITE TIMES
Question : 48
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
Question : 49
#include
[B]. 0
[C]. 3
[D]. -3
Question : 50
What is output of below program?
int main() { int a=10; int b,c; b = a++; c = a; cout<<a<<b<<c; Return 0;
[B]. 111111
[C]. 101011
[D]. 101010
To Read Next Set
Click on below links
- C++ Progamming Language MCQs
for Competitive Exam and interview | SET-1 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-2 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-3 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-4 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-5 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-6 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-7 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-8 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-9 - C++ Progamming Language MCQs
for Competitive Exam and interview | SET-10
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