How did the Chinese government find qualified professionals to work in government during the Ming and Qing dynasties?
A. People were selected randomly through the imperial lottery.
B. People were deemed suitable by passing civil service exams.
C. Successful warriors were given jobs in the imperial government.
D. The people voted for their government officials.