A technical interview is a social interaction, not an exam.
In an exam you walk into a room, are handed a sheet of questions, put your head down, focus and answer questions. This is not a social experience.
In a technical interview you interact with another human being to solve a problem. You ask and respond to questions. You are expected to have relevant knowledge and the ability to work through the problem. But the interviewer is looking at what it would be like to work with you. You will make a better impression if they like you.
How you work is just as important if not more important than your actual output.
Gaps in your knowledge can be filled with training and study. But if you're a jerk ... people won't want to workwith you.
Here are a few tips on how to prepare for and approach technical interview questions.
And here's a set ofsample questions with solutions .