Stocks are closing out a volatile quarter with another surge in technology companies, which have been on a roller-coaster ride this week, the AP reports. The gains Thursday weren't enough to erase the market's first quarterly loss since 2015. After years of slow-and-steady growth, the market plunged in early February, marking its first 10% drop in two years. Facebook jumped 4%, clawing back some of the ground it's lost recently amid a widening privacy scandal. Banks and retailers also rose. The S&P 500 rose 36 points, or 1.4%, to 2,641. The Dow Jones industrial average rose 310 points, or 1.3%, to 24,158. The Nasdaq composite gained 114 points, or 1.6%, to 7,063.