Re: pre-interview test (programmer)
Test 2) is all down to you. Not much we can help you there.
Test 1) can be everything and anything. Look at the job requirements as I would expect the majority of questions would stem from the job spec. Eg If it is for a Physics Programmer position then I expect a lot of questions on the math side.