How did China become a communist nation?

A. The communists gained control in a swift coup d’état.
B. communists were elected.
C. The communists gained control after a long civil war.
D. The emperor appointed a communist prime minister.