I use these kind of questions in interviews. You either know the answers or you don't. There's no looking at your 'phone in an interview (at least not one with me being the interviewer).
[EDIT] The thing I'm most looking out for is how a candidate answers when they don't know the right answer.