Online Test for C++

  1. Who is father of C++ Language?
    Dr. E.F. Codd
    James A. Gosling
    Bjarne Stroustrup
    Dennis Ritchie

  1. Sub classes may also be called Child classes/Derived classes.
    True
    False


  1. In how many ways is polymorphism achived in C++?
    2
    3
    1
    4

  1. _________ 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.
    Overloading
    Inheritance
    Polymorphism
    Encapsulation

  1. In object oriented programming, by wrapping up characteristics and behavior into one unit, we achieve
    Data Abstraction
    Data Encapsulation
    Data Hiding
    All of these

  1. 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.
    Overloads
    Friendships
    Inherits
    Overrides


  1. Data members is also called?
    Attribute
    Method
    Class
    Object

  1. The Object is not declared for which class?
    Parent
    Base
    Abstract
    Derived

  1. What is pointer?
    The variable that stores the reference to another variable
    The variable that stores reference of garbage variable
    The variable that stores the memory address of another variable
    A & C Both

  1. Which of the following correctly describes overloading of functions?
    Virtual polymorphism
    Transient polymorphism
    Ad-hoc polymorphism
    Pseudo polymorphism

Post Your Question
Social Sharing
Search