Online Test for C++
- When a method in a subclass has the same name and type signatures as a method in the superclass, then the method in the subclass _____ the method in the super class.
OverloadsFriendshipsInheritsOverrides
- Which diagram provides a formal graphic notation for modelling objects, classes and their relationships to one another?
Object DiagramAnalysis DiagramInstance DiagramClass Diagram
- If class A inherits from class B, then B is called _______ of A. A is called ________ of B.
Super class, Sub classSubclass, Super classAbstract class, Base ClassChild class, Sub Class
- Important advantage of using new and delete operators in C++ is
Allocation of memoryFrees the memory previously allocatedAllocation of memory and frees the memory previously allocatedInitialization of memory easily
- C++ actually supports the following two complete dynamic systems?
One defined by C++ and the other not defined by COne defined by C and one specific to C++Both are specific to C++Both of them are improvements of C
- Data members is also called?
AttributeMethodClassObject
- Which of the following correctly describes overloading of functions?
Virtual polymorphismTransient polymorphismAd-hoc polymorphismPseudo polymorphism
- The mechanism that binds code and data together and keeps them secure from outside world is known as
AbstractionEncapsulationInheritancePolymorphism
- The goal of operator overloading is __________.
To help the user of a classTo help the developer of a classTo help define friend functionNone of the above
- _________ allows to create classes which are derived from other classes, so that they automatically include some of its "parent's" members, plus its own members.
OverloadingInheritancePolymorphismEncapsulation
Also Exercise
Post Your Question
Social Sharing
Facebook
Search
Articles
Recently Added Jobs
Rajasthan High Court - Jodhpur Recruitment 2017 for Civil Judges
Last Date: 21 December, 2017
Last Date: 21 December, 2017
WBSEDCL Recruitment - 2017 for Office Executive
Last Date: 16 May, 2017
Last Date: 16 May, 2017
RECRUITMENT OF PROBATIONARY OFFICERS IN STATE BANK OF INDIA
Last Date: 06 March, 2017
Last Date: 06 March, 2017
UPSC Combined Medical Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015
UPSC Engineering Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015