It may be one of those “only in Silicon Valley moments.”

President Barack Obama made a return visit to the country’s high-tech cradle on Monday for a town hall event hosted by LinkedIn Chief Executive Jeff Weiner.