The correct answer is A. Went/had taken.

The sentence is in the past perfect tense, which is used to talk about an event that happened before another event in the past. In this case, the event that happened before is "they had taken dinner," and the event that happened after is "they went out for an evening walk."

The past perfect tense is formed with the past participle of the verb (in this case, "taken") and the auxiliary verb "had." The past participle of "go" is "gone," so the past perfect tense of "go" is "had gone."

The other options are incorrect because they are not in the past perfect tense. Option B, "Go/had taken," is in the simple present tense. Option C, "Have gone/took," is in the present perfect tense. Option D, "Are going/took," is in the present progressive tense.

Here is a diagram that shows the tenses of the verbs in the sentence:

Tense | Verb ------- | -------- Past perfect | had taken Past | went

I hope this explanation is helpful!