In a voltaic cell, electrical energy will be produced when

only oxidation occurs
only reduction occurs
both oxidaiton and reduction occur
neither oxidation nor reduction occurs

both oxidation and reduction occur