Light the bulb: An everyday logic puzzle

You are inside a room and there are exactly three electric bulbs outside of the room. The three bulbs have their corresponding switches (exactly three) inside the room. You can turn the switches on and off and leave them in any position. How would you identify which switch corresponds to which electric bulb, if you are allowed to go outside and come inside the room only once?

This is a logic puzzle, which was asked to me by a friend during a general conversation few weeks ago. At that time neither I could figure nor he told me the solution. Finally, I have found a satisfactory answer to this puzzle, which is off-course shareable.

Now if you think  you’re smart enough to solve it, then post  your answer in the comment-box without opening the solution page or searching the web. 🙂