the back-and-forth movement of electrons is called alternating current. Electrons go back and forth, the direction of their path alternates from one direction to another.
the movement of electrons in one direction is called direct current. The electrons move in a direct, single path without changing directions.