Answer: D
The oxygen lone pair is conjugated with the C=C and gives X−X22−CHX2−CH=OX+CHX3 as a contributor, which places negative charge on the terminal carbon. Here the +M effect outweighs the -I effect for the pi system, so electrophiles attack the terminal CHX2.