Writing a simple Tetris clone (or at least starting one) is a pretty good coding test that be done in a sort amount of time. Anyone who can't figure out a few simple algorithms for detecting full lines or moving pieces down the screen probably won't be able to figure out any useful ones for other programs.