Which statement BEST describes the concept of a function within programming?
It is primarily a sequence of statements grouped together to perform a task and can be called upon as needed.
It is a visual component of a program's interface, responsible solely for rendering images to the screen.
It is only used for performing arithmetic operations and returning the results.
It is a collection of data, similar to a small database, used for information retrieval and storage.