To determine which molecule has a linear shape, we need to consider the molecular geometry. Molecular geometry is influenced by the number of bond pairs and lone pairs of electrons around the central atom, according to VSEPR (Valence Shell Electron Pair Repulsion) theory.
Let's analyze each molecule:
Based on this analysis, CO2 is the molecule with a linear shape.
From the given following (A to D) cyclic structures, those which will not react with Tollen's reagent are : 
Compound 'P' undergoes the following sequence of reactions : (i) NH₃ (ii) $\Delta$ $\rightarrow$ Q (i) KOH, Br₂ (ii) CHCl₃, KOH (alc), $\Delta$ $\rightarrow$ NC-CH₃. 'P' is : 
