Most of the content tested on early civil service examinations came from Confucianism. As a humanistic religion with its own way of governing Confucianism contributed to the history as the most ancient government that is considered as a basis of the imperial exams. It was developed due to the influence of Buddhism and Taoism.
Hope you will find this answer helpful.