New ! Computer Science MCQ Practise Tests



Python Classes and Objects 1 Mark Creative Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:15:00 Hrs
Total Marks : 15

    Multiple Choice Question 

    15 x 1 = 15
  1. Which of the following is not an object oriented language?

    (a)

    C

    (b)

    C++

    (c)

    Java

    (d)

    Python

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

    (a)

    Methods

    (b)

    Objects

    (c)

    Functions

    (d)

    Datatypes

  3. Functions of the class are called as

    (a)

    Methods

    (b)

    Members

    (c)

    Variables

    (d)

    Loog

  4. In Python, every class name followed by

    (a)

    ;

    (b)

    : :

    (c)

    .

  5. Which of the following with a valid class definition?

    (a)

    Class classname () staternent_1

    (b)

    Class classname : : statement_1

    (c)

    Class classname statement_1

    (d)

    Class classname staternent_1

  6. Which of the following is valid syntax for crating objects?

    (a)

    objectname = classname ()

    (b)

    objectname: classname ()

    (c)

    objectname = classname

    (d)

    classname = Objectname ()

  7. Which of the operator used to accessing members of the class?

    (a)

    .

    (b)

    ;

    (c)

    ,

  8. Which of the following can be accessed by using object with dot (.) operator?

    (a)

    List

    (b)

    Tuples

    (c)

    Dictionary

    (d)

    None of these

  9. Which of the following is valid syntax of accessing class members

    (a)

    objectname = classmember ()

    (b)

    objectname. classmember ()

    (c)

    objectname. classmember

    (d)

    objectname. classmember

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

  11. Which position of the argument named self in python class method?

    (a)

    First

    (b)

    Second

    (c)

    Third

    (d)

    Last

  12. Which argument doesn't need a value when we call the method?

    (a)

    this

    (b)

    self

    (c)

    var

    (d)

    first

  13. Which of the following argument values automatically by python?

    (a)

    self

    (b)

    this

    (c)

    class

    (d)

    object

  14. How many argument can be taken by Python method even when a method is defined with one argument?

    (a)

    1

    (b)

    3

    (c)

    2

    (d)

    4

  15. Which of the following is automatically executed when an object of a class is created?

    (a)

    constructor

    (b)

    destructor

    (c)

    class

    (d)

    members

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

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

Write your Comment