WEST DES MOINES, Iowa—President Trump and former Vice President Joe Biden exchanged barbs from opposite ends of Iowa on Tuesday, offering a preview of a potential general election face-off.

The two candidates appeared for the first time in the same state as the 2020 race takes shape, both looking beyond the Democratic presidential primary to the general election.

Mr....