I have been requested to attend 'some' technical test while I applying a job for PM position which is unusual in Singapore. This is fuzz. Am I hired to do coding like a developer?
I know companies like Microsoft, Google and Apple who do this assessments. Other companies I've worked for also do it.
Don't think of it as "I'm going to be coding" but rather... "I'll be managing coding projects hence I need to understand them".
I personally think it's useful to have technical knowledge for two reasons:
It helps you understand deadlines, difficulties or even provide a helping hand for proposing solutions.
It facilitates trust building around your decisions because they can be considered well founded.
Compare with PM:SE question How technical should a Project Manager be?.