How is a compound sentence formed?

ABy joining two simple sentences with a comma and a coordinate conjunction
BBy joining a simple sentence with a dependent clause
CBy joining two independent clauses and one dependent clause
DBy joining a dependent and independent clause with a conjunction