As someone with performance anxiety take-home programming "challenges" have been my bread and butter.
I have no problem working 2-3 hours on an assignment to demonstrate my knowledge. Those at least seem more realistic than some of the interview questions about the most nuanced aspects of programming.