Which of the following describes a gerund and how it functions in a sentence

A gerund is a verb form that functions as a noun in a sentence. It is created by adding -ing to a verb (e.g. running, swimming, painting). Gerunds can serve as the subject, direct object, indirect object, or object of a preposition in a sentence. For example, "Running is good exercise" (subject), "I enjoy swimming in the ocean" (direct object), "She apologized for painting the wall" (indirect object), "He was fined for parking in a no-parking zone" (object of preposition).

A gerund is a verb form that functions as a noun. It is created by adding the suffix "-ing" to the base form of a verb. Gerunds can serve various functions in a sentence:

1. Subject: A gerund can be the subject of a sentence.
Example: "Running is my favorite form of exercise."

2. Object: A gerund can function as the direct object of a verb or a preposition.
Example: "I enjoy swimming." (direct object)
Example: "She is fond of cooking." (object of the preposition "of")

3. Object of a preposition: A gerund can also serve as the object of a preposition.
Example: "He talked about going on a vacation."

4. Subject complement: A gerund can act as a subject complement, which renames or describes the subject of a sentence.
Example: "Her favorite hobby is painting."

Overall, a gerund acts as a noun and can perform various roles in a sentence depending on its function.