NEW YORK — A sharp slowdown in economic growth propelled stocks higher Friday as the government's latest gross domestic product reading fed hopes for an end to interest rate hikes. The major indexes finished the week with a solid advance.

Investors bid shares higher after the Commerce Department said GDP growth tailed off by more than half to a 2.5 percent annual rate during the second quarter. The weaker-than-expected reading reinforced beliefs that the Federal Reserve may not need to hike interest rates further.

Wall Street's optimism overcame signs of rising inflation. The GDP report also said core consumer prices — excluding energy and food — surged 2.9 percent last quarter, while employment costs rose a stronger-than-expected 0.9 percent.

While investors have been spooked by any hint of rising prices, they likely set aside the GDP's inflation component because recent reports have shown a more benign trend, said Jeff Kleintop, chief investment strategist for PNC Financial Services Group. But he was uncertain if an anxious market would continue building on these gains.

"The catalysts needed to move this market one way or the other probably won't come until the fourth quarter," Kleintop said, citing events such as a definitive stance on interest rates, corporate guidance in a slower economy and developments in political conflicts overseas.

The Dow gained 119.27, or 1.07 percent, to 11,219.70 on Friday. The Dow jumped 230 points on Monday and Tuesday, and posted its best weekly point gain since May 2005.

Broader stock indicators also advanced. The Standard & Poor's 500 index added 15.35, or 1.22 percent, to 1,278.55, and the Nasdaq composite index climbed 39.67, or 1.93 percent, to 2,094.14.

The major indexes logged solid gains for the week, as corporate and economic news calmed investors' anxiety. Spectacular earnings signaled that businesses were still faring well despite higher lending costs and energy prices, while mild economic data pared the chances of more interest rate increases.

For the week, the Dow jumped 3.23 percent, the S&P 500 gained 3.08 percent and the Nasdaq climbed 3.65 percent.

Analysts, however, say erratic trading should continue until the Fed's Aug. 8 meeting on interest rates. The market has been nervous about the central bank's ability to peg rates where they will curb inflation but preserve economic growth.

"While market volatility will likely continue going forward, the outlook for investors continues to warrant a moderately bullish stance," Tim Swanson, chief investment officer of the National City's Private Client Group, wrote in a note to clients.

GDP growth was expected to slow from a brisk 5.6 percent annual rate in the first quarter, but the number came in below economists' forecast of 3 percent.

Although the Labor Department's employment cost index topped estimates for an 0.8 percent increase, Kleintop said investors perhaps were more focused on the longer-term downward trend in the amount companies were paying for employee benefits.

The University of Michigan's consumer sentiment index for July lost 0.2 points to 84.7. However, the report also showed Americans were increasingly upbeat about the economic outlook despite high gasoline prices and lending costs.