(a) : “Unit positive charge” will be repelled by A and B and attracted by – q and – q downwards in the same direction. If they are exchanged, the direction of the field will be opposite. In the case of potential, as it is a scalar, they cancel each other whatever may be their position.
Therefore, Field is affected but not the potential.