Stocks settled higher after a choppy session. Indexes had veered between losses and gains for much of the day as former FBI director James Comey testified before the Senate. During his hours-long appearance, Comey said the White House had lied in the aftermath of his firing. Yahoo!  (YHOO) rose after its shareholders approved the company's sale to Verizon (VZ) . The latter will reportedly cut around 15% of the Yahoo! and AOL workforce following the deal's closure. Snap  (SNAP) tumbled after Nomura analysts warned of slowing daily active user growth. The firm said worldwide downloads of the app had fallen 22% in the first two months of its second quarter compared to a year earlier. Alibaba  (BABA) climbed after forecasting another massive surge in full year revenue. China's biggest e-commerce company anticipated annual sales up at least 45% in fiscal 2018.

More from Video

Jim Cramer Reacts to Bank Earnings, Netflix, Jack Bogle and Apple

Jim Cramer Reacts to Bank Earnings, Netflix, Jack Bogle and Apple

Why You Need This $86,000 Jeep Grand Cherokee Trackhawk

Why You Need This $86,000 Jeep Grand Cherokee Trackhawk

Jim Cramer Explains Why Taiwan Semiconductor Is Real Money's Stock of the Day

Jim Cramer Explains Why Taiwan Semiconductor Is Real Money's Stock of the Day

CEO of PAX Labs Says Cannabis Culture Could Be in For a Makeover

CEO of PAX Labs Says Cannabis Culture Could Be in For a Makeover

Jim Cramer's Top 10 Rules for a Bear Market

Jim Cramer's Top 10 Rules for a Bear Market