πŸ“Š Python
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

πŸ‘οΈ
83
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate