In programming, a "subroutine" can often be equivalent to a "function." A subroutine is a block of code designed to perform a particular task, and in many programming languages, this is commonly referred to as a function.
Therefore, the correct response is:
function