A molecule is

A a group of atoms bonded by ionic bonds.
B a group of atoms bonded by covalent bonds.
C a group of ions bonded by covalent bonds.
D a group of atoms bonded by metallic bonds.