What is the meaning of 这是给谁的礼物？
Literally, following Chinese syntax: This is give who(m) 的 present. 

English: Who is this present for?

So I would say 1 and 2 are correct, but 3 might be better as above.