I have worked in my current position with my company as a developer for about 10 months.
There is a QA analyst on the team who is trying to become a developer. It is fairly well known on the team that he wants to be a developer. He has ambition, which I find admirable.
A little backstory: A couple weeks ago he sent me a calendar invite to do an hour of pair programming -- he gave the impression our manager had approved it and I accepted. I later came to find out that he had set it all up on his own. Consequently, the developers on the team were instructed to deny any such requests he sends and to refer him to our manager.
Today, he approached me and asked if I had a few minutes. Remembering the previous pair programming incident I immediately become wary. He informed me that he is interviewing for an open developer position on our team. Understandably, he wants to know what to expect in the interview. In particular, he wanted to know what technical questions/tests I was given. He pressed me for details and asked about several particular technologies. I didn't feel comfortable giving him any information as it very well may put him at an unfair advantage, so I must admit I lied and told him I couldn't remember when, in fact, I remember exactly all of the technical questions they asked.
Did I do right? In retrospect, I think I should have just told him I didn't feel comfortable giving him specific information (instead of lying) and that if he meets the qualifications on the job listing he should do just fine.
Would it have been unethical to tell him exactly what my technical interview questions were, as he wanted? Was it ethical of him to even ask me to do so? Or is it all no big deal?