A suspended Connecticut high school math teacher and girls swim coach appeared in court Tuesday, accused of having a sexual relationship with a student.