Use the -ed form. #2 is wrong. The present perfect ( have finished ) does indeed speak of the recent past, but your sentence is a question: we can ask easily about the past, and often do: Did you study last night?
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.