New ! Computer Science MCQ Practise Tests



12th Standard English Medium Computer Science Subject Python Classes and Objects Book Back 2 Mark Questions with Solution

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

    2 Marks

    5 x 2 = 10
  1. What is class?

  2. What is instantiation?

  3. What is the output of the following program?
    Class Sample:
    __num=10
    def disp(self):
    print(self.__num)
    S=Sample()
    S.disp()
    print(S.__num)

  4. How will you create constructor in Python?

  5. What is the purpose of Destructor?

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

Reviews & Comments about 12th Standard English Medium Computer Science Subject Python Classes and Objects Book Back 2 Mark Questions with Solution updated Book back Questions

Write your Comment