It was a typical week for late-night television: On NBC’s “Tonight” show, the host Jimmy Fallon played a catchphrase guessing game with the “Modern Family” star Sofia Vergara, and re-enacted the music video for the 1990 rock ballad “More Than Words.”

On ABC’s “Jimmy Kimmel Live,” Mr. Kimmel watched a hidden camera to see how Los Angeles pedestrians would react to a burrito dangled above Hollywood Boulevard. And on CBS’s “Late Late Show,” James Corden asked pizzeria customers to choose between the pies they had ordered and the contents of a mystery box.

Elsewhere, on CBS’s “Late Show,” David Letterman was interviewing President Obama — a ruminative, sometimes funny, casual conversation between two men who seemed almost like peers, joking about how they might share a game of dominoes after they retire.

Mr. Letterman, of course, will make that transition first: He is ending his 22-year run on “Late Show” (and a 33-year late-night career) on May 20.