hiexam
python-institute · PCAP · Q604 · multiple_response · topic_1

What is true about Python class constructors? (Choose two.)

What is true about Python class constructors? (Choose two.)
  • A.there can be more than one constructor in a Python class
  • B.the constructor must return a value other than None
  • C.the constructor is a method named __init__
  • D.the constructor must have at least one parameter
Explanation
Selected Answer: CD C. the constructor is a method named __init__ D. the constructor must have at least one parameter <<<< at least it should have "self" parameter

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.