Genesis 3:11 (ESV)

11 He said, “Who told you that you were naked? Have you eaten of the tree of which I commanded you not to eat?”

As his reason for hiding, Adam says that he is naked. The Lord continues to question him so that the deeper and true motive is exposed. How does Adam know that he is naked? Is it because he ate from that tree that God had said they should not eat from?