home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Newsgroups: comp.lang.c
- Subject: Re: Updated and improved "testing competence" questions
- Message-ID: <1992Dec16.085847.10266@thunder.mcrcim.mcgill.edu>
- Date: 16 Dec 92 08:58:47 GMT
- References: <1gbstkINNfcp@almaak.usc.edu>
- Organization: McGill Research Centre for Intelligent Machines
- Lines: 35
-
- In article <1gbstkINNfcp@almaak.usc.edu>, ajayshah@almaak.usc.edu (Ajay Shah) writes:
-
- > Questions for an exam on C (for hiring purposes)
-
- > 3. How do you set up .c and .h files ? What goes into the .h and what
- > in the .c ?
-
- This is, IMO, the only one that's actually a reasonable test of
- competence at programming in general, as opposed to language details.
- (Of course, if the position you're hiring for is language lawyer, the
- picky detail questions may be appropriate.)
-
- > 9. What is the difference between 'X' and "X"?
- > - 'X' is just the integer 88. "X" is a pointer to a scratch space
- > containing 88 followed by 0.
-
- Where did you get 88? Doesn't everyone know capital X is character
- 231? (Only half a :-)
-
- Actually, 'X' is an int whose value is whatever character code the
- implementation uses to represent the X character. This may or may not
- be 88, 231, or any other specific value.
-
- Herewith my own suggestion for a question. Of course, this demands a
- fair degree of competence on the part of the interviewer, to evaluate
- the response, but the interviewer always has to be competent, or is in
- danger of being taken for a ride by a snow job artist.
-
- Q: Give three rules of good programming style, and for each one, an
- example of when it would be good to break it.
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-