Should a student shake hands with the professor? Strangely I could hardly find any information about it on the internet. The question is simple: should a student expect to shake hands with a professor who is


academic advisor
the supervising professor who you're going to do your final year project with
A teacher who taught a class this semester and you're saying thanks to him/her on the last class


I'm an undergraduate student so the above refer to undergrad situations. Though I guess the question is equally valid for a graduate student.
Greet them in whatever way is natural to you. In university settings (where contact with different cultures is common, more so in graduate studies) they'll probably take it in stride. If they offer to shake hands, do so. Doing otherwise is certainly rude.