Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am expecting a job interview for a C++, what kind of questions should I expect?

I have been programming with C for 5 years. I know what OOP is and I have been reading about it for some time. But it is most likely I can miss important details because I do not do anything real on C++.

Best Regards,

share|improve this question
    
What level position are you applying for? –  ajax81 Nov 20 '12 at 23:46
    
It is senior position. I am confident with my experiences about S/W design with C. But Qs about C++, it would be a challenge. –  Engin Bulanık Nov 20 '12 at 23:54
    
You should probably be honest with the interviewer and explain that you are proficient with C, but have little experience with C++. –  Andres F. Nov 20 '12 at 23:58
    
You are right, I will. But it is always good to be ready than being sorry. –  Engin Bulanık Nov 21 '12 at 0:10
    
Have you looked at the other C++ Interview questions already asked and answered? –  Jay Elston Nov 21 '12 at 0:26
show 2 more comments

closed as not constructive by Telastyn, Robert Harvey, thorsten müller, gnat, ChrisF Nov 21 '12 at 12:26

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 2 down vote accepted

Here are some things I would ask about if someone claimed to be capable of answering C++ questions and was applying for a senior level position.

  • Explain placement new and when you would use it

  • What are templates

  • What is template specialization

  • Why should you make the destructor of a base class virtual

  • What is RAII

This list could become exhausted but if I was interviewing I would skip over the basic questions like constructor vs. destructor or anything that was abstractly related to Object Oriented development.

If you do not know C++, especially modern C++ you have to be upfront about this. Don't try to fake your way as the interviewer would know immediately. What I find most frustrating when interviewing candidates are ones that try to claim they can develop C++ but really only know C.

This of course is not an exhaustive list of questions that could be asked during an interview. The most important ones are regarding critical thinking, designing under pressure and confidence in solutions that are presented.

share|improve this answer
    
Yeah, I will be honest. I will explain that I have been programming with C only but I did my homework for C++. It is the best I can do. Thank you, –  Engin Bulanık Nov 21 '12 at 0:47
    
I would add what are type traits and/or policy based programming –  jozefg Nov 21 '12 at 5:15
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.