The correct answer is A. Yes, breach of condition as to wholesomeness.

The contract between A and B is a contract for the sale of goods. The goods in question are 1000 bags of cement. The contract does not specify any particular quality of the cement, so the implied condition of merchantability applies. This condition means that the goods must be fit for the purpose for which they are sold, and that they must be of average quality.

In this case, the cement has become stone by the contact of rainwater. This means that the cement is not fit for the purpose for which it was sold, and it is not of average quality. Therefore, A can reject the goods.

Option B is incorrect because the condition of merchantability does not require the goods to be perfect. It only requires that they be fit for the purpose for which they are sold, and that they be of average quality. In this case, the cement is not fit for the purpose for which it was sold, so it does not meet the condition of merchantability.

Option C is incorrect because B's lack of knowledge of the defect does not excuse the breach of contract. The condition of merchantability is an implied condition, which means that it is not necessary for the parties to expressly agree to it. The condition is implied by law, and B is bound by it even if he did not know about it.

Option D is incorrect because A is not required to inspect the goods before accepting them. The condition of merchantability is an implied condition of the contract, and it is not necessary for A to inspect the goods before accepting them. If the goods do not meet the condition of merchantability, A can reject them even if he did not inspect them.