NEW YORK (CNNMoney) -- U.S. stocks ended Friday's session mixed, as strong gains in the technology sector were offset by disappointing results from industrial conglomerate Caterpillar.
The tech-heavy Nasdaq Composite () gained 24 points, or 0.9%, to 2,859. The index climbed roughly 2.5% for the week.
The Nasdaq's Friday advance was fueled primarily by two chip makers: Sandisk (Fortune 500) -- after both companies posted better-than-expected results and raised their full-year revenue forecasts. Sandisk shares climbed 10% while AMD shares jumped 19%.) and Advanced Micro Devices ( ,
Both companies' gains spilled over into other Nasdaq-traded tech firms, including Micron (Fortune 500), Microchip Technology ( ) and Seagate ( ), which were all up 2% or more.,
The Dow Jones industrial average () lost 43 points, or 0.3%, to close at 12,681; and the S&P 500 added slightly more than a point to close at 1,345. The Dow rose 1.4% for the week and the S&P rose more than 2%.
Caterpillar (Fortune 500) shares were the biggest drag on the Dow, sinking nearly 6%. The construction equipment maker was the weakest member of Dow and the fourth -worst performer on the S&P 500 ( ), which was up 2 points. Caterpillar's earnings fell short of forecasts.,
"There were pretty high expectations for Caterpillar heading into its earnings this season," said Anthony Conroy, head trader with BNY ConvergEx. "Despite their miss, I'm still optimistic for this earnings season."
While some more bearish traders pointed to Caterpillar's results as a sign there is still weakness in the economy, others felt that Caterpillar's weakness appeared to be more temporary.
"The problem with Caterpillar was, by and large, Japan," said Phil Orlando, market strategist with Federated Investors. "Caterpillar is just one of many companies who can point to the supply chain problems following the Japanese earthquake. I think it sets them up for a stronger second half of the year."
Other industrial conglomerates such as General Electric (Fortune 500) and Honeywell ( , Fortune 500) which also reported Friday, had decidedly better results, which Orlando said is an indication that Caterpillar's problems seem to be isolated.,
Friday's weakness came a day after U.S. stocks surged, following news that European leaders reached an agreement to contain Greece's debt crisis.
The aid package, which officials said will cover all of Greece's financing needs, involves lowering interest rates and extending the payback period on existing loans to Greece from the EU and International Monetary Fund.
"The outlook for both the U.S. and Europe is clearly getting better but it's not over yet," Conroy said.
CoinStar () shares dropped 8%, after the head of the company's RedBox unit unexpectedly resigned on Friday. CoinStar makes the bulk of its profits from RedBox.
Shares of Verizon (Fortune 500) fell 3%, after the company announced it didn't sell as many iPhones as anticipated, despite reporting stronger-than-expected earnings. The company reported quarterly earnings per share of 57 cents, topping analyst estimates by 2 cents.,
Former Dow member Honeywell (Fortune 500) beat analyst estimates with second-quarter earnings of $1.02 per share. The company reported revenue of $9.1 billion, excluding $234 million from a newly discontinued operation. Shares fell about 3%.,
McDonald's (Fortune 500) reported earnings of $1.35 per share, compared to $1.13 in year-ago quarter. Shares rose 2% - making it the best-performing stock on the Dow.,
Oil for September delivery rose 74 cents to $99.87 a barrel.
Gold futures for August delivery climbed $14.50 to $1,601.50 an ounce.
Bonds: The price on the benchmark 10-year U.S. Treasury rose, pushing the yield down to 2.98% from 3.01% late Thursday.
World markets: European stocks ended modestly higher. Britain's FTSE 100 climbed 0.6%, France's CAC 40 gained 0.7% and the DAX in Germany rose 0.5%.
|What we want Apple to unveil at WWDC|
|Millennials squeezed out of buying a home|
|7 traits the rich have in common|
|Big Data knows you're sick, tired and depressed|
|Your car is a giant computer - and it can be hacked|
|Overnight Avg Rate||Latest||Change||Last Week|
|30 yr fixed||3.88%||3.83%|
|15 yr fixed||2.84%||2.96%|
|30 yr refi||3.92%||3.94%|
|15 yr refi||2.94%||3.05%|
Today's featured rates: