Computer science is the study of computation, information, and automation, covering both theoretical foundations like algorithms and practical systems like software and hardware design.