The Question is:
If God is all-knowing God, why He asked Adam where he is?
Answer: Because in the First place when the man falls, God wants a Reconciliation. He Offers first so that the human might open up their faults. And with that, they may be reconciled.