Q. Which of the following is correct for creating an object in Python?

  • (A) obj = class()
  • (B) class obj = new A()
  • (C) obj = A()
  • (D) object obj = A
πŸ’¬ Discuss
βœ… Correct Answer: (C) obj = A()
Explanation: The syntax `obj = A()` is used to create an object of class A in Python.
Explanation by: Mr. Dubey
The syntax `obj = A()` is used to create an object of class A in Python.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
91
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate