Stocks rose, rebounding from consecutive declines, following strong quarterly results from Cisco Systems and Wal-Mart.