-
February 29th, 2016, 07:38 AM
#1
C++ Interview Questions
We are looking to create a few new articles on one of our sites. One of the articles is "Top Interview Questions for the {C++} Developer." We'll likely do this for Java, VB, C#, and other areas as well.
So my question to you is.... What is one (or more) of the Interview questions you got when applying (or hiring) for a C++ position? Post it here in this thread!
Thanks!
Brad!
(I'm going to create a similar thread for other languages on this forum as well. It will be interesting as well to see how responses might differ!)
-----------------------------------------------
Brad! Jones,
Yowza Publishing
LotsOfSoftware, LLC
-----------------------------------------------
-
February 29th, 2016, 07:54 AM
#2
Re: C++ Interview Questions
If you have a class derived from a base class, and each has a constructor and a destructor, what is the order that the constructors are called in when an object of the derived type is created? When the object is destroyed what is the order that the destructors are called in?
What is the purpose of a virtual destructor?
Last edited by ahoodin; February 29th, 2016 at 08:00 AM.
ahoodin
To keep the plot moving, that's why.
-
March 4th, 2016, 04:08 AM
#3
Re: C++ Interview Questions
-
March 4th, 2016, 07:47 AM
#4
Re: C++ Interview Questions
Originally Posted by mesajflaviu
That's not quite in English...
-
March 4th, 2016, 09:06 AM
#5
-
March 4th, 2016, 11:44 AM
#6
Re: C++ Interview Questions
Originally Posted by Brad Jones
One of the articles is "Top Interview Questions for the {C++} Developer."
Well, be aware that lots of information already exists on this topic. Not only are there books but also comparisons of books, like here for example,
http://www.amazon.com/review/R288W3X...55&store=books
Last edited by tiliavirga; March 4th, 2016 at 11:54 AM.
-
March 4th, 2016, 12:00 PM
#7
Re: C++ Interview Questions
but of course interviewers don't also read these books - do they?
Personally, I prefer more 'open ended' discussion type questions - such as 'What is a race condition?', 'Describe Polymorphism', When would you not use the STL sort functions' etc. Rather than specific c++ syntax questions.
All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
-
March 4th, 2016, 01:37 PM
#8
Re: C++ Interview Questions
Brads question is what are specific questions you have been asked in an interview.
Originally Posted by Brad Jones
So my question to you is.... What is one (or more) of the Interview questions you got when applying (or hiring) for a C++ position? Post it here in this thread!
ahoodin
To keep the plot moving, that's why.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|