Examining the Usage of Generative AI Models in Student Learning Activities for Software Programming