New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Python Classes and Objects English Medium Free Online Test One Mark Questions with Answer Key 2020 - 2021

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

    Answer all the questions

    10 x 1 = 10
  1. Functions defined inside a class:

    (a)

    Functions

    (b)

    Module

    (c)

    Methods

    (d)

    section

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

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

    (a)

    Constructor

    (b)

    Destructor

    (c)

    Initialize

    (d)

    Instantiation

  4. Which of the following called as instances of a class or class variable?

    (a)

    Methods

    (b)

    Objects

    (c)

    Functions

    (d)

    Datatypes

  5. In Python, every class name followed by

    (a)

    ;

    (b)

    : :

    (c)

    .

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

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

    (a)

    Destructor

    (b)

    Object

    (c)

    Constructor

    (d)

    Classmember

  8. ________ is the main building block in python.

    (a)

    Objects

    (b)

    Methods

    (c)

    Constructors

    (d)

    Class

  9. ________ may be a variable declaration, decision control, loop or even a function definition.

    (a)

    Class members

    (b)

    Class instantiation

    (c)

    Class method

    (d)

    Class definition

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

    (a)

    Objects

    (b)

    Functions

    (c)

    Statements

    (d)

    Members

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

Reviews & Comments about 12th Standard Computer Science Python Classes and Objects English Medium Free Online Test One Mark Questions with Answer Key 2020 - 2021

Write your Comment