(a) due to both A and B
In Seebeck Effect, a temperature difference between two dissimilar electrical conductors produces a potential difference across the junctions of the two different metals. The cause of this potential difference is the diffusion of free electrons from a high electron-density region to a low electron-density region. The free electron-density of the electrons is different in different metals and changes with change in temperature. Hence, both the statements are the causes of Seebeck Effect.