A (n) ____ is a program module that contains a series of statements that carry out a task.

Answer is Method

A Method is a program module which is contains a series of statements that carry out a task.

In the given sentences, the word method is suitable for this sentence.