Exports rose for the first time in five months as shipments of chips and electronic parts advanced, while goods destined for the U.S. continued to decline.