Online Test for C++

  1. Which of the following is not a member of class?
    Static function
    Friend function
    Const function
    Virtual function

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


  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

  1. A __________ is a special method used to initialize the instance variable of a class.
    Member function
    Destructor
    Constructor
    Structure

  1. It is not possible to achieve inheritance of structures in c++?
    True
    False

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


  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. Which of the following is user defined data type?
    Public
    Private
    Class
    A & B Both

  1. What is a size of empty class in c++?
    4 bytes
    2 bytes
    0 bytes
    1 bytes

  1. Which of the following cannot be passed to a function in C++?
    Constant
    Structure
    Array
    Header file

Social Sharing
Search