As you know,we use could for general ability. But if we want to say that somebody did something in a specific situation,we have to use was/were able to or managed to **(not **could ). I know the below sentence is correct grammatically. But why? According the above explanation, we should use managed to or was/were able to.
Problematic sentence:the test was difficult.I could only answer half of the questions.