Question
Why heat is not a state function?
Solution
According to the first law of thermodynamics,

As ∆U is a state function but w is not a state function, therefore q is also not a state function.

As ∆U is a state function but w is not a state function, therefore q is also not a state function.