The correct answer is B. has been.

The sentence "Yes, it has been invented by him" is in the present perfect tense. The present perfect tense is used to talk about actions that happened in the past but have a connection to the present. In this case, the action of inventing the telephone happened in the past (in 1876), but the invention is still relevant today.

The other options are incorrect because they do not express the same meaning as the present perfect tense. Option A, was, is in the simple past tense. The simple past tense is used to talk about actions that happened in the past and are not connected to the present. Option C, is being, is in the present progressive tense. The present progressive tense is used to talk about actions that are happening now. Option D, to be, is in the infinitive form. The infinitive form is used to talk about actions in general, not about specific actions that happened in the past or are happening now.