Final answer:
The compound that is linear is CO2.
Step-by-step explanation:
The compound that is linear is CO2. The structure of CO2 is linear because the carbon atom forms double bonds with each of the oxygen atoms, resulting in a linear arrangement of atoms. In contrast, compounds like H2O, CH4, and BF3 have a bent or trigonal structure, which means the atoms are not arranged in a straight line.