This phrase shows you are surprised. It also shows you just realized something. Or it points out something clear to the listener.
、。!
Oh, it's Tanaka-san, isn't it! Long time no see!
、!?
This cake is super delicious! Who made it?
、?あ!
What, you haven't finished your homework yet? That's not good!
、。?
I told you properly yesterday, didn't I? Have you already forgotten?
「、」に。
My friend told me, 'That outfit looks great on you!'