i need some C/C++ test intervie questions

B

Bill Reed

Malcolm wrote:

Why? It's obvious what he's doing, so you can out-psych him easily. "If
Dennis Ritchie scores a 10, then I have to rank at 1, since I think Dennis
Ritchie is easily ten times as knowledgeable about C as I am. On the other
hand, I do know what C is. Now, let's get on with the test and find out how
good /you/ think I am."


Losing strategy, IMHO. See Luke 14, vv 7-11.

Sound counsel, too often ignored. Far better to be humble than
humbled.

Bill
 
P

Paul Hsieh

Personally, in my job hunting days, I walked out on an interviewer that
presumed to give me a test. I find the practice insulting.

I only wish all candidates who objected to being tested would do this -- I hate
wasting my time with the likes of people like you.
 
J

Jack Klein

hello everyone,
Iam vasant from India..
I have a test+interview on C /C++ in the coming month so plz help me
by giving some resources of FAQS, interview questions, tracky
questions, multiple choice questions.etc..
I'll be indebted to everyone..
Thanks in advance..
regards
vasant shetty
Bangalore
India

"Name the ISO International Standard number for the C/C++ language."

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 
J

Jack Klein

This is a bit unfair. For instance I could argue for a 9 since I use C all
the time and I hardly ever encounter problems that are due to my failure to
understand the language. On the other hand I'm not one of those people who
reads the standard for recreation, so I could be tripped up by trick
questions designed to test familiarity with little-used sections of the
standard.

Sadly most such tests I have seen tend to belabor the trickier parts
of the standard (or Koenig's "C Traps and Pitfalls"), so they are just
that.

A dozen or so years ago I interviewed with a local recruiter and they
had a test provided by the client they asked me to take. It was
specifically for the hot platform in those days, 16-bit x86.

It had perhaps 20 or 25 little tricky questions, and at the end they
said, according to answers provided by the client, I got one wrong.

All that proved was that the client was incorrect. I knew nothing of
standard C in those days, if indeed the first ANSI standard had been
ratified yes, but I knew every nook and cranny of unspecified and
implementation-defined behavior on every major x86 compiler, and what
they did in most instances of undefined behavior as well.

I can't remember if a job interview came out of that one, but I know I
passed on it if there was one.

I did rather enjoy taking the test.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 
J

Joona I Palaste

Why? It's obvious what he's doing, so you can out-psych him easily. "If
Dennis Ritchie scores a 10, then I have to rank at 1, since I think Dennis
Ritchie is easily ten times as knowledgeable about C as I am. On the other
hand, I do know what C is. Now, let's get on with the test and find out how
good /you/ think I am."

Whoever said the scale was linear?

--
/-- Joona Palaste ([email protected]) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"As we all know, the hardware for the PC is great, but the software sucks."
- Petro Tyschtschenko
 
J

Joona I Palaste

The indentation where there should not be any.

Yes I know, but you snipped the part where I said I knew.

--
/-- Joona Palaste ([email protected]) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"'So called' means: 'There is a long explanation for this, but I have no
time to explain it here.'"
- JIPsoft
 
J

Joona I Palaste

#include <stdio.h>
#define prjntf printf
#define majn main
typedef int jnt;
typedef void vojd;
jnt majn( vojd )
{
jnt j;
for ( j = 42; j; j-- )
prjntf("%d ", j);
return j;
}

But if the person really had trouble distinguishing between i and j,
the code wouldn't even get past preprocessing, as C doesn't understand
the "#jnclude" or "#defjne" directives. Let alone know of a "stdjo.h"
header file.

--
/-- Joona Palaste ([email protected]) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"Insanity is to be shared."
- Tailgunner
 
R

R. Rajesh Jeba Anbiah

Richard Heathfield said:
Why? It's obvious what he's doing, so you can out-psych him easily. "If
Dennis Ritchie scores a 10, then I have to rank at 1, since I think Dennis
Ritchie is easily ten times as knowledgeable about C as I am.

RJH at 1???!!! This is indeed tooooo humble!!

In India, even if RJH says 1 out of 10, they won't select. AFAIK, all
are expected to grade 7/10

On the other
hand, I do know what C is. Now, let's get on with the test and find out how
good /you/ think I am."

But, IMHO most of the times, tests have failed to recognize the real
intellectuals.
 
R

Randy Howard

In India, even if RJH says 1 out of 10, they won't select. AFAIK, all
are expected to grade 7/10

India has a recognized system about rating oneself against Dennis Ritchie?
That's very interesting. Tell us more.
 
I

Irrwahn Grausewitz

But if the person really had trouble distinguishing between i and j,
the code wouldn't even get past preprocessing, as C doesn't understand
the "#jnclude" or "#defjne" directives. Let alone know of a "stdjo.h"
header file.

Correct. I was thinking about a tweak to fix that, but there seem to
be no portable way to do it. Too sad. :)
 
