Actually, if I were to ask "how to divide a number by 2 without the divide function", and someone would answer "by using the shift function", (s)he'll have to make up for it by answering other questions correctly, or (s)he'll not pass.
in reply to Re^4: Stop with the interview questions already
in thread Stop with the interview questions already
The answer would have been correct if the question was "how to divide a non-negative even integer by 2". But the question said "number", without restricting the numbers.