SlideShare a Scribd company logo
1 of 7
CRACK THE CODE
Designed by The Smartpath Information Systems
1) What will be the outputof followingcode
{
Int x=10,y=15;
X=x++;
Y=++y;
Cout<<x<<y;
}
A. 10,15
B. 10,16
C. 11,16
D. 11,15
2) Null pointercanbe usedas
A. To stop indirectioninarecursive data structure
B. As an errorvalue
C. As a sentinel value
D. All of above
3) Whichof the followingstatementscreatesinfinite loop?
A. For( ; ; )
B. While( ;; )
C. When( ; ; )
D. If( ; ; )
4) What isthe functionoverloading?
A. Callingafunctionfromanotherfunction
B. Havingmore than one functionsof same name
C. Callingafunctionfronitself
D. There isno such termin c++
5) To use the functiontolower(),whichof the followingheaderfile shouldinclude?
A. String.h
B. Conio.h
C. Ctype.h
D. Don’tneedanyheaderfile
CRACK THE CODE
Designed by The Smartpath Information Systems
6) The use of “break” statement
A. To terminate acase inthe switchstatement
B. To force immediate terminationof aloop
C. Both A & B
D. OnlyA
7) In an assignmentstatement
a=b;
Whichof the followingstatementistrue?
A. The variable a andthe variable bare equal.
B. The value of b is assignedtovariable abutthe laterchangesonvariable bwill noteffectthe
value of variable a.
C. The value of b is assignedtovariable aand the laterchange on variable bwill effectthe value
of variable a.
D. The variable of value a isassignedtovariable bandthe value of variable bisassignedto
variable a.
8) Whichof the followingisnota validescape code?
A. t
B. v
C. f
D. w
9) The c++ symbol <<
A. Performthe actionof sendingthe value of expressionlistedasitsrightto the outputstream as
the left.
B. Is used to indicate the actionfromrightto left.
C. Is adoptedtoresemble anarrow.
D. All of above
10) Whena language has the capabilitytoproduce new datatype,itiscalled
A. Extensible
B. Overloaded
C. Encapsulated
CRACK THE CODE
Designed by The Smartpath Information Systems
D. Reprehensible
11) State the ObjectOrientedlanguages
A. C++
B. Java
C. Eiffel
D. All of the above
12) Keywordusedfordynamicmethodresolution?
A. Abstract
B. Dynamic
C. Virtual
D. Typeid
13) The term STL standsfor?
A. Simple TemplateLibrary
B. StaticTemplate Library
C. Single Type BasedLibrary
D. StandardTemplate Library
14) What is the implicit pointer that is passed as the first argument for nonstatic member
functions?
A. Self pointer
B. Std::auto_ptr pointer
C. Myself pointer
D. This pointer
15) Whichof the followingprovidesareuse mechanism?
A. Abstraction
B. Inheritance
C. Dynamicbinding
D. Encapsulation
16) Whichof the followingstatementsiscorrect?
CRACK THE CODE
Designed by The Smartpath Information Systems
A. Base class pointercannotpointtoderivedclass
B. Derivedclasspointercannotpointtobase class
C. Pointertoderivedclasscannotbe created
D. Pointertobase class cannotbe created
17) Whichof the followingconceptsmeansdeterminingatruntime whatmethodtoinvoke?
A. Data hiding
B. Dynamictyping
C. Dynamicbinding
D. Dynamicloadind
18) What iscorrect about the static data memberof a class?
A. A staticmemberfunctioncanaccessonlystatic data membersof aclass
B. A staticdata memberissharedamongall the objectof the class
C. A staticdata membercan be accesseddirectlyfrommain()
D. Both A and B
19) Whichof the followingstatementsiscorrect?
A. Classisan instance of object
B. Objectisan instance of a class
C. Classsisan instance of data type
D. Objectisan instance of data type
20) Whichone of the followingoptioniscorrect?
A. Friendfunctioncanaccesspublicdata membersof the class
B. Friendfunctioncanaccessprotecteddatamembersof the class
C. Friendfunctioncanaccessprivate data membersof the class
D. All of the above
21) Whichof the followingisusedtomake an abstract class?
A. Declaringitabstract usingstatickeyword
B. Declaringitabstract usingvirtual kwyword
C. Making at leastone memberfunctionasavirtual function
D. Making atleastone memberfunctionaspure virtual function
22) Whichinheritance type isusedinthe classgivenbelow?
CRACK THE CODE
Designed by The Smartpath Information Systems
ClassA:publicx,publicy
{}
A. Multilevelinheritance
B. Multiple inheritance
C. Hybridinheritance
D. Hierarchical inheritance
23) Whichof the followingoperatorcannotbe overloaded
A. []
B. ->
C. >:
D. *
24) Whichone of the followingisthe correctway to declare apure virtual function?
A. Virtual voidDisplay(void){0};
B. Virtual voidDisplay=0;
C. Virtual voidDisplay(void)=0;
D. VoidDisplay(void)=0;
25) Whichof the followingisamechanismof staticpolymorphism?
A. Operatoroverloading
B. Functionoverloading
C. Templates
D. All of the above
26) Whichof the followingiscorrectaboutthe statementsgivenbelow?
1. All operatorscan be overloadedinC++
2. We can change the basic meaningof anoperatorin C++
A. OnlyI istrue
B. Both I andII are false
C. OnlyIIis true
D. Both I andII are true
27) What happensif the base and derivedclasscontainsdefinitionof afunctionwiththe same
prototype?
A. Compilerreportsanerroron compilation
CRACK THE CODE
Designed by The Smartpath Information Systems
B. Onlybase classfunctionwill getcalledirrespectiveof object
C. Onlyderivedclassfunctionwill getcalled irrespective of object
D. Base class objectwill call base classfunctionandderivedclassobjectwill call derivedclass
function
28) Whichof the followingfactorssupportsthe statementthatreusabilityisadesirable featureof a
language?
A. It decrease the testingtime
B. It lowersthe maintenance cost
C. It reduce the compilationtime
D. Both A and B
29) Whichof the followingwaysare legal toaccessa classdata memberusingthispointer?
A. this->x
B. this.x
C. *this.x
D. *this-x
30) Whichof the followingproblemcausesanexception?
A. Missingsemicoloninstatementinmain().
B. A problemincallingfunction.
C. A syntax error.
D. A run-time error.
31) How manytypesof polymorphismssupportedbyc++?
A. 1
B. 2
C. 3
D. 4
32) Whichof the followingconceptof oopsallowstoinsertargumentsinafunctioncall if itis not
specified?
A. Call by value
B. Call by reference
C. Defaultarguments
D. Call by pointer
CRACK THE CODE
Designed by The Smartpath Information Systems
33) How manyinstances of an abstract classcan be created?
A. 1
B. 5
C. 13
D. 0
34) Whichof the followingcannotbe friend?
A. Function
B. Class
C. Object
D. Operatorfunction
35) How “Late binding’isimplementedinC++?
A. UsingC++ tables
B. Usingvirtual tables
C. Usingindexedvirtual tables
D. Usingpolymorphictables

