Question 1 out of 3

    What is the purpose of a function in programming?

    B

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