I don't know if this is legitimate question for an interviewer to ask, but it is definitely possible. I don't like the question, but at least we should think about it and prepare an answer. If you have been looking for a job for like eight months, it could sound like you are a bad candidate because nobody wants to hire you. Instead, I would take a different approach than answering honestly. If the resume shows you have been out of work for a year, then you have to explain the one year. You have two options. First, you can be honest and say you have been looking for one year, or you can think of a good excuse. It's hard to lie and sound believable so I'm going to give an honest answer. If you have a good excuse for not working for a long duration, feel free to use that as an excuse.
I don't recommend lying for this question. It could turn bad if they find out the truth later. Telling them the truth like my first example shows honesty and shows that you tried to stay productive.
Learn English speaking much FASTER by downloading the TalkEnglish Offline Package and submerge yourself with over 8,000 audio files and over 800 pages of lessons! Then you can study without Internet connection and also listen to audio files using your MP3 player at any time. Go to the English Download page and download today!