More Related Content

What's hot

CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011Deepak Singh
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomeshpraveensomesh
 
C multiple choice questions and answers pdf
C multiple choice questions and answers pdfC multiple choice questions and answers pdf
C multiple choice questions and answers pdfchoconyeuquy
 
CDAC CCAT examination important question
CDAC CCAT examination important questionCDAC CCAT examination important question
CDAC CCAT examination important questionprabhatjon
 
Answers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docxAnswers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docxismailaboshatra
 
C++17 not your father’s c++
C++17  not your father’s c++C++17  not your father’s c++
C++17 not your father’s c++Patrick Viafore
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in CSaket Pathak
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061gurbaxrawat
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.organnaunivedu
 
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPEREC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPERVISHNUPRABHANKAIMAL
 
Programming fundamentals
Programming fundamentalsProgramming fundamentals
Programming fundamentalsZaibi Gondal
 
C Programming Training In Ambala ! BATRA COMPUTER CENTRE
C Programming Training In Ambala ! BATRA COMPUTER CENTREC Programming Training In Ambala ! BATRA COMPUTER CENTRE
C Programming Training In Ambala ! BATRA COMPUTER CENTREjatin batra
 
Tech Talks @NSU: DLang: возможности языка и его применение
Tech Talks @NSU: DLang: возможности языка и его применениеTech Talks @NSU: DLang: возможности языка и его применение
Tech Talks @NSU: DLang: возможности языка и его применениеTech Talks @NSU
 
