Examples of uses of a noun clause:
subject of the sentence:The
cookies
I madewill be passed out after recess.
predicate nominative: These are the cookies I made myself.
direct object: They enjoyed the cookies we made together.
indirect object: The kids ate all of the cookies we made.
object of a participle (gerund): Baking the cookies we made was fun.
used as an appositive: The snack, the cookies we made, was a big hit.
object of an infinitive: To bring the cookies we made will be a surprise.
Noun clause as subject: "Whoever arrives first gets the prize." Predicate nominative: "My best friend is whoever you choose." Direct object: "I know where they went." Indirect object: "I will give whoever answers correctly a prize." Object of the participle: "She enjoys painting what she sees." Object of a gerund: "I appreciate your helping me." Appositive: "I consider him a great athlete, the best in the league." Object of infinitive: "She asked me to give whoever needs help a hand."