I used to live in an apartment building Seattle that was immensely popular with Amazonians and Microsofties. Social interaction there was very limited to high tech (to an annoying degree), but at least we ate at local places, drank at local places, visited local grocery stores and barbers, etc.
So yeah, "insular techies" can't be fully solved by simply having people live in regular apartments, but I'd argue dormitories or campus-living is strictly worse.
Of course, companies like Google know this. The whole reason they provide the meals is so that people's attention stays focused within Google instead of elsewhere. That probably leads into a whole 'nother discussion of whether meals at work are really a good thing, but I'll just leave it there for now.
Not normally, but if you sleep at work then definitely yes. If you never leave the Google campus what are the odds you'll interact with people who don't work for Google?
Spread those same CompanyXers around a larger community at random, and you get the opposite effect of them tending to form social groups more with people outside the company who do other things.
But does where you sleep affect that at all? Even where I am, many people live in apartments or houses and yet have almost no social interaction outside of high tech. I'm sure that's at least as true in Silicon Valley, with its corporate citadels and meetups and apartment complexes that specifically court techies with fast networks etc.
Civic/community/social engagment is driven by where you spend your time between work and sleep (assuming you have any). It's family, old friends, neighbors, fellow sports team members or music fans or craft companions who aren't all from the same few companies. You can interact with all of those people even if you live in your car, whether that car is in the Google parking lot or elsewhere. You can fail to interact with them even if you live in a real home.
The only way your choice of sleeping arrangements might matter is if the security folks think it's odd when you come back from elsewhere and go straight to your car without going into the building first. That's not a normal commuter pattern, so it might pique their interest. On the other hand, as one of the Quora commenters said, if you just show them your company ID they don't care any more.