Answer: The correct option is (D).
Step-by-step explanation:
Electric field is the surrounding around the charge in which the electric force can be experienced.
The direction of the electric field for the positive charge is away from the charge.
The direction of the electric field for the negative charge is towards the charge.
In the given figure, the electric field direction for the charge X is away from the charge. It means that the charge X is positively charge.
The electric field direction for the charge Y is towards the charge. It means that the charge Y is negatively charge.
Therefore, the correct answer is (D).