New ! Computer Science MCQ Practise Tests



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

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

    Multiple Choice Question

    10 x 1 = 10
  1. Which of the following are the key features of an Object Oriented Programming language?

    (a)

    Constructor and Classes

    (b)

    Constructor and Object

    (c)

    Classes and Objects

    (d)

    Constructor and Destructor

  2. Functions defined inside a class:

    (a)

    Functions

    (b)

    Module

    (c)

    Methods

    (d)

    section

  3. Class members are accessed through which operator?

    (a)

    &

    (b)

    .

    (c)

    #

    (d)

    %

  4. Which of the following method is automatically executed when an object is created?

    (a)

    __object__( )

    (b)

    __del__( )

    (c)

    __func__( )

    (d)

    __init__( )

  5. A private class variable is prefixed with

    (a)

    __

    (b)

    &&

    (c)

    ##

    (d)

    **

  6. Which of the following method is used as destructor?

    (a)

    __init__( )

    (b)

    __dest__( )

    (c)

    __rem__( )

    (d)

    __del__( )

  7. Which of the following class declaration is correct?

    (a)

    class class_name

    (b)

    class class_name<>

    (c)

    class class_name:

    (d)

    class class_name[ ]

  8. 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

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

    (a)

    __num

    (b)

    ##num

    (c)

    $$num

    (d)

    &&num

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

    (a)

    Constructor

    (b)

    Destructor

    (c)

    Initialize

    (d)

    Instantiation

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

Reviews & Comments about 12th StandardComputer Science English Medium - Python Classes and Objects 1 Mark Book Back Question Paper and Answer Key 2022 - 2023

Write your Comment