I suppose good developers should be glad when these basic questions come up in interviews, cause then we can rest assured that no incompetents are nicking our jobs (or warming the seats for a few months until they get sacked, thus slowing the hiring process down for everybody else).
Plus these questions can assure that you get hired to a team where everyone knows how to write a for() loop. :)
Oh, goody. I would feel assured that I would work with people at the level of CS 1, as a professional.