How is a compound sentence formed?

Aby joining two simple sentences with a comma and a coordinate conjunction
Bby joining a dependent and independent clause with a conjunction
Cby joining a simple sentence with a dependent clause
Dby joining two independent clauses and one dependent clause