Detailed Answer
Answer (D) is correct. A weighted average of the costs of all financing sources should be used, with the weights determined by the usual financing proportions. The terms of any financing raised at the time of initiating a particular project do not represent the cost of capital for the firm. When a firm achieves its optimal capital structure, the weighted-average cost of capital is minimized.