Online Test for C++

  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 is not a member of class?
    Static function
    Friend function
    Const function
    Virtual function


  1. ________ is the mechanism which allows a class A to inherit properties of a class B.
    Data abstraction
    Encapsulation
    Inheritance
    Polymorphism

  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. Which of the following cannot be passed to a function in C++?
    Constant
    Structure
    Array
    Header file

  1. ________ is a default access specifier for members of class in C++.
    protected
    public
    private
    default


  1. In c++ object of the class is also called?
    Constants
    Tag
    Instance
    Data collection

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

  1. If class A inherits from more than one class, ie. A inherits from B1, B2,... is called
    Single Inheritance
    Multilevel Inheritance
    Multiple Inheritance
    None of the above

  1. ________ is a default access specifier for members of structures in C++.
    protected
    public
    private
    default

Post Your Question
Social Sharing
Search