New ! Computer Science MCQ Practise Tests



12th Standard English Medium Computer Science Subject Python Classes and Objects Book Back 1 Mark Questions with Solution Part - II

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

    1 Marks

    5 x 1 = 5
  1. Which of the following method is used as destructor?

    (a)

    __init__( )

    (b)

    __dest__( )

    (c)

    __rem__( )

    (d)

    __del__( )

  2. Which of the following class declaration is correct?

    (a)

    class class_name

    (b)

    class class_name<>

    (c)

    class class_name:

    (d)

    class class_name[ ]

  3. Which of the following is the output of the following program?
    class Student:
    def __init__(self, name):
    self.name=name
    print (self.name)
    S=Student(“Tamil”)

    (a)

    Error

    (b)

    Tamil

    (c)

    name

    (d)

    self

  4. Which of the following is the private class variable?

    (a)

    __num

    (b)

    ##num

    (c)

    $$num

    (d)

    &&num

  5. The process of creating an object is called as:

    (a)

    Constructor

    (b)

    Destructor

    (c)

    Initialize

    (d)

    Instantiation

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

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

Write your Comment