The major product of the following reaction is

The reactant is 3,4-dihydro-2H-pyran, a cyclic enol ether: the C=C bond (C-2 = C-3) is attached to the ring oxygen.
Under anhydrous acid, the C=C bond takes up at C-3. The positive charge on C-2 is stabilised by the lone pair of the ring oxygen (oxocarbenium ion, ).
The oxygen of attacks this C-2 cation, and loss of from the oxonium ion gives 2-(alkoxy)tetrahydropyran, a tetrahydropyranyl (THP) ether:
In the product, C-2 is bonded to H, to the ring oxygen and to
A hemiacetal needs an OH on that carbon, which cannot form without water; an ester needs a C=O group.
Hence, the correct option is (B).
Tagged Electrophilic addition to alkenes. Machine-assigned, so read it as a strong shortlist rather than a verdict.