How do animals obtain the nitrogen they use to make proteins and nucleic acids?

by consuming plants or other animals

by absorbing ammonia from bacteria growing in the roots of plants

by breathing the nitrogen present in the atmosphere

by absorbing nitrogen found in the soil