Answer :
Option D is the correct answer.
"When I go to the grocery store, I like to buy fresh fruit."
"When I go to the grocery store" is an adjective clause modifying the independent clause "I like to buy fresh fruit."
"When I go to the grocery store, I like to buy fresh fruit."
"When I go to the grocery store" is an adjective clause modifying the independent clause "I like to buy fresh fruit."