Answer: B
The nitrogen lone pair of an amide is delocalised toward the carbonyl carbon. Protonation on O gives a cation whose positive charge is shared between N and C and O, as in CHX3C(OH)=NHX2X+. Protonation on N uses that lone pair and gives an ion with no such delocalisation.