An excellent way of testing out and honing your programming skills is through practice. There are a number of online sites which provide this opportunity. There are code golf sites, coding challenges, problem sets, coding dojos, and so on. Here is a list of sites that you can use to hone your skill as a programmer.
And now for something completely different
Mind Cipher is a set of logical challenges. Although not directly programming puzzles, these are excellent for developing reasoning and problem solving skills.