🎙 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 12 of 15

What is the difference between a class and an object?

What is the difference between a class and an object?

  1. A.A class is a blueprint; an object is one thing made from it
  2. B.An object is a blueprint; a class is made from it
  3. C.They are two names for the same thing
  4. D.A class holds data; an object holds only methods
Answer & explanation

Correct answer: A class is a blueprint; an object is one thing made from it

Student is the class; Student("Asha", 90) creates one object (instance) of it.

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 →