Home / MCQ Bank / Computer
Computer Concept Of Object Oriented Programs In Python Difficulty: Medium

What will be the output of the following Python code? class objects: def __init__(self): self.colour = None self._shape = "Circle" def display(self, s): self._shape = s obj=objects() print(obj._objects_shape)

Select the correct option to test your answer:

More Computer Questions

“Ctrl + Down Arrow” Shortcut key is used in Ms Word to____________? What is the purpose of a test suite in Ruby testing? What will be the output of the following C code? #include <stdio.h> int x; void main() { if (x) printf("hi"); else printf("how are u"); } If b is a dictionary, what does any(b) do? In PHP, how is the first element accessed if $a represents an array with numeric indices?