There are typical job interview questions/test like:
- Draw a triangle using for loops
- Code a scientific calculator using no functions at all etc
I don't fully understand why job interviewers do those kind of tests. Well I quite understand that if you want to work for Google, Facebook etc you need to have those skills.