How is a compound sentence formed?

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