C++ interview preparation Quiz 3 Welcome to your Fresher Interview Preparation - C++ Skills - 3 Name Email Phone Number 1. ____________ has the capabilities of both ofstream and ifstream.fstreamunionaddressnone2. All C++ programs are composed of the following ________ fundamental elements.onenonetwothree3. ____________ may be used more than once in a single statement.operatorinsertion operatordatanone4. __________file declares services for user-controlled file processing.none5. ___________ represent the input file stream and is used to read information from files.ifstreamunionofstreamnone6. ____________ is another user defined data type which allows you to combine data items ofdifferent kinds.arrayunionstructurenone7. ______________ is a mechanism of bundling the data and the functions that use them.noneaddressunionData encapsulation8. The data and functions within a class are called ______ of the classfunctionunionnonemember9. The purpose of an ________ is to provide an appropriate base class from which other classescan inherit.noneabstract objectabstract classdata10. A class is used to specify the form of an _________.nonestructureobjectclass11. The selection of the function to be called at any given point in the program to be based on thekind of object for which it is called ________linkagestaticdynamic linkagenone12. C++ allow you to specify more than one definition for an operator in the same scope is called___________.nonedata overloadingfunction overloadingoperator overloading13. We use the __________________ to access any member of a structure.structuremember access operator (.)unionnone14. _____________ allows us to define a class in terms of another class, which makes it easier tocreate and maintain an application.nonederivedbaseinheritance.15. _______________ means having many forms.polymorphismnoneInheritancedata16. Namespaces can be ________ where you can define one namespace inside anothernamespace.nonenestedtastedpasted17. _________ is used to add a new line at the end of the line.sendlendlnonedendl18. Both data members and function members of a class can be declared as ___________.dynamicstaticfunctionnone19. __________ is a programming technique that relies on the separation of interface andimplementation.layeraddressdata abstractionnone20. __________ are the foundation of generic programming, which involves writing code in away that is independent of any particular type.classesnonetemplatescontainer21. The _____________ are the directives, which give instructions to the compiler to preprocessthe information before actual compilation starts.datanonestructurePreprocessors22. The predefined object _______ is an instance of ostream class.clogblogdlognone23. The process of selecting the most appropriate overloaded function or operator is called ____overload resolution.noneresolutionaddress.24. A _____________ function is permitted full access to private and protected members of aclass.noneenemyfriendconstructor25. Classess that can be used to instantiate objects are called ______________.classesconcrete classesobject classnone26. We can avoid prepending of namespaces with the ______________ directive.dotspacenonewhitespaceusing namespace27. A _______ inheritance deriving from a protected base class.privatepublicnoneprotected28. C++ exception handling is built upon ___________keywordsthreeonetwonone29. What are the ________ types of inheritance ?threenoneonetwo30. A class is made abstract by declaring at least one of its function as ____________ functionnonepure virtualvirtualimpure virtual31. if bytes flow from main memory to a device like a display screen this output is called________datanoneinput operationoutput operation32. ___________ can be used to allocate the memory dynamically when program runs.nonedatastackheap33. A _______ inheritance deriving from a class from a public base class.dataprivatenonepublic34. A ____________ inheritance deriving from a private base class.protectedprivatepublicnone35. C++ allow you to specify more than one definition for a function name in the same scope iscalled ___________.function overloadingdata overloadingoperator overloadingnone36. is a standard library which provides cin and cout methods for reading from standardinput and writing to standard output respectively.addressiostreamdatanone37. Exceptions can be thrown anywhere within a code block using ___________ statement.nonethrowdatablow38. An __________ is created from a classnonefunctiondataobject39. ___________file declares services useful for performing formatted I/O with so-calledparameterized stream manipulators.none40. A __________ can be defined in several parts and so a namespace is made up ofthe sum of its separately defined parts.whitespacenamespacedotspacenone41. A class ___________ is a special function in a class that is called when a new object of theclass is created.destructornoneInlineconstructor42. Memory in C++ program is divided into ____________ partsthreetwoonenone43. ___________ represent the output file stream and is used to create files and to writeinformation to files.noneofstreamifstreamunionA class is used to specify the form of an _________.44. A ________________ is designed to overcome this difficulty and is used additionalinformation to differentiate similar function , classes, variables.namespacewhitespacenoneblackspace45. We can use ____________ to define functions as well as classes.templatesnoneobjectsdata46. _____________ is used to allocate memory dynamically for any data-type.new operatorblank operatordata operatornone47. An ______________ is a problem that arises during the execution of a program.unionnoneexceptionaddress48. A ________________ is also a special function which is called when created object is deleted.destructorconstructorInlinenone49. The main purpose of of C++ programming is to add _____________ to the C programminglanguage.function orientationdata orientationobject orientationnone50. All variables declared inside the function will take up memory from the _______.datastacknoneheapPlease fill in the comment box below. Time is Up!