Python Object-Oriented Python क्विज़

Classes से अपने खुद के types बनाएँ. Objects, __init__ और self, inheritance, dunder methods और properties की practice करें, यानी वे tools जो आपकी use की हर Python library के पीछे हैं.

इंटरमीडिएट 5 क्विज़ · 50 सवाल लगभग 32 मिनट
0/5पास कैटेगरी एग्ज़ाम 20 मिले-जुले सवाल। 80% पर सर्टिफ़िकेट।
टैग:
1 Classes और Objects आसान सीखें कि classes, objects, class attributes और instance attributes आपस में कैसे जुड़ते हैं. #oop#classes 10 सवाल · ~5 मिनट शुरू नहीं किया शुरू करें
2 __init__ और self आसान __init__ से नए objects set up करें और समझें कि self असल में क्या है. #oop#constructors 10 सवाल · ~5 मिनट शुरू नहीं किया शुरू करें
3 Inheritance मीडियम Inheritance, method overriding और super() से classes को reuse और extend करें. #oop#inheritance 10 सवाल · ~6 मिनट शुरू नहीं किया शुरू करें
4 Dunder Methods कठिन अपनी classes को print, ==, +, len, in, sorted और function calls के साथ काम करने लायक बनाएँ. #oop#dunder-methods 10 सवाल · ~8 मिनट शुरू नहीं किया शुरू करें
5 Properties और Class Methods कठिन @property, setters, @classmethod और @staticmethod use करें, और उनके traps से बचें. #oop#properties 10 सवाल · ~8 मिनट शुरू नहीं किया शुरू करें