Choose the sentence that shows a cause/effect relationship.
A.Similarly, my friend studied for the test and did just as well.
B.Although I studied for the test, I did not do as well as expected.
C.I rewrote the essay several times and finally submitted it.
D.I needed to pass the test, so I studied really hard the night before.