Question: what was the purpose of the civil service exam?
Answer: They are intended as a method to achieve an effective, rational public administration on a merit system for recruiting prospective politicians and public sector employees. The most ancient example of such exams were the imperial examinations of ancient China.