This paper expounds the design and implementation of an exam system. The design of exam system is based on the theory of the CAT. Its management end and the client are implemented through the WPF technology, using c + + programming language to implement the exam system server. The database is MySQL server and SQLite embedded database, and the Protocol Buffers is format and implementation of the data interaction between server and the client of the exam system. For a united data format of the MySQL and SQLite database, the writer used the database modeling tool PowerDesigner to design the database model, and got the CDM, LDM and PDM. Lastly, the exam system based on CAT is implemented and performing well, and the exam system meets the original goal.