Step 1: Step 1: Diazotisation
Aniline with \(\text{NaNO}_2\) and HCl at 273-278 K gives benzenediazonium chloride, X.
Step 2: Step 2: Hydrolysis
On warming the aqueous solution, the diazonium group is replaced by -OH and nitrogen gas is released.
Step 3: Product
\(\text{C}_6\text{H}_5\text{N}_2^+\text{Cl}^- + \text{H}_2\text{O} \rightarrow \text{C}_6\text{H}_5\text{OH} + \text{N}_2 + \text{HCl}\). So Z is phenol.
Final Answer:
Z is phenol, Ar-OH.
\[ \boxed{\text{(A) }\text{Ar-OH}} \]