for this you will need to use an electronegativity chart to look up the values of each atom involved to determine bond types.
given the following EN values:
H= 2.1
O= 3.5
C = 2.5
rules to know
C-H is considered non-polar
polarity is based on EN difference
0.0 to 0.2 is considered non-polar covalent
0.3 to 1.4 is considered polar covalent
>1.5 is considered ionic
if you use those values and rules, then you'll get
oxygen and ozone contain non-polar bonds
water and CO2 contain polar bonds
*keep in mind that this does not indicate whether or not the molecule is polar or not since that has to do with the molecule's VESPER shape. ie. CO2 is a non-polar molecule, Ozone is a polar molecule