U.S. stocks surged on Tuesday, with the Dow Jones Industrial Average rising triple digits and the Nasdaq Composite turning positive for the year, as Federal Reserve Chair Janet Yellen reassured Wall Street that the Fed would continue the central bank's policy of providing monetary stimulus to bolster the economy.

(Read more: Yellen speaks; The market loves it)



"The market does not want uncertainty, and she certainly didn't deliver any surprises," said Dorothy Weaver, co-founder of Collins Capital and former chairman of the Federal Reserve Bank in Miami.

"She hit the right notes; the theme of the day is continuity. If there were one area where she made news, it was her view that cyclical issues are still hanging over the economy, and additional Fed stimulus is likely," said Dan Greenhaus, chief global strategist at BTIG.

(Read more: Yellen just added pressure on emerging markets)

The market rally is "principally due to the fact that Janet Yellen did nothing to spook the market, directly or inadvertently. In fact, she did quite the opposite. I think the market is relieved by her commentary, that she's going to remain extremely accommodative," said Mark Luschini, chief investment strategist at Janney Montgomery Scott.



"A contributing factor is the fact that the Republicans are talking about a clean bill to raise the debt ceiling; the fiscal dysfunction has become a back story, so we're seeing the whole political circus beginning to fade," said Luschini, referring to the announcement Tuesday by House GOP leaders that they will this week advance an increase in the government's borrowing cap without any additional measures attached.



(Read more: GOP to present 'clean' debt limit bill: Boehner)



"She continues to give every signal that the Fed will continue to remain very accommodative; they understand there is more work to be done," said Alan Skrainka, chief investment officer at Cornerstone Wealth Management.

(Read more: Yellen defends Fed, saying these are 'unusual times')

In her prepared remarks before the House Financial Services Committee, Yellen stressed continuity in monetary policy and said the recovery in the labor market is far from finished.

Sprint shares jumped after the telecommunications company reported fourth-quarter revenue that beat expectations. CVS Caremark gained after the prescription drug provider tallied fourth-quarter profit above estimates.