Likely an Indian instructor. Using "he" is commonly said for "it" in Hindi, because there is no actual word for "it", it's inferred by context.
Not 100% sure. But otherwise, I also have never heard of a gendered program component.
Not 100% sure. But otherwise, I also have never heard of a gendered program component.
Maybe they picked it up from someone while learning English and it stuck with them.
e.g. "What the f'ing hell are you doing, function, you're not supposed to do that!"