New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Python Classes and Objects English Medium Free Online Test One Mark Questions 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. 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. Class members are accessed through which operator?

    (a)

    &

    (b)

    .

    (c)

    #

    (d)

    %

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

    (a)

    __num

    (b)

    ##num

    (c)

    $$num

    (d)

    &&num

  4. Which of the following is not an object oriented language?

    (a)

    C

    (b)

    C++

    (c)

    Java

    (d)

    Python

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

    (a)

    self

    (b)

    this

    (c)

    class

    (d)

    object

  6. In Python, constructor must begin and end with

    (a)

    __ and __

    (b)

    __ and __

    (c)

    + + and + +

    (d)

    + - and - +

  7. Which of the following gets executed automatically when an object exit from the scope?

    (a)

    Destructor

    (b)

    Constructor

    (c)

    Class

    (d)

    Object

  8. Which of the following is a valid private variable in python?

    (a)

    - i

    (b)

    .i -

    (c)

    - - i

    (d)

    i - -

  9. ______ and_____ are the key features of object oriented programming.

    (a)

    List and tuples

    (b)

    Set and dictionary

    (c)

    Classes and objects

    (d)

    Variables and methods

  10. In Python, the class method must name the first argument named as ___________

    (a)

    this

    (b)

    new

    (c)

    self

    (d)

    var

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

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

Write your Comment