New ! Computer Science MCQ Practise Tests



11th Standard English Medium Computer Science Subject Inheritance Book Back 1 Mark Questions with Solution Part - II

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 5

    1 Marks

    5 x 1 = 5
  1. A class is derived from a class which is a derived class itself, then this is referred to as

    (a)

    multiple inheritance

    (b)

    multilevel inheritance

    (c)

    single inheritance

    (d)

    double inheritance

  2. Which amongst the following is executed in the order of inheritance?

    (a)

    Destructor

    (b)

    Member function

    (c)

    Constructor

    (d)

    Object

  3. Which of the following is true with respect to inheritance?

    (a)

    Private members of base class are inherited to the derived class with private.

    (b)

    Private members of base class are not inherited to the derived class with private accessibility

    (c)

    public members of base class are inherited but not visible to the derived class.

    (d)

    Protected members of base class are inherited but not visible to the outside class.

  4. class vehicle
    { int wheels;
    public:
    void input_data(float,float);
    void output_data();
    protected:
    int passenger;
    };
    class heavy_vehicle : protected vehicle {
    int diesel_petrol;
    protected:
    int load;
    public:
    void read_data(float,float)
    void write_data(); };
    class bus: private heavy_vehicle {
    char Ticket[20];
    public:
    void fetch_data(char);
    void display_data(); };
    Which is the base class of the class heavy_vehicle?

    (a)

    Bus

    (b)

    heavy_vehicle

    (c)

    Vehicle

    (d)

    Both (a) and (c)

  5. class vehicle
    { int wheels;
    public:
    void input_data(float,float);
    void output_data();
    protected:
    int passenger;
    };
    class heavy_vehicle : protected vehicle {
    int diesel_petrol;
    protected:
    int load;
    public:
    void read_data(float,float)
    void write_data(); };
    class bus: private heavy_vehicle {
    char Ticket[20];
    public:
    void fetch_data(char);
    void display_data(); };
    The member function that can be accessed by an objects of bus Class is

    (a)

    input data(), output _data()

    (b)

    read _data() ,write _data()

    (c)

    fetch _data(), display_data()

    (d)

    All of these

*****************************************

Reviews & Comments about 11th Standard English Medium Computer Science Subject Inheritance Book Back 1 Mark Questions with Solution Part - II updated Book back Questions

Write your Comment