C++ Concepts and Ranges - How to use them?
C++ Concepts and Ranges - How to use them?C++ Concepts and Ranges - How to use them?
C++ Concepts and Ranges - How to use them?Mateusz Pusz
 

What's hot (19)

CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011CBSE Question Paper Computer Science with C++ 2011
CBSE Question Paper Computer Science with C++ 2011
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 
E5
E5E5
E5
 
C multiple choice questions and answers pdf
C multiple choice questions and answers pdfC multiple choice questions and answers pdf
C multiple choice questions and answers pdf
 
CDAC CCAT examination important question
CDAC CCAT examination important questionCDAC CCAT examination important question
CDAC CCAT examination important question
 
Answers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docxAnswers+of+C+sample+exam.docx
Answers+of+C+sample+exam.docx
 
Exam for c
Exam for cExam for c
Exam for c
 
C++17 not your father’s c++
C++17  not your father’s c++C++17  not your father’s c++
C++17 not your father’s c++
 
Codejunk Ignitesd
Codejunk IgnitesdCodejunk Ignitesd
Codejunk Ignitesd
 
Lab. Programs in C
Lab. Programs in CLab. Programs in C
Lab. Programs in C
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPEREC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
 
Programming fundamentals
Programming fundamentalsProgramming fundamentals
Programming fundamentals
 
C Programming Training In Ambala ! BATRA COMPUTER CENTRE
C Programming Training In Ambala ! BATRA COMPUTER CENTREC Programming Training In Ambala ! BATRA COMPUTER CENTRE
C Programming Training In Ambala ! BATRA COMPUTER CENTRE
 
Tech Talks @NSU: DLang: возможности языка и его применение
Tech Talks @NSU: DLang: возможности языка и его применениеTech Talks @NSU: DLang: возможности языка и его применение
Tech Talks @NSU: DLang: возможности языка и его применение
 
C++ Concepts and Ranges - How to use them?
C++ Concepts and Ranges - How to use them?C++ Concepts and Ranges - How to use them?
C++ Concepts and Ranges - How to use them?
 
C # (2)
C # (2)C # (2)
C # (2)
 
Data Structure and Algorithm
Data Structure and AlgorithmData Structure and Algorithm
Data Structure and Algorithm
 

Similar to Crack C++ Code Questions & Answers

ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxgitagrimston
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2Knowledge Center Computer
 
Java Questioner for
Java Questioner for Java Questioner for
Java Questioner for Abhay Korat
 
Comp 328 final guide
Comp 328 final guideComp 328 final guide
Comp 328 final guidekrtioplal
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGAmira Dolce Farhana
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperCAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperAlex Stewart
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)Ankit Dubey
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanationsrinath v
 
New microsoft office word document (3)
New microsoft office word document (3)New microsoft office word document (3)
New microsoft office word document (3)Sagar Kuchekar
 
Multiple Choice Questions for Java interfaces and exception handling
Multiple Choice Questions for Java interfaces and exception handlingMultiple Choice Questions for Java interfaces and exception handling
Multiple Choice Questions for Java interfaces and exception handlingAbishek Purushothaman
 
Prueba de conociemientos Fullsctack NET v2.docx
Prueba de conociemientos  Fullsctack NET v2.docxPrueba de conociemientos  Fullsctack NET v2.docx
Prueba de conociemientos Fullsctack NET v2.docxjairatuesta
 

Similar to Crack C++ Code Questions & Answers (20)

ExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docxExamName___________________________________MULTIPLE CH.docx
ExamName___________________________________MULTIPLE CH.docx
 
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
UGC-NET, GATE and all IT Companies Interview C++ Solved Questions PART - 2
 
Java Questioner for
Java Questioner for Java Questioner for
Java Questioner for
 
Comp 328 final guide
Comp 328 final guideComp 328 final guide
Comp 328 final guide
 
C quiz
C quizC quiz
C quiz
 
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMINGFINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
FINAL PAPER FP301 OBJECT ORIENTED PROGRAMMING
 
