The correct answer is B. (-) 4,000.

The investor sold 100 nifty futures at Rs 4,500 per future. This means that he sold the right to buy 100 nifty contracts at a price of Rs 4,500 per contract. He then bought them back at Rs 5,000 per future. This means that he bought the right to buy 100 nifty contracts at a price of Rs 5,000 per contract. The difference between the two prices is Rs 500 per contract, or Rs 50,000 in total. Since the investor sold first and then bought back, he has made a loss of Rs 50,000.

Option A is incorrect because it is the profit that the investor would have made if he had bought first and then sold back. Option C is incorrect because it is the loss that the investor would have made if he had bought and sold at the same price. Option D is incorrect because it is the profit that the investor would have made if he had sold and bought at the same price.