Which of the following is the correct rule of nucleic acids in the body?

A. They provide quick-releasing energy to the body

B. They contain genetic information that is passed to offspring

C. They catalyze chemical reactions left in the cell

D. They are the main structural components of cell membranes