New ! Computer Science MCQ Practise Tests



12th Standard English Medium Computer Science Subject Python Classes and Objects Creative 1 Mark Questions with Solution Part - I

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 called as instances of a class or class variable?

    (a)

    Methods

    (b)

    Objects

    (c)

    Functions

    (d)

    Datatypes

  2. Write the output for the following
    class test
    x, y = 10,5
    s=test ()
    print (s. x + s. y)

    (a)

    10

    (b)

    5

    (c)

    15

    (d)

    105

  3. Which of the following is sed to initialize the class variables?

    (a)

    Destructor

    (b)

    Object

    (c)

    Constructor

    (d)

    Classmember

  4. Class variable and methods are together known as _______ of the class

    (a)

    Objects

    (b)

    Functions

    (c)

    Statements

    (d)

    Members

  5. In Python, ____________ method is used as destructor.

    (a)

    - - init - - ()

    (b)

    - - des - - ()

    (c)

    - - del - - ()

    (d)

    - - destructor - - ()

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

Reviews & Comments about 12th Standard English Medium Computer Science Subject Python Classes and Objects Creative 1 Mark Questions with Solution Part - I

Write your Comment