In a test question: "How long ___ in Spain before you came here". Choices are: a. Did you live b. Have you lived c. Have been living Accordingly, the answer is a. Isn't it suppose to be c?
"How long ___ in Spain before you came here?"
"How long did you live in Spain before you came here?"
This answer is correct. Why? The question includes the words "before you came here," meaning that whoever the person is asking no longer lives in Spain. The answer "did" is past tense and indicates that the person no longer lives in Spain.
"Have you lived" is present perfect, indicating that the person still lives in Spain. However, the person can not still be living in Spain because they have moved to "here," as the speaker suggests.
"Have you been living" is perfect progressive, also indicating that the person still lives in Spain. This answer cannot be correct for the same reason as "have you lived."