A gòngshì still had to sit the palace examination before becoming a jìnshì.
Tips
history
In the Ming and Qing imperial exam system, candidates who passed the 会试 (metropolitan exam) were called 贡士. They then sat the 殿试 (palace exam) to be ranked as 进士.