Q. Which prefix indicates a protected attribute?

A
__salary
B
salary__
C
_salary
D
salary
Solution:

_salary indicates a protected attribute, a convention in Python.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!