Cát cũng như nước, cát dùng để chữa cháy rất phổ biến vì sử dụng đơn giản, dễ kiếm và có hiệu quả đối với nhiều đám cháy. Tác dụng chữa cháy của cát là làm ngạt và có khả năng ngừng trệ phản ứng cháy. Đối với chất lỏng cháy, cát còn có tác dụng ngăn cháy lan, dùng cát đắp thành bờ. Để dùng cát chữa cháy cần chứa cát thành bể, hố trước các kho. Bố trí sẳn xẻ
6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 1/16 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffree download 1.WhichofthefollowinglanguagesisasubsetofC++language? A.Clanguage B.JavaLanguage C.C#language D.Blanguage Answer:A 2.WhichofthefollowingcorrectlydescribesC++language? A.Staticallytypedlanguage B.Dynamicallytypedlanguage C.BothStaticallyanddynamicallytypedlanguage D.Typelesslanguage Answer:A 3.Whichofthefollowingkeywordsupportsdynamicmethodresolution? A.abstract B.Virtual C.Dynamic D.Typeid Answer:B 4.WhichofthefollowinglanguageisnotsupportedbyC++? A.ExceptionHandling B.Reflection C.OperatorOverloading D.Namespaces Answer:B 5.WhichofthefollowinglanguagefeatureisnotanaccessspecifierinC++? A.public B.private Cprotected D.internal Answer:D 6.WhatdoesSTLstandfor? A.SimpleTemplateLibrary B.StandardTemplateLibrary C.StaticTypeLibrary D.SingleTypebasedLibrary Search Home C++InterviewQuestions C++MultipleChoiceQuestionsand Answers CPPStudyMaterialpdf Followers Jointhissite withGoogleFriendConnect Members(4) Alreadyamember?Signin Categories C++ObjectivetypeQuestionsand Answers(1) C++QuestionsandAnswersfor Freshers(1) AtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C++ StudyMaterial 03:10 AtoZC++InterviewQuestions,AtoZCPPObjectiveTypeQuestions,AtoZ C++StudyMaterial Nocomments Home C++InterviewQuestions C++MultipleChoiceQuestions C++Tutorial 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 2/16 Answer:B 7.WhichofthefollowingisthemostcommonwayofimplementingC++? A.C++programsaredirectlycompiledintonativecodebyacompiler B.C++programsarefirstcompiledtointermediatecodebyacompilerandthenexecutedbya virtualmachine C.C++programsareinterpretedbyaninterpreter D.AC++editordirectlycompilesandexecutestheprogram Answer:A 8.Whatistheimplicitpointerthatispassedasthefirstargumentfornonstaticmember functions? A.‘self’pointer B.std::auto_ptrpointer C.‘Myself’pointer D.‘this’pointer Answer:D 9.IfXisthenameoftheclass,whatisthecorrectwaytodeclarecopyconstructorofX? A.X(Xarg) B.X(X*arg) C.X(constX*arg) D.X(constX&arg) Answer:D 10.Whichofthefollowingoperatorcannotbeoverloaded? A.=(assignmentoperator) B.==(equalityoperator) C.–>(rowoperator) D.::(coperesolutionoperator) Answer:D 11.Whichofthefollowingoperatorscanbeoverloaded? A..(dotormemberaccessoperator) B.&(addressofoperator) C.sizeofoperator D.?:(conditionaloperator) Answer:B 12.Howdowedeclareanabstractclass? A.Byprovidingatleastonepurevirtualmethod(functionsignaturefollowedby==0;)inaclass B.Bydeclaringatleastonemethodabstractusingthekeyword‘abstract’inaclass C.Bydeclaringtheclassabstractwiththekeyword‘abstract’ D.ItisnotpossibletocreateabstractclassesinC++ Answer:A 13.Howdowedeclarean‘interface’class? A.Bymakingallthemethodspurevirtualinaclass B.Bymakingallthemethodsabstractusingthekeyword‘abstract’inaclass C.Bydeclaringtheclassasinterfacewiththekeyword‘interface’ D.ItisnotpossibletocreateinterfaceclassinC++ 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 3/16 Answer:A 14.Howmanycopiesofaclassstaticmemberaresharedbetweenobjectsoftheclass? A.Acopyofthestaticmemberissharedbyallobjectsofaclass B.Acopyiscreatedonlywhenatleastoneobjectiscreatedfromthatclass C.Acopyofthestaticmemberiscreatedforeachinstntiationoftheclass D.Nomemoryisallocatedforstaticmembersofaclass Answer:A 15.Whichofthefollowingistrueaboutconstmemberfunctions? A.constmemberscanbeinvokedonbothconstaswellasnonconstobjects B.constmemberscanbeinvokedonlyonconstobjectsandnotonnonconstobjects C.nonconstmemberscanbeinvokedonconstobjectsaswellasnonconstobjects D.noneoftheabove Answer:A 16.Whenisstd::bad_allocexceptionthrown? A.Whennewoperatorcannotallocatememory B.Whenallocfunctionfails C.Whentyperequestedfornewoperationisconsideredbad,thisexceptionisthrown D.Whendeleteoperatorcannotdeletetehallocated(corrupted)object Answer:A 17.Whichheaderfileshouldweincludeforusingstd::auto_ptr? a.<memory> B.<alloc> C.<autoptr> D.<smartptr> Answer:C 18.STLisbasedonwhichofthefollowingprogrammingparadigms? A.StructuredProgramming B.ObjectOrientedProgramming(OOP) C.FunctionalProgramming D.AspectOrientedProgramming(AOP) Answer:C 19.Whichofthefollowingcorrectlydescribesthemeaningof‘namespace’featureinC++? A.Namespacesrefertothememoryspaceallocatedfornamesusedinaprogram B.Namespacesrefertospacebetweentehnamesinaprogram C.Namespacesrefertospacebetweenthenamesinaprogram D.namespacesprovidefacilitiesfororganizingthenamesinaprogramtoavoidnameclashes Answer:D 20.Whichofthefollowingisthemostgeneralexceptionhandlerthatcatchesexceptionofany type? A.catch(std::exception) B.catch(std::any_exception) C.catch(…) D.catch() Answer:C 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 4/16 21.STLisbasedonwhichofthefollowingprogrammingparadigms? a.StructuredProgramming b.ObjectOrientedProgramming(OOP) c.FunctionalProgramming d.AspectOrientedProgramming(AOP) ans:c 22.Whichofthefollowingcorrectlydescribesthemeaningof‘namespace’featureinC++? a.Namespacesrefertothememoryspaceallocatedfornamesusedinaprogram b.Namespacesrefertospacebetweenthenamesinaprogram c.Namespacesrefertopackingstructureofclassesinaprogram. d.Namespacesprovidefacilitiesfororganizingthenamesinaprogramtoavoidnameclashes. ans:d 23.Whichofthefollowingisthemostgeneralexceptionhandlerthatcatchesexceptionof‘any type’? a.catch(std::exception) b.catch(std::any_exception) c.catch(…) d.catch() ans:c 24.Whichofthefollowingrelationshipisknownasinheritancerelationship? a.‘hasa’relationship b.‘isa’relationship c.associationrelationship d.noneoftheabove ans:b 25.Whichofthefollowingoperatorscanbeimplementedasanonmemberoperator? a.=(assignmentoperator) b.()(functioncalloperator) c.[.(arrayaccessoperator) d.+(additionoperator) ans:d 26.WhichoftheSTLcontainersstoretheelementscontiguously(inadjecentmemory locations)? a.std::vector b.std::list c.std::map d.std::set ans:a 27.Whichofthefollowingisnotrecommendedinaheaderfile? a.Typedefinitions(typedefs) b.Classdefinitions c.Functiondefinitions d.Templatedefinitions 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 5/16 ans:c 28.IftheclassnameisX,whatisthetypeofits“this”pointer(inanonstatic,nonconst memberfunction)? a.constX*const b.X*const c.X* d.X& ans:b 29.Whichofthefollowingisthemostpreferredwayofthrowingandhandlingexceptions? a.Throwbyvalueandcatchbyreference. b.Throwbyreferenceandcatchbyreference. c.Throwbyvalueandcatchbyvalue d.Throwthepointervalueandprovidecatchfortehpointertype. Ans:a 30.IfclassAisfriendofclassBandifclassBisfriendofclassC,whichofthefollowingis true? a.ClassCisfriendofclassA b.ClassAisfriendofclassC c.ClassAandClassCdonothaveanyfriendrelationship d.Noneoftheabove Ans:c 31.Theconditionalcompilation a.Itistakencareofbythecompiler b.Itissettingthecompileroptionconditionally c.Itiscompilingaprogrambasedonacondition d.noneofabove ans:c 32.Originally‘C’wasdevelopedas: a.Systemprogramminglanguage b.Generalpurposelanguage c.Dataprocessinglanguage d.Noneofabove Ans:b 33.Minimumnumberoftemporaryvariagbleneededtoswapthecontentsof2variableis: a.1 b.2 c.3 d.0 Ans:d 34.Adirectaccessfileis: a.Afileinwhichrecoredsarearrangedinawaytheyareinsertedinafile b.Afileinwhichrecordsarearrangedinaparticularorder c.Fileswhicharestoredonadirectaccessstoragemedium d.Noneoftheabove 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 6/16 Ans:c 35.Whichofthefollowingisnotanadvantageofsecondarymemory a.Itiscosteffective b.Ithaslargestoragecapacity c.Ithashighestspeed d.Itiseasilyportable Ans:c 36.Aninvertedfile a.Locatesinformationaboutdatainsmallfilesthataremaintainedapartfromactualdata record b.Afilewhichstoresoppositerecords c.Afilewhichstoresinformationaboutrecordsofasystem d.Noneofabove Ans:a 37.Whichofthefollowingisnotafileoperation: a.Repositioning b.Truncating c.Appending d.Noneofabove Ans:d 38.Whichofthefollowingisnotacomponentoffilesystem a.Accessmethod b.Auxiliarystoragemanagement c.Freeintegritymechanism d.Noneoftheabove Ans:d 39.Seektimeis a.timetakentoretrieveadta b.Timetakenbyread/writeheadmechanismtopositionitselfoverappropriatecylinder c.Timetakenbyappropriatesectortocomeunderread/write d.Noneoftheabove Ans:b 40.Latencytimeis: a.Timetakenbyread/writeheadmechanismtopositionitselfoverappropriatecylinder b.Timetakentotransferadtafrommemory c.Timetakenbyappropriatesectortocomeunderread/writehead d.Noneofabove Ans:c 41.‘Primearea’incontextoffilesystemisdefinedas a.Itismemoryareacreatedbyoperatingsystem b.Itisanareaintowhichdatarecordsarewritten c.Itisthemainareaofawebpage d.Noneoftheabove Ans:b 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 7/16 42.ThetwotypesoffilestructureexistinginVSAMfileare a.Keysequencedstructure,entrysequencedstructure b.Keysequencestructure,exitsequencedstructure c.Entrysequencestructure,exitsequencedstructure d.Noneofabove Ans:c 43.Inmulitlistorganization a.Recordsthathaveequivalentvalueforagivensecondaryindexitemarelinkedtogetherto formalist. b.Recordsareloadedinorderedsequencedefinedbycollatingsequencebycontentofthe key c.Recordsaredirectlyaccessedbyrecordkeyfield d.Noneoftheabove Ans:a 44.Whichofthefollowingis/areadvantagesofcellularpartitionedstructure: a.Simultaneousreadoperationscanbeoverlapped b.Searchtimeisreduced c.Botha&b d.Noneoftheabove Ans:c 45.*ptr++isequivalenetto: a.ptr++ b.*ptr c.++*ptr d.Noneoftheabove Ans:d 46.Statementscanf(“%d”,80); a.Assignanintegertovariablei b.Giveanerrormessage c.Printthevalueofi d.Assignanfloattovariablei Ans:a 47.Valueofix+j,ifi,jareintegertypeandixlongtypewouldbe a.integer b.float c.longinteger d.doublepercision ans:c 48.InaClanguage‘3’represents a.Adigit b.Aninteger c.Acharacter d.Aword Ans:c 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 8/16 49.InClanguage,ahexadecimalnumberisrepresentedbywriting a.x b.xo c.ox d.h ans:d 50.ExpressionC=i++causes a.ValueofiassignedtoCandtheniincrementedby1 b.itobeincrementedby1andthenvalueofiassignedtoC c.ValueofiassignedtoC d.itobeincrementedby1 ans:a 51.Eachpassthroughaloopiscalleda/an a.enumeration b.iteration c.culmination d.passthrough Ans:b 52.Whichloopingprocesschecksthetestconditionattheendoftheloop? a.for b.while c.dowhile d.noloopingprocesschecksthetestconditionattheend Ans:c 53.Acontinuestatementcausesexecutiontoskipto a.thereturn0;statement b.thefirststatementaftertheloop c.thestatementfollowingthecontinuestatement d.thenextiterationoftheloop Ans:d 54.Inagroupofnestedloops,whichloopisexecutedthemostnumberoftimes? a.theoutermostloop b.theinnermostloop c.allloopsareexecutedthesamenumberoftimes d.cannotbedeterminedwithoutknowingthesizeoftheloops Ans:b 55.Thestatementi++;isequivalentto a.i=i+i; b.i=i+1; c.i=i1; d.i;Ans:b 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 9/16 56.Whichloopingprocessisbestusedwhenthenumberofiterationsisknown? a.for b.while c.dowhile d.allloopingprocessesrequirethattheiterationsbeknown Ans:a 57.What'swrong?for(intk=2,k<=12,k++) a.theincrementshouldalwaysbe++k b.thevariablemustalwaysbetheletteriwhenusingaforloop c.thereshouldbeasemicolonattheendofthestatement d.thecommasshouldbesemicolons Ans:d 58.What'swrong?while((i<10)&&(i>24)) a.thelogicaloperator&&cannotbeusedinatestcondition b.thewhileloopisanexitconditionloop c.thetestconditionisalwaysfalse d.thetestconditionisalwaystrue Ans:c 59.Ifthereismorethanonestatementintheblockofaforloop,whichofthefollowingmustbe placedatthebeginningandtheendingoftheloopblock? a.parentheses() b.braces{} c.brackets[]. d.arrows<>Ans:b 60.What'swrong?(x=4&&y=5)?(a=5);(b=6); a.thequestionmarkshouldbeanequalsign b.thefirstsemicolonshouldbeacolon c.therearetoomanyvariablesinthestatement d.theconditionaloperatorisonlyusedwithapstrings Ans:b 61.Inlinefunctionsareinvokedatthetimeof A.Runtime B.Compiletime C.Dependsonhowitisinvoked D.Bothbandcabove Ans:B 62.Whichofthefollowingoperatorsbelowallowtodefinethememberfunctionsofaclass outsidetheclass? A.:: B.? C.:? D.%Ans:A 63.Everyclasshasatleastoneconstructorfunction,evenwhennoneisdeclared. 6/9/2015 100TopC++MultipleChoiceQuestionsandAnswersforfresherspdffreedownloadAtoZC++InterviewQuestions,CPPObjectiveTypeQuestions,C+… http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 10/16 A.True B.False Ans:A 64.Howdowedefineaconstructor? A.X~(){} B.X(){}~ C.X()~{} D.~X(){} Ans:D 65.Canconstructorsbeoverloaded? A.No B.Yes Ans:B 66.Whichofthefollowingbelowcanperformconversionsbetweenpointerstorelatedclasses? A.cast_static B.dynamic_cast C.static_cast D.cast_dynamic Ans:C 67.Anabstractclasscanbeinstantiated. A.True B.False Ans:B 68.Thedefaultaccesslevelassignedtomembersofaclassis___________ A.Private B.Public C.Protected D.Needstobeassigned Ans:A 69.Whichclassesallowprimitivetypestobeaccessedasobjects? A.Storage B.Virtual C.Friend D.Wrapper Ans:D 70.Whichofthefollowingbelowis/areavaliditeratortype? A.InputIterator B.BackwardIterator C.ForwardIterator D.Bothaandcabove Ans:D 71.Whatisthedifferencebetweenoverloadedfunctionsandoverriddenfunctions? A.OverloadingisadynamicorruntimebindingandOverridingisstaticorcompiletime [...]... 78. What is the Difference between struct and class in terms of Access Modifier? A. By default all the struct members are private while by default class members are public http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 11/16 6/9/2015 100 Top C++ Multiple Choice Questions and Answers for freshers pdf free download AtoZ C++ Interview Questions,CPP Objective Type Questions,C+… B. By default all the struct members are protected while by default class members are... B. string C. int D. wchar_t Ans: B 85. The return value of the following code is Class1& test(Class1 obj) http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 12/16 6/9/2015 100 Top C++ Multiple Choice Questions and Answers for freshers pdf free download AtoZ C++ Interview Questions,CPP Objective Type Questions,C+… { Class1 *ptr = new Class1(); return ptr;... Ans: A 89. Value of a in a = (b = 5, b + 5); is A. Junk value B. Syntax error C. 5 D. 10 Ans: D http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 13/16 6/9/2015 100 Top C++ Multiple Choice Questions and Answers for freshers pdf free download AtoZ C++ Interview Questions,CPP Objective Type Questions,C+… 90. Write the output of the following:... C. Constrcutor 1 D. Type mismatch error Ans: B 95. class derived: public base1, public base2 { } is an example of http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 14/16 6/9/2015 100 Top C++ Multiple Choice Questions and Answers for freshers pdf free download AtoZ C++ Interview Questions,CPP Objective Type Questions,C+… A. Polymorphic inheritance B. Multilevel inheritance... Posted in: C++ Objective type Questions and Answers +1 Recommend this on Google Older Post 0 comments: Post a Comment http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 15/16 6/9/2015 100 Top C++ Multiple Choice Questions and Answers for freshers pdf free download AtoZ C++ Interview Questions,CPP Objective Type Questions,C+… Enter your comment Comment as: Publish...6/9/2015 100 Top C++ Multiple Choice Questions and Answers for freshers pdf free download AtoZ C++ Interview Questions,CPP Objective Type Questions,C+… binding B. Redefining a function in a friend class is called function overriding while Redefining a... AtoZ C++ Interview Questions, Objective Type Questions, Study Materials for CPP. AtoZ C++ Interview Questions,CPP Objective Type Questions,C++ Study Material http://atozcpp.blogspot.com/2013/10/100topcmultiplechoicequestionsand.html#commentform 16/16