I have recently been to Canada. On my return flight to Europe, just outside airplane's door, I was questioned by the officer. I was asked where I was going to, how much money I have on me (and he was interested both in the amount of Canadian dollars I have as well as the currency of my destination country) and what is my occupation. In fact other passangers were questioned as well. As far as I can tell the answers were not recorded.
I am very curious as to what was the purpose of this questioning? While I understand that those kind of questions might have been asked when I was entering Canada, I don't really see the point of them being asked just before my return flight. In fact those questions were much more detailed than those I was asked when entering Canada.
EDIT: Thanks for claryfying the money question. But why I was asked for my occupation as well? I hope that if they found out I had skills that are in demand in Canada they would still let me out? :)