What can they ask?

If you are an EU citizen, what immigration questions can a Schengen agent ask you? Can they ask where you are travelling to when leaving Schengen?