Step 1: Recognise the two-step sequence.
The scheme couples a Friedel-Crafts acylation with a haloform reaction.
Step 2: Friedel-Crafts acylation.
Benzene with \(CH_3COCl\) and \(AlCl_3\) forms an acylium ion that attacks the ring, giving acetophenone, \(C_6H_5COCH_3\), a methyl ketone.
Step 3: Haloform reaction.
Acetophenone has the \(-COCH_3\) group, so with \(NaOCl\) the methyl carbon is fully chlorinated and the C-C bond cleaves, giving sodium benzoate \((P = C_6H_5COONa)\) and chloroform \((Q = CHCl_3)\).
Step 4: Test the wrong options.
P is a carboxylate salt and Q is an alkyl halide, so they are not both carbonyl compounds; Q is chloroform, not an alcohol; and Q is aliphatic, so they are not both aromatic.
Step 5: Test option (4).
Acidifying P gives benzoic acid \((C_6H_5COOH)\), confirming the carboxylic-acid part.
Step 6: Check Q in air and light.
Chloroform slowly oxidises in air and sunlight to the poisonous gas phosgene: \[ 2CHCl_3 + O_2 \xrightarrow{light} 2COCl_2 + 2HCl \] So option (4) is correct.
\[ \boxed{\text{If P gives a carboxylic acid on acidification, Q gives a poisonous gas on exposure to air and light.}} \]