U.S. stocks rose Monday, erasing sharp losses from earlier in the session, as shares of technology companies rebounded. Earlier, stocks declined on investor concern over a flattening U.S. yield curve—which can predict an economic downturn—and a delayed vote on Britain exiting the European Union. In U.S. economic news, job openings rose 1.7 percent to 7.1 million, the second-highest on record, in October. The number of people hired also climbed, but the number of those who quit their jobs—an indicator of worker confidence in the labor market—dropped modestly. The U.S. dollar rose versus a basket of other currencies, as the British pound plunged to a 21-month low after Prime Minister Theresa May delayed a Parliament vote on Brexit. Gold declined as the dollar firmed, but the metal remained near a five-month high because of stock-market volatility and the chance of a slower pace in U.S. interest-rate increases in 2019. Futures for February delivery dropped $3.20 to $1,249.40 an ounce on the New York Mercantile Exchange. The Dow Jones industrial average rose 34.31, or 0.1 percent, to 24,423.26, after dropping more than 500 points earlier in the session. Sixteen of the index's 30 components gained, led by technology giants Microsoft and Intel, which surged 2.6 and 2.1 percent, respectively. J.P. Morgan Chase and Exxon Mobil led decliners, dropping 1.9 and 1.4 percent, respectively. The broader Standard & Poor's 500 index rose 4.64, or 0.2 percent, to 2,637.72. Earlier, it fell below its recent October low. The technology-heavy Nasdaq composite index rose 51.27, or 0.7 percent, to 7,020.52. Facebook shares rose 3.2 percent, while Amazon, Netflix, and Google-parent Alphabet each rose more than 0.6 percent. Apple erased a more than 2 percent plunge to close 0.7 percent higher.