Where I live (BC, Canada) actually has a law requiring all employers to list the position's salary range, which is great for cutting down on the "expected salary expectations" dance.
I don't like take homes as it's (highly likely) a one way time commitment and if you're truly looking to show off your skills it would take you hours.