Online Test for C++

  1. Member of a class specified as _______ are accessible only to method of the class.
    private
    public
    protected
    derive

  1. Which of the following operator(s) cannot be overloaded?
    . (Member Access or Dot operator)
    ?: (Ternary or Conditional Operator )
    :: (Scope Resolution Operator)
    All of the above


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

  1. The mechanism that binds code and data together and keeps them secure from outside world is known as
    Abstraction
    Encapsulation
    Inheritance
    Polymorphism

  1. The parameter list in function overloading must differ by?
    Number of functions
    Function Size
    Function Name
    Number of argument

  1. Which of the following concepts means adding new concepts to a program as it runs?
    Data hiding
    Dynamic loading
    Dynamic typing
    Dynamic binding


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

  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. ________ is a default access specifier for members of structures in C++.
    protected
    public
    private
    default

  1. C++ actually supports the following two complete dynamic systems?
    One defined by C++ and the other not defined by C
    One defined by C and one specific to C++
    Both are specific to C++
    Both of them are improvements of C

Post Your Question
Social Sharing
Search