Tollen's test is given by aldehydes, aromatic aldehydes and α-hydroxy ketones. So, Q is benzaldehyde.
The remaining compound S did not give any test. So, it is diethyl ketone. Therefore, P= Acetone, Q= Benzaldehyde, R= Acetaldehyde and S= Diethyl ketone