The correct option is
D Sphere A is positive while sphere B is negative.
In figure 1, the electrons in the spheres repel from those on the rod and collect towards right. Hence a positive charge accumulates on the left sphere.
Then the two spheres and the rod are separated. Finally, the left sphere attains positive charge and right sphere attains negative charge.