Oops Quiz
Oops QuizOops Quiz
Oops Quiz
 
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice PaperCAPE Computer Science Unit 1 Paper 1 - Practice Paper
CAPE Computer Science Unit 1 Paper 1 - Practice Paper
 
Java Quiz
Java QuizJava Quiz
Java Quiz
 
Part - 2 Cpp programming Solved MCQ
Part - 2  Cpp programming Solved MCQ Part - 2  Cpp programming Solved MCQ
Part - 2 Cpp programming Solved MCQ
 
C Programming
C ProgrammingC Programming
C Programming
 
Java Programming.pdf
Java Programming.pdfJava Programming.pdf
Java Programming.pdf
 
C test
C testC test
C test
 
200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)200 mcq c++(Ankit dubey)
200 mcq c++(Ankit dubey)
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
 
Computer ScienceTechnical quiz
Computer ScienceTechnical quizComputer ScienceTechnical quiz
Computer ScienceTechnical quiz
 
New microsoft office word document (3)
New microsoft office word document (3)New microsoft office word document (3)
New microsoft office word document (3)
 
Computer general questions
Computer  general questionsComputer  general questions
Computer general questions
 
Multiple Choice Questions for Java interfaces and exception handling
Multiple Choice Questions for Java interfaces and exception handlingMultiple Choice Questions for Java interfaces and exception handling
Multiple Choice Questions for Java interfaces and exception handling
 
Prueba de conociemientos Fullsctack NET v2.docx
Prueba de conociemientos  Fullsctack NET v2.docxPrueba de conociemientos  Fullsctack NET v2.docx
Prueba de conociemientos Fullsctack NET v2.docx
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 

