The correct answer is (a) forward
Best explanation: For the generator, the electromagnetic torque produced is in the opposite direction and so the induced current. So to eliminate the sparking the brushes should be shifted in the forward direction of rotation.