The recruitment of high school math teachers is mainly based on testing high school knowledge.
Junior high school mathematics teacher recruitment is mainly based on junior high school knowledge.
Most of the exams are mainly lectures, and the judges score. Some places will also give lectures.
There will be a test paper in some places, and the knowledge of the test paper will definitely be different because of the difference in high school or junior high school. Sometimes it also includes pedagogy and teachers' ethics, so you'd better read the local recruitment instructions.