The statement that best describes how nucleic acids are related to the function of cells is:
"DNA codes for proteins that determine which processes and functions a cell carries out."
This statement accurately reflects the role of DNA in storing genetic information that is used to synthesize proteins, which are crucial for numerous cellular functions.