Can someone check my answer?

Which sentence has a dependent clause?
A. You passed the exams, so you can go now.
B. She painted the shutters, and he put them on the house.
C. They told me the secret, but I did not share it with anyone.
D. Before he went to sleep, he completed his homework.
E. I completed my homework, and I ate dinner.

Answer: B

D has the subordinate clause "Before he went to sleep"

All the rest are compound sentences.
Looks like some review is in order.

To determine which sentence has a dependent clause, we need to identify if any sentence contains a clause that cannot function as a standalone sentence.

Let's analyze each option:

A. "You passed the exams, so you can go now." - This sentence does not contain a dependent clause. Both clauses, "You passed the exams" and "you can go now," can stand on their own.

B. "She painted the shutters, and he put them on the house." - This sentence does not contain a dependent clause. Both clauses, "She painted the shutters" and "he put them on the house," can stand on their own.

C. "They told me the secret, but I did not share it with anyone." - This sentence does not contain a dependent clause. Both clauses, "They told me the secret" and "I did not share it with anyone," can stand on their own.

D. "Before he went to sleep, he completed his homework." - This sentence contains a dependent clause. The clause "Before he went to sleep" cannot function as a standalone sentence.

E. "I completed my homework, and I ate dinner." - This sentence does not contain a dependent clause. Both clauses, "I completed my homework" and "I ate dinner," can stand on their own.

Therefore, the correct answer is D.

To determine which sentence has a dependent clause, we need to examine each option and identify if there is a clause within the sentence that cannot stand alone as a complete sentence. A dependent clause is a group of words that includes a subject and a verb but does not express a complete thought.

Let's go through each sentence:

A. "You passed the exams, so you can go now." - This sentence does not have a dependent clause. Both clauses, "You passed the exams" and "so you can go now," can stand alone as complete sentences.

B. "She painted the shutters, and he put them on the house." - This sentence does not have a dependent clause. Both clauses, "She painted the shutters" and "he put them on the house," can stand alone as complete sentences.

C. "They told me the secret, but I did not share it with anyone." - This sentence does not have a dependent clause. Both clauses, "They told me the secret" and "but I did not share it with anyone," can stand alone as complete sentences.

D. "Before he went to sleep, he completed his homework." - This sentence has a dependent clause. "Before he went to sleep" is a dependent clause because it cannot stand alone as a complete sentence.

E. "I completed my homework, and I ate dinner." - This sentence does not have a dependent clause. Both clauses, "I completed my homework" and "and I ate dinner," can stand alone as complete sentences.

Therefore, the sentence with a dependent clause is D. "Before he went to sleep, he completed his homework."