Updated from 4:10 p.m. EDTStocks ended a choppy session with modest gains Friday, snapping a streak in which all three major indices fell together for four weeks in a row, despite a disappointing report on second-quarter economic growth, soaring oil prices and reports of terrorist attacks at the American and Israeli embassies in Uzbekistan. The Dow Jones Industrial Average closed up 10.39, or 0.10%, to 10,139.63; the S&P 500 added 1.38 points, or 0.13%, to 1101.81; and the Nasdaq Composite was up 6.31 points, or 0.34%, to 1887.37. The 10-year Treasury note was trading up 26/32 to yield 4.47%, while the dollar was lower against the yen and slightly higher than the euro. Volume stayed typically light for a midsummer Friday, approaching 1.3 billion shares on the New York Stock Exchange, where advancers outnumbered decliners by about 3 to 2. On the Nasdaq, almost 1.5 billion shares changed hands, and advancers held close to a 5-to-4 majority. Semiconductor and biotechnology stocks showed particular strength, with the Philadelphia Semiconductor Index adding 1.3% and the American Stock Exchange Biotech Index up 0.8%. "Our opinion has been that if tech bounces, don't buy it. Sell it," said Doug Sandler, chief equity strategist with Wachovia Securities. "Some significant damage has been done on tech stocks, so it's going to be a while before they recover. But before every weekend, we seem to see caution on stocks and bullishness on oil. Nobody wants to be on the wrong side over the weekend." On the week, the Dow gained 1.8%, ending a five-week losing streak. The S&P added 1.4%, ending a six-week downturn, and the Nasdaq was up 2.1% after dropping four weeks in a row. All the indices remain below their starting point for 2004. The government said its advanced reading on second-quarter GDP-growth came in lower than expected at 3.0%, below the consensus estimate of 3.7%, but the first quarter's figure was revised up to 4.5% from the previously reported 3.9%. A steep drop-off in consumer spending accounted for most of the second-quarter weakness, slowing to an increase of only 1%, its lowest reading since 2001. In the first quarter, consumer spending rose by 4.1%.