🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Python OOP: all 15 questions

Quiz: Python OOP · Question 1 of 15

What does self refer to inside a method?

What does self refer to inside a method?

  1. A.The class itself
  2. B.The object the method was called on
  3. C.The parent class
  4. D.A global variable
Answer & explanation

Correct answer: The object the method was called on

self is the particular object (instance) that called the method.

Can you get the rest right without peeking?

Take the timed Quiz: Python OOP quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →