Re: C++ programmer and assembly
On Apr 24, 4:18 am, i...@0x4849.net wrote:
Le Chaud Lapin <jaibudu...@gmail.com> wrote:
2. What is the tersest C++ statement involving the number zero "0"?
I dont see what you are testing here
The person we were interviewing had on his resume that he had been
technical lead for several years of a compiler/translator team. A
person who writes compilers for a living will immediately think about
the definition of a "statement", which will lead to him to ask what
production makes a statement, which will lead him to think that a
statement is expression followed by semicolon, which will lead to the
answer. I have also used this question for people who did not claim
to have written compilers, and not many of them liked it.
3. When does sizeof(class A) does not equal to the sum of
sizeof(individual member variables of A)?
Isn't this implementation dependent i.e. not defined by the standard
There are multiple answers to this question. Padding...at least one
virtual function....Francis mentioned based classes, which is not what
I had in mind, but would have been an acceptable answer.
7. A superstitious programmer makes his code throw exceptions whenever
constant 666 is used in addition. How?
So what is the answer to this? It sounds like a silly question, maybe
cause i dont know the answer :P
I did not copy this question correctly. The original question was
more specific using global operator +. Answer was overloading.
10. German programmer uses German names for C++ keywords for standard
compiler. What has he done?
We discussed this already.
I would suggest a resume screen to see if people have solid experience, and
then have a look at this link if you haven't seen it:http://www.joelonsoftware.com/articles/fog0000000073.html
The main criteria he uses for candidates is: "Smart, and Gets Things Done.
Oh I could do that. The problem is that, as I mentioned before, I
often get the feeling that other interviewers might not be so
inclinded to do that (for various reasons). Have to remember that
this is one of multiple examinations that I will typical administer,
and the goal is objectivity, to induce colleagues to determine for
themselves whether a candidate is qualified. I know that the person
who took the C++ exam and the device driver exam was under
consideration before the exam and after. And again, the interviewers
are present, so sometimes how the person reacts to the examination is
often more indicative than score itself. Again, to use this
particular interviewer, when I distributed the exams to the other
members of my team, they were suprised because they had not known
about them before the interview. The interviewer noticed their
distaste and took advantage of it by gently taking the four exams and
turning them upside down in front of him, so as to say, "You tried
your exams but your own team doesn't like them..."
When it appeared that the inteviwer was going to talk his way through
the interview, I interrupted the team and "declared" that the exams
would be taken anyway. The gentleman looked to the other members of
the team, hoping for a rescue, but there was none, and he failed
miserably.
In the post interview the discussion, there were mixed feelings. The
interviewers were still disgruntled that I was using exams to qualify
candidates, but on the other hand, they were relieved that it became
much easier to see that they were about to make a hiring mistake.
At no point through this entire process did I say "I like this
candidate" or "I do not like this candidate". As before, the goal is
to bring forth as much objectivity as possible, in open arena for all
to see, and let each interviewer make up his mind independently based
on his/her own observations. One remarkable peculiarity was that,
after the other members of team had decided that candidate was
entirely underqualified, they made effort to get me to vocalize that I
did not like the candidate, which I refused for 2 or 3 minutes, to
prove my point. ;)
-Le Chaud Lapin-
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]