Accept that you knew it, or act as if you are solving it
There are few famous questions in
programming that almost everybody would answer in this world, not because its
easy, but because the questions are famous enough that any beginner would not
have missed it.
For example, 'WRITE A PROGRAM TO SWAP 2 NUMBERS WITHOUT USING
TEMPORARY VARIABLE'. This is one of the famous question for which most of them
would know the answer.
If you already know the answer, tell the interviewer
politely that, 'Sir, I knew the answer for this earlier itself as I had seen this
in one of the job interview blogs on the internet. Shall I go ahead and write
the code ?'. This polite request will definitely impress the interviewer with
your honest behaviour.
The
other way to tackle this is, if you knew the answer before, do not start
writing the code directly, rather, start scribbling on the scrap sheet as if
you are hearing the question for the very first time and act as if you are very
interested to solve it. And after few seconds of scribbling arrive at an answer
as if you solved it now right in front of the interviewer.
BEWARE! If you
directly write the code in excitement seeing the question that you had heard
before, it will cost you heavily, as it shows you are good at memorising the
code.
No comments:
Post a Comment