New ! Computer Science MCQ Practise Tests



11th Standard Computer Science Inheritance English Medium Free Online Test One Mark Questions 2020 - 2021

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:10:00 Hrs
Total Marks : 10

    Answer all the questions

    10 x 1 = 10
  1. Which of the following is the process of creating new classes from an existing class

    (a)

    Polymorphism

    (b)

    Inheritance

    (c)

    Encapsulation

    (d)

    super class

  2. 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)

  3. Which of the following feature of oops acquires the properties of the existing class?

    (a)

    polymorphism

    (b)

    Encapsulation

    (c)

    Inheritance

    (d)

    Data abstraction

  4. A class that inherits from a super class is called________.

    (a)

    sub class

    (b)

    nested class

    (c)

    super class

    (d)

    base class

  5. Which of the following class is a power packed class?

    (a)

    sub class

    (b)

    child class

    (c)

    derived class

    (d)

    all of these

  6. Which of the following principle supports transitivity?

    (a)

    Inheritance

    (b)

    Polymorphism

    (c)

    Encapsulation

    (d)

    abstraction

  7. How many visibility modes are there in c++?

    (a)

    2

    (b)

    4

    (c)

    3

    (d)

    6

  8. Which of the following base class members can be accessed by derived class?
    (i) private
    (ii) protected
    (iii) public

    (a)

    only (i)

    (b)

    only (ii)

    (c)

    both (ii) and (iii)

    (d)

    both (i) and (ii)


  9. The order of inheritance by derived class to inherit the base in the above diagram ________.

    (a)

    left to right

    (b)

    right to left

    (c)

    bottom to top

    (d)

    top to bottom

  10. In multiple inheritance the level of inheritance is extended upto _________ 

    (a)

    2

    (b)

    3

    (c)

    5

    (d)

    many

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

Reviews & Comments about 11th Standard Computer Science Inheritance English Medium Free Online Test One Mark Questions 2020 - 2021

Write your Comment