Which of the following expression evaluate to True? (Select two answers)
A)
B)
C)
D)
Answer : C, D
What is the expected output of the following snippet?
Answer : B
Which of the listed actions can be applied to the following tuple? (Select two answers)
Answer : A, D
A class constructor (Select two answers)
Answer : B, C
Python's built-in function named open () tries to open a file and returns:
Answer : C
The simplest possible class definition in Python can be expressed as:
Answer : A
The first parameter of each method:
Answer : D
The first argument of every class method, including init, is always a reference to the current instance of the class. By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called