Monday, February 22, 2010

CMC Ltd Interview Questions

The interview was scheduled in chennai. The requirement was in c/c++, unix for 3+yrs experience people. My scheduled time was at 2:30pm on 20th feb2010. Around 20+ people had come to the interview. They gave a question paper comprising of around 15 questions mostly in c++ and unix. As I had no experience in c++ I have answered only 2 c based questions in the paper. The following are the c questions:
1/ How do you allocate memory for 10 elements of type car(car is a structure) and release the memory?
2/ Write c code for strcmp()
I informed the interviewer that I have no exp in c++ and I could answer only c questions, then he asked me the following c/unix questions which I think was just for a formality :)
1/ What is global variable and where it is stored in memory
2/ what if I want to use the global in other file?
3/write a reverse string program
4/what is a circular linked list? Is it a singular or double linked list?
5/ what is the finger command in unix?
6/ what is fork()?
7/ how to find a string in a file and return the number of times it is repeated in that file(expecting a unix command)
Finally they were done with the interview and the same UNIVERSAL reply " HR WILL GET BACK TO YOU IN x DAYS" ;)

Actually they were looking for a guy with c++ and unix cli knowledge too.

Good luck guys !!!

No comments: