Computer Science - Object-Oriented Programming - Classes and objects - Class Design Quiz

8 questions. Q1: What is 'self' in a Python class? → The current instance of the class. Q2: What does __init__ do? → Initializes new objects when they're created. Q3: Given: class Dog: def __init__(self, name): self.name = name → How to create a Dog? → d = Dog('Rex'). Q4: What's wrong? class Cat: de

Edodovivmagarwal
Computer Science - Object-Oriented Programming - Classes and objects - Class Design Quiz
Log in

Preparing your experience...

Loading scripts and resources

Comments (0)

0/5000

Comments are reviewed before appearing publicly.

About this Experience

Computer Science - Object-Oriented Programming - Classes and objects - Class Design Quiz

vivmagarwal
vivmagarwalJan 29, 2026

Description

8 questions. Q1: What is 'self' in a Python class? → The current instance of the class. Q2: What does __init__ do? → Initializes new objects when they're created. Q3: Given: class Dog: def __init__(self, name): self.name = name → How to create a Dog? → d = Dog('Rex'). Q4: What's wrong? class Cat: de

Details

Computer ScienceObject-Oriented ProgrammingClass 9, Class 9, Stage 9, Grade 9

Engagement

16

Likes

0

Remixes

0

Comments