If an electric appliance is operating without being plugged into an electric socket, then it is being powered by batteries.