Benefits and Risks of Using ChatGPT4 as a Teaching Assistant for Computer Science Students