This is not shown in A; so A can be ruled out. In B, C and D the sphere is polarized. But in B and C, the diagram shows the separation of charge in a manner that would indicate an attraction between like charges. On the other hand, D shows that the negative charge on the sphere is attracted to the positive tube.