Assuming your permanent residence is in another state, you do not become a NY resident by going to college in NY and living in a dorm.
But be aware that NY can tax a non-resident on any income from a job located in NY.
In that case you are a full-year NY resident for tax purposes.
How do I answer the question
“did you maintain living quarters in New York“
On my daughter’s return who is a full time student and lived in a dorm for part of the year and an apartment the other part?
@Suzanne 4 -- See page 2 of this reference for NY's residency rules regarding undergraduate students: