Identify P and Q
Given reaction is as follows:
This is the reaction in which acid induces rearrangement of oxime to give amides.
The rearrangement will take place in the following manner:
So, the P is an intermediate carbocation which on reaction with acid becomes N-substituted amide(ethyl amide) which is Q.
This is known as the Hoffmann bromamide degradation reaction in which amide is converted into amine in a basic medium and one carbon will be degraded from the original amide.