Molecular geometry determines if a molecule is linear. VSEPR theory states that electron pair repulsion (bond pairs and lone pairs around the central atom) dictates this geometry.
Analysis of each molecule:
Therefore, CO2 is the linear molecule.
The formal charges on the atoms marked as (1) to (4) in the Lewis representation of \( \mathrm{HNO_3} \) molecule respectively are 
From the given following (A to D) cyclic structures, those which will not react with Tollen's reagent are : 