Question 1 out of 3

    What is the purpose of a function in programming?

    B

    A function in programming is a reusable block of code that performs a specific task.