I applied through an online job website. And I was contacted by their HR staff. She was very efficient and was able to answer my queries. I was told the interview date and time. On the day of the interview, I was greeted at the hotel lobby by the recruiting manager. When my time came, the interviewer himself came to take me to the room. The following were the questions asked to me:
1) Write the function prototype for strcmp
2) Write the implementation for strcmp - there was a mistake in that and they made me point it out.
3) they gave me a structure. struct A { char a; int b}; what is the size of it? (Ans: 0's padding concept)
4) how will you count the number of 1's in an integer? write a function to do that (Either use mask, or bit shifting)
5) polymorphism
6) y do u use virtual functions
7) what is inheritance
8) since i had put linux experience on the resume, they asked about sockets, TCP/IP and UDP sockets.
9) which kind of socket do you use for what application?
10) Mutexes. i was asked return type of trylock() and how does it work?
11) And describe how to set up a client and server connection? (what are the various function calls you use to set up a client-server?)
The questions were not that tough but I dont know why, I was not able to do well. The interviewers were good and knew what they were looking for in candidates. Overall, it was a good experience for me.