Vidyalelo
Python · Q27

Classes and Objects in Python

Programming · Python · question 27

Q27

What is setattr() used for?

A.
To access the attribute of the object
B.
To set an attribute
Answer
C.
To check if an attribute exists or not
D.
To delete an attribute

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board