O

ozbear

I only wish all candidates who objected to being tested would do this -- I hate
wasting my time with the likes of people like you.

Ditto.

If any sort of "exam" is to be part of an interview, it should be
stated beforehand.

Those of us who have been in the game for decades find this sort of
practice demeaning, and a good indication that it is a job we don't
want anyway. Therefore, it saves time on both persons' parts.

Oz
 
J

Jeremy Collins

Kevin said:
As an occasional interviewer, I find I have to give a test. The first
question asks the applicant to rate their knowledge of C from 1 to 10,
where 1 is "What's C?" and 10 is "I'm Dennis Ritchie". I use this to set
my expectation of the results from the rest of the test.

What if the reply is "Who?" ?

<g>
 
L

LibraryUser

*** evil top posting fixed ***
Personally, in my job hunting days, I walked out on an interviewer
that presumed to give me a test. I find the practice insulting.

And, with absolutely no reason to assume you know anything at
all, you expect the interviewer to assume you to be an expert on
everything. You also exhibit a very fine sense of co-operation.

With any reasonable self-confidence (combined with actual
knowledge) I would expect a job applicant to be happy to show off
by taking such tests.
 
R

R. Rajesh Jeba Anbiah

Randy Howard said:
India has a recognized system about rating oneself against Dennis Ritchie?
That's very interesting. Tell us more.

Sorry I don't mean it actually. I meant grading 1-10 stuff. I'd
thought that this grading system is only in India, but it seems
throughout the world people used to it!!...

Personally I'm against to our Indian system of interviewing. They ask
only the frequently asked interview questions---from certain interview
kind of books like "how to interview a programer" or so. It is very
unfortunate that the interviewer expects the person to answer specific
answer. Because of this system, even a person who knows little about C
can easily get into a nice job ('cos the questions are FAQ). Most of
the times, this sort of interviews failed to recognize the real
intellectuals (IMHO).
 
R

Randy Howard

Sorry I don't mean it actually. I meant grading 1-10 stuff. I'd
thought that this grading system is only in India, but it seems
throughout the world people used to it!!...

I was kidding actually. :)
Personally I'm against to our Indian system of interviewing. They ask
only the frequently asked interview questions---from certain interview
kind of books like "how to interview a programer" or so. It is very
unfortunate that the interviewer expects the person to answer specific
answer. Because of this system, even a person who knows little about C
can easily get into a nice job ('cos the questions are FAQ). Most of
the times, this sort of interviews failed to recognize the real
intellectuals (IMHO).

It sounds a lot like what some of the posters to this thread from other
parts of the world have indicated they would like and "not be insulting".
(ahem) It sounds like you also realize that not having some sort of
test (with sufficient detail) is unlikely to allow you to separate a B+
from an A+ programmer.
 
K

Kevin D. Quitt

Because of this system, even a person who knows little about C
can easily get into a nice job ('cos the questions are FAQ). Most of
the times, this sort of interviews failed to recognize the real
intellectuals (IMHO).

This is why I don't *just* use the test results to qualify a candidate.
 
R

Randy Howard

What if the reply is "Who?" ?

*gasp*

You're right. "Who is Dennis Ritchie?" makes for a pretty good weedout
filter on the telephone before they even come in. LOL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top