“To finish class” in Chinese is 下课 (xiàkè).
下课了吗?
You get out of class?
Example sentence from Tatoeba (CC BY 2.0).