Python Class MCQs

Question 1: Is the following class valid?

class Employee:
    empid=0
    name=""
    def __init__(id,name):
	    empid=id    
        name=name

Question 2: A class may contain

Question 3: What is TRUE about the class attributes?

Question 4: What is 'self' in Python?

Question 4: What is the name of the constructor method in the Python class?

Question 5: Which of the following statement is correct?

Question 6: How to define a property in the class in Python?

Question 7: How to define a static method in Python?

Question 8: All the members of the class are _______ by default.

Question 9: Can we declare private members in Python?