Correct answer is : B
__a is a private variable to class A . So self.__a = 2 in class B will nvever change it .
So display() method which is available in A class will only access __a of A which is 1
As self.b = 7 changes the value of b , the answer will be 1 7
Comment here: