C++ interview preparation Quiz 3 Welcome to your Fresher Interview Preparation - C++ Skills - 3 Name Email Phone Number 1. We can use ____________ to define functions as well as classes.objectstemplatesdatanone2. The predefined object _______ is an instance of ostream class.blogclognonedlog3. ___________ represent the input file stream and is used to read information from files.noneunionifstreamofstream4. C++ exception handling is built upon ___________keywordstwononethreeone5. The data and functions within a class are called ______ of the classunionnonememberfunction6. What are the ________ types of inheritance ?nonethreeonetwo7. A ____________ inheritance deriving from a private base class.protectedpublicprivatenone8. __________ are the foundation of generic programming, which involves writing code in away that is independent of any particular type.containertemplatesclassesnone9. _______________ means having many forms.nonedataInheritancepolymorphism10. All C++ programs are composed of the following ________ fundamental elements.onetwononethree11. _____________ is used to allocate memory dynamically for any data-type.data operatornonenew operatorblank operator12. A _____________ function is permitted full access to private and protected members of aclass.constructornoneenemyfriend13. A ________________ is designed to overcome this difficulty and is used additionalinformation to differentiate similar function , classes, variables.nonenamespaceblackspacewhitespace14. The purpose of an ________ is to provide an appropriate base class from which other classescan inherit.datanoneabstract classabstract object15. ______________ is a mechanism of bundling the data and the functions that use them.addressnoneunionData encapsulation16. An __________ is created from a classobjectfunctiondatanone17. We can avoid prepending of namespaces with the ______________ directive.nonewhitespaceusing namespacedotspace18. A __________ can be defined in several parts and so a namespace is made up ofthe sum of its separately defined parts.dotspacenonewhitespacenamespace19. ___________ represent the output file stream and is used to create files and to writeinformation to files.ifstreamnoneofstreamunion20. A _______ inheritance deriving from a class from a public base class.datanoneprivatepublic21. Both data members and function members of a class can be declared as ___________.nonedynamicfunctionstatic22. A class is used to specify the form of an _________.objectclassnonestructure23. __________ is a programming technique that relies on the separation of interface andimplementation.layeraddressdata abstractionnoneA class is used to specify the form of an _________.24. ___________ can be used to allocate the memory dynamically when program runs.heapstackdatanone25. Memory in C++ program is divided into ____________ partsthreetwoonenone26. ____________ may be used more than once in a single statement.insertion operatoroperatornonedata27. __________file declares services for user-controlled file processing.none28. The main purpose of of C++ programming is to add _____________ to the C programminglanguage.data orientationfunction orientationnoneobject orientation29. Classess that can be used to instantiate objects are called ______________.concrete classesnoneobject classclasses30. ___________file declares services useful for performing formatted I/O with so-calledparameterized stream manipulators.none31. is a standard library which provides cin and cout methods for reading from standardinput and writing to standard output respectively.datanoneiostreamaddress32. _____________ allows us to define a class in terms of another class, which makes it easier tocreate and maintain an application.inheritance.derivednonebase33. The _____________ are the directives, which give instructions to the compiler to preprocessthe information before actual compilation starts.structurePreprocessorsdatanone34. We use the __________________ to access any member of a structure.structuremember access operator (.)unionnone35. _________ is used to add a new line at the end of the line.dendlendlsendlnone36. 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 ________staticlinkagenonedynamic linkage37. if bytes flow from main memory to a device like a display screen this output is called________output operationnonedatainput operation38. A class is made abstract by declaring at least one of its function as ____________ functionimpure virtualnonepure virtualvirtual39. A ________________ is also a special function which is called when created object is deleted.Inlineconstructornonedestructor40. An ______________ is a problem that arises during the execution of a program.unionexceptionnoneaddress41. All variables declared inside the function will take up memory from the _______.noneheapstackdata42. C++ allow you to specify more than one definition for a function name in the same scope iscalled ___________.operator overloadingfunction overloadingdata overloadingnone43. Namespaces can be ________ where you can define one namespace inside anothernamespace.tastedpastednonenested44. A _______ inheritance deriving from a protected base class.publicnoneprivateprotected45. C++ allow you to specify more than one definition for an operator in the same scope is called___________.data overloadingfunction overloadingnoneoperator overloading46. A class ___________ is a special function in a class that is called when a new object of theclass is created.destructornoneInlineconstructor47. Exceptions can be thrown anywhere within a code block using ___________ statement.datablownonethrow48. ____________ is another user defined data type which allows you to combine data items ofdifferent kinds.arraynoneunionstructure49. The process of selecting the most appropriate overloaded function or operator is called ____noneoverload resolution.resolutionaddress.50. ____________ has the capabilities of both ofstream and ifstream.noneaddressfstreamunionPlease fill in the comment box below. Time is Up!