John said to me, “Do you play cricket?”

John told me whether he played cricket.
John asked me whether I play cricket.
John asked me whether he played cricket.
John asked me whether I played cricket.

The correct answer is: B. John asked me whether I play cricket.

The sentence “John said to me, ‘Do you play cricket?'” is an example of a direct question. Direct questions are used to ask for information. In this case, John is asking the speaker whether they play cricket.

The other options are incorrect because they do not accurately reflect the meaning of the sentence. Option A, “John told me whether he played cricket,” is incorrect because John is not telling the speaker whether he plays cricket, he is asking the speaker whether they play cricket. Option C, “John asked me whether he played cricket,” is incorrect because John is not asking the speaker whether he plays cricket, he is asking the speaker whether they play cricket. Option D, “John asked me whether I played cricket,” is the correct answer because it accurately reflects the meaning of the sentence.