Recently uploaded (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 

Crack C++ Code Questions & Answers

  • 1. CRACK THE CODE Designed by The Smartpath Information Systems 1) What will be the outputof followingcode { Int x=10,y=15; X=x++; Y=++y; Cout<<x<<y; } A. 10,15 B. 10,16 C. 11,16 D. 11,15 2) Null pointercanbe usedas A. To stop indirectioninarecursive data structure B. As an errorvalue C. As a sentinel value D. All of above 3) Whichof the followingstatementscreatesinfinite loop? A. For( ; ; ) B. While( ;; ) C. When( ; ; ) D. If( ; ; ) 4) What isthe functionoverloading? A. Callingafunctionfromanotherfunction B. Havingmore than one functionsof same name C. Callingafunctionfronitself D. There isno such termin c++ 5) To use the functiontolower(),whichof the followingheaderfile shouldinclude? A. String.h B. Conio.h C. Ctype.h D. Don’tneedanyheaderfile
  • 2. CRACK THE CODE Designed by The Smartpath Information Systems 6) The use of “break” statement A. To terminate acase inthe switchstatement B. To force immediate terminationof aloop C. Both A & B D. OnlyA 7) In an assignmentstatement a=b; Whichof the followingstatementistrue? A. The variable a andthe variable bare equal. B. The value of b is assignedtovariable abutthe laterchangesonvariable bwill noteffectthe value of variable a. C. The value of b is assignedtovariable aand the laterchange on variable bwill effectthe value of variable a. D. The variable of value a isassignedtovariable bandthe value of variable bisassignedto variable a. 8) Whichof the followingisnota validescape code? A. t B. v C. f D. w 9) The c++ symbol << A. Performthe actionof sendingthe value of expressionlistedasitsrightto the outputstream as the left. B. Is used to indicate the actionfromrightto left. C. Is adoptedtoresemble anarrow. D. All of above 10) Whena language has the capabilitytoproduce new datatype,itiscalled A. Extensible B. Overloaded C. Encapsulated
  • 3. CRACK THE CODE Designed by The Smartpath Information Systems D. Reprehensible 11) State the ObjectOrientedlanguages A. C++ B. Java C. Eiffel D. All of the above 12) Keywordusedfordynamicmethodresolution? A. Abstract B. Dynamic C. Virtual D. Typeid 13) The term STL standsfor? A. Simple TemplateLibrary B. StaticTemplate Library C. Single Type BasedLibrary D. StandardTemplate Library 14) What is the implicit pointer that is passed as the first argument for nonstatic member functions? A. Self pointer B. Std::auto_ptr pointer C. Myself pointer D. This pointer 15) Whichof the followingprovidesareuse mechanism? A. Abstraction B. Inheritance C. Dynamicbinding D. Encapsulation 16) Whichof the followingstatementsiscorrect?
  • 4. CRACK THE CODE Designed by The Smartpath Information Systems A. Base class pointercannotpointtoderivedclass B. Derivedclasspointercannotpointtobase class C. Pointertoderivedclasscannotbe created D. Pointertobase class cannotbe created 17) Whichof the followingconceptsmeansdeterminingatruntime whatmethodtoinvoke? A. Data hiding B. Dynamictyping C. Dynamicbinding D. Dynamicloadind 18) What iscorrect about the static data memberof a class? A. A staticmemberfunctioncanaccessonlystatic data membersof aclass B. A staticdata memberissharedamongall the objectof the class C. A staticdata membercan be accesseddirectlyfrommain() D. Both A and B 19) Whichof the followingstatementsiscorrect? A. Classisan instance of object B. Objectisan instance of a class C. Classsisan instance of data type D. Objectisan instance of data type 20) Whichone of the followingoptioniscorrect? A. Friendfunctioncanaccesspublicdata membersof the class B. Friendfunctioncanaccessprotecteddatamembersof the class C. Friendfunctioncanaccessprivate data membersof the class D. All of the above 21) Whichof the followingisusedtomake an abstract class? A. Declaringitabstract usingstatickeyword B. Declaringitabstract usingvirtual kwyword C. Making at leastone memberfunctionasavirtual function D. Making atleastone memberfunctionaspure virtual function 22) Whichinheritance type isusedinthe classgivenbelow?
  • 5. CRACK THE CODE Designed by The Smartpath Information Systems ClassA:publicx,publicy {} A. Multilevelinheritance B. Multiple inheritance C. Hybridinheritance D. Hierarchical inheritance 23) Whichof the followingoperatorcannotbe overloaded A. [] B. -> C. >: D. * 24) Whichone of the followingisthe correctway to declare apure virtual function? A. Virtual voidDisplay(void){0}; B. Virtual voidDisplay=0; C. Virtual voidDisplay(void)=0; D. VoidDisplay(void)=0; 25) Whichof the followingisamechanismof staticpolymorphism? A. Operatoroverloading B. Functionoverloading C. Templates D. All of the above 26) Whichof the followingiscorrectaboutthe statementsgivenbelow? 1. All operatorscan be overloadedinC++ 2. We can change the basic meaningof anoperatorin C++ A. OnlyI istrue B. Both I andII are false C. OnlyIIis true D. Both I andII are true 27) What happensif the base and derivedclasscontainsdefinitionof afunctionwiththe same prototype? A. Compilerreportsanerroron compilation
  • 6. CRACK THE CODE Designed by The Smartpath Information Systems B. Onlybase classfunctionwill getcalledirrespectiveof object C. Onlyderivedclassfunctionwill getcalled irrespective of object D. Base class objectwill call base classfunctionandderivedclassobjectwill call derivedclass function 28) Whichof the followingfactorssupportsthe statementthatreusabilityisadesirable featureof a language? A. It decrease the testingtime B. It lowersthe maintenance cost C. It reduce the compilationtime D. Both A and B 29) Whichof the followingwaysare legal toaccessa classdata memberusingthispointer? A. this->x B. this.x C. *this.x D. *this-x 30) Whichof the followingproblemcausesanexception? A. Missingsemicoloninstatementinmain(). B. A problemincallingfunction. C. A syntax error. D. A run-time error. 31) How manytypesof polymorphismssupportedbyc++? A. 1 B. 2 C. 3 D. 4 32) Whichof the followingconceptof oopsallowstoinsertargumentsinafunctioncall if itis not specified? A. Call by value B. Call by reference C. Defaultarguments D. Call by pointer
  • 7. CRACK THE CODE Designed by The Smartpath Information Systems 33) How manyinstances of an abstract classcan be created? A. 1 B. 5 C. 13 D. 0 34) Whichof the followingcannotbe friend? A. Function B. Class C. Object D. Operatorfunction 35) How “Late binding’isimplementedinC++? A. UsingC++ tables B. Usingvirtual tables C. Usingindexedvirtual tables D. Usingpolymorphictables