The MAIN function of carbohydrates in a cell is:
D. Carbohydrates provide short-term energy for the cell.
While carbohydrates can also serve other roles, such as structural functions and being involved in cell recognition, their primary role is to provide quick energy through processes like glycolysis.