New ! Computer Science MCQ Practise Tests



Python Classes and Objects 2 Mark Book Back Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:30: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 Computer Science English Medium - Python Classes and Objects 2 Mark Book Back Question Paper and Answer Key 2022 - 2023

Write your Comment