C++ is a foundational programming language that many software developers encounter early in their careers. Understanding its core concepts is cruci...
For further actions, you may consider blocking this person and/or reporting abuse
These questions are far too easy. No real-world interviewer would ask them. If a candidate doesn't know this stuff and s/he knows s/he doesn't know this stuff, s/he shouldn't be applying for a C++ job in the first place.
A real-world interviewer would ask you to implement something like an exception-safe string copy. In order to implement that, you have to use things like
const
and references anyway, so there's no point in asking trivial questions.Could you please share some of good questions? that would good for me. I am targeting Indian subordinate so there are people who doing there college/high school and do exam preparation with keyword like interview questions. logic behind that they think in exam they get questions related to interview.
One of my standard questions is, given:
implement
operator=()
such that it deletes theT
object pointed to bythis->_p
and makesthis->_p
point to a copy of theT
object pointed to byother->_p
— does a “deep copy.”(The type
T
doesn’t matter, but assume it’s an object of some other class—but do not assume anything else aboutT
.)After they implement it, ask them if their implementation is thread-safe and why or why not. If not, ask them to make it thread-safe.
"Easier" but better questions include:
enum class
es solve?explicit
to a constructor solve?explicit
to a constructor?explicit
to a constructor?bool
flag that needs to be shared among threads, is it OK just to use thebool
as-is, or do you need something else to make the program thread-safe? Why or why not? If something else is needed, what is that something else?Magnificent indeed. @pauljlucas since I am creating list or article so i will use this content for my future post with advanced level tag. could you please share some beginner level questions.
Those are beginner-level questions. To me, a "beginner" is someone who knows the entire C++ language, but lacks experience.
Yes your definition is correct. however in my opinion cover basic details called "beginner". are you welling to guest post on my site ? regarding c++?
A "beginner" by your definition doesn't know enough to be able to fill a C++ role. They would never interview for such a role. So making up interview questions for them is a complete fiction.
I know nothing about your site.
this is my site interviewspreparation.com based on my experience and asking every new person about they experience in technical round of interview I write post to cover there experience.
Your are correct. since I am creating a sequence of post regarding "beginner" i will cover these questions. beside you can check my site.
I'm not about to review your entire site.
That said, I think you may have prompted me to get around to writing an article about the C++ questions I've asked candidates (with answers). If/when I do that, I'd grant you permission to post the same article to your site provided that:
I agree with that but let discuss further in mail. I found a mail in your profile is it correct one to start conversion?
Yes.
Please check your mail I shared a mail from website support mail. please check your span folder as well.
@pauljlucas any update ?
Not yet. I've been busy.
Thank You for Support Follow for next part of this post.