Pre-Interviewer asking sample code

This is a discussion on Pre-Interviewer asking sample code within the C Programming forums, part of the General Programming Boards category; Hi all, I am searching for a new job and interviewer asking me to send a sample code in C ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    10

    Pre-Interviewer asking sample code

    Hi all,
    I am searching for a new job and interviewer asking me to send a sample code in C

    what exactly they are expecting from me?

    1) Do I have to send my own code which I have done in the past/ Do I have to send someone's code that I like most?




    If I send any code what's the guarentee that I have done it on my own?

    position is Junior Embedded Linux Programmer.

    And he want code in "C"

    I have about 2 years of programming expierence and I have done some develepment projects but do I have to post entire project. Because I only done part of the projects(mostly) and my code alone doesn't make any sense.


    Please help me how to do it?

    Thanks in advance.
    Last edited by jayee_spicyguy; 02-08-2009 at 09:09 PM.

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,299
    No they aren't expecting a whole project. They wont be compiling it, they'll just be looking to make sure it's not a piece of crap.
    E.g. too many globals, bad function or variable naming, bugs, poor coding style (badly laid-out or indented), too much copy and pasted code that could be shortened a lot, someone else's work passed off as your own etc.

    It's not that it has to be perfect, it's just that by them even asking for it they'll weed out about 50% of applicants because it'll scare off those that don't really know anything about coding from even applying, and many that do apply will probably send in crap as per the above because they've only been coding for 2 months etc.

    Send in something that looks good at a glance and you'll probably be fine in this regards. Maybe just one average size .c and .h file.

    P.S. Don't flog me if you don't get the job though
    Last edited by iMalc; 02-08-2009 at 10:44 PM.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  3. #3
    PhysicistTurnedProgrammer Cell's Avatar
    Join Date
    Jan 2009
    Location
    New Jersey
    Posts
    72
    Make sure you're able to explain the code and your thought processes behind the design!

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Definitely send code you've worked on, not some other project that you like.

    Also, send the whole project and explain which parts are yours, and which parts were done by other project members. (also make sure you have the authority to send this code, if these were projects for other companies they likely won't appreciate you sending their code around. If they are just course projects then you should be fine.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't get sample shell code to work...
    By jcafaro10 in forum C Programming
    Replies: 6
    Last Post: 07-07-2010, 08:04 AM
  2. Linked List Tutorial sample code question
    By Kalleos in forum C Programming
    Replies: 2
    Last Post: 01-16-2009, 11:20 AM
  3. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 03:28 AM
  4. stricmp() where can I view the sample code?
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 06-28-2002, 08:40 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21