All mock tests are FREE till 31 December — register to save your progress
Unit 3 · Programming Concepts & Python HTET 2023 PGT Computer Science

In Python instance methods use ........... as first default parameter.

इंस्टेंस मैथड्स प्रथम डिफॉल्ट पैरामीटर के रूप में ------------- का उपयोग करते हैं।

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. self

Explanation

Instance methods receive the object itself as the first parameter, named self by convention.

इंस्टेंस मेथड का पहला पैरामीटर स्वयं ऑब्जेक्ट होता है, जिसे परंपरा से self कहते हैं।

More Programming Concepts & Python questions