I had applied in Intel several times since December 2010 and finally got an email requesting a phone interview on 13 June 2011 :)
The interviewer(I'll call him X) called right on time. He began by describing his position and job profile at Intel, Intel's Folsom office. Then he gave a description of the job and the requirements, qualifications etc. He then asked about my availability date, and if I was ready to relocate. All this took close to 15 minutes. Now the actual interview questions.....lots of questions were asked and most of them were quite simple
1.How do you make sure a prog runs on both windpows and linux
Ans- Couldnt answer this one, I was thinking in a totally different direction....Use ifdef for win32 in the preprocessor directives
2. Asked if I knew about difference between release builds and debug builds.
I hadnt and he explained it to me
3. If you cant use breakpoints how do you debug a piece of code?
My answer: Print statements( he agreed to my reply...i was surprised :) )
4.C++ concepts like virtual function, pure virtual function, operator overloading, inline function
5. Describe how to swap 2 numbers?
My answer: use temp variable or XOR
6. count number of nodes in singley LL?
My answer: just count till next points to NULL.
7. What data structure would you use to store a directory?
I said a Binary tree or BST, He suggested a Hash Map. He had mentioned there would be randon insert and deletes which i kind of overlooked while thinking of the question. I said BST since I thought directory data would be sorted.
8.count number of set bits in a given integer?
My answer: & with 1 then divide by 2 or right shift
9.How do you handle seg faults?
My answer- I said I use gdb or Valgrind. He said Valgrind is many times used for memory leaks. He then asked if I knew what memory leaks are and I told him, basically we assign some memory using NEW and never DELETE it, even after the program is over.
I think there were few other questions but I cant seem to recall all of it!