Anyone that has went in for a interview for programming or computer science, what kind of questions should people be prepared to answer?

I have heard that people get turned down because they couldn't code a application in a language they said they had experience with. Has anyone encountered this?