Stocks rise in bumpy session amid Apple bounce, oil rebound