Thread: C programming career advices

  1. #46
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I heard that employers are only interested in the past fifteen years, otherwise alledging that you forgot the older stuff you did or the work was outdated.

  2. #47
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Well I'm not a college student and I've not been in this industry for a few years but have been in several others. I couldn't fit fifteen years on 2 pages. So I normally go back 7 years which puts me at exactly 2 pages and then leave a note stating more history is available upon request. More history has never been requested.

    (I don't think it's a sin to post what questions you have been asked in interviews previously, do yall?)
    In my opinion it's ok as long as you don't get extremely specific about the company on the forums.
    Last edited by VirtualAce; 03-08-2008 at 09:53 AM.

  3. #48
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Exactly as I used to do. The first page I would give my personal details, academic background and skills. The second page had my chronological professional experience. All in Serif 12pt and formated in tables for easier reading
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  4. #49
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    Well, here are some questions that I have been asked in various interviews with companies:

    - Given a problem, how would you go about choosing an algorithm to solve that problem? What factors play into your decision?

    - You are assigned the task of coordinating elevator movement in a building. There are several floors to the building, and there are several elevators. How would go about scheduling which elevator goes to which floor?

    - You are assigned the task of creating a plan for a city's waste disposal system. In short - they need more trash cans. There are not enough trash cans around the city, and so it is getting dirty. Design a plan to install trash cans, and state what factors into the decisions that you make.

    - Given this series of letters, where would you go about placing the next letters in the alphabet?

    AEF
    BCD

    - In morse code, letters a represented by a series of dots and dashes (. and -). Assume that there is no break in the code between two letters. (Refer to http://en.wikipedia.org/wiki/Morse_code for a table of morse code symbols).
    Assuming no break between letters, the string "ABC" would be: .--...-.-.

    Given that information, how would go about interpreting a string such as this: ......


    - What is a hash table? What is a binary tree? What advantages does each have, and in which cases would you use each?

    - What is CGI? How does it relate to server-side scripting?

    - What is the difference between TCP and UDP?

    - You are given a function rand() which returns any random number in the entire range of 32-bit integers. Now write a function random(int min, int max) that makes use of the rand() function in order to return a random integer somewhere between the values min and max.

    - Given a singly linked list, how would you go about detecting whether this singly linked list is cyclical? Write a function to do so. The function will look like: bool isCyclical (node *headNode);

    - Write a function to perform a binary search on a sorted array.

    - You are asked to delete a node that is part of a singly-linked list. You are given a pointer only to that node, and you have no knowledge of any of the list that comes before that node. Delete the node in such a way that you do not break the list. (I.E. links are maintained) The function prototype is: void deleteNode (node *pointerToNode)

    - Given a 4-byte data field, how can I obtain the value in the 2 bits that are located 6 bits away from the most significant bit? Write a function to do so.

    - Given a 4-byte data field, write a C/C++ function that will change these 4 bytes from big endian to little endian.

    - Write a function that will return true if a given point is found to be within a designated circle, or false if it is outside of the circle. THe function prototype is: bool isInCircle ( point circleCenter, int radius, point arbitraryPoint );

    The distance function is: distance = sqrt ( (x2 - x1)^2 + (y2 - y1)^2 )

    After you have written the function, take a look at it. The client for whom you wrote the function says it is too slow. How can you speed it up, and still have it work correctly?

    - We will define the value of a binary tree to be the value of the parent node plus the value of its left subtree minus the value of its right subtree. Write a function to calculate the value of a binary tree.
    My Website

    "Circular logic is good because it is."

  5. #50
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    In morse code, letters a represented by a series of dots and dashes (. and -). Assume that there is no break in the code between two letters.
    You have been asked that? Morse code without pauses between letters is ambiguous. For example, it's not possible to distinguish between EE and I, which could be embarrassing if you require a sheet of paper ...
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #51
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    Yeah, on that particular problem they just wanted to see how I think. That's really how all the upper questions in the list are. All the lower questions are the coding ones.
    My Website

    "Circular logic is good because it is."

  7. #52
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Yeah, on that particular problem they just wanted to see how I think. That's really how all the upper questions in the list are. All the lower questions are the coding ones.
    If I ever asked that question in an interview, the only right answer I would accept would be "that's a stupid question".

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Career Guidence:C++ with unix flavor
    By CChakra in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 10-27-2008, 11:29 AM
  2. To Program or Not to Program. Career Advise.
    By SoLost in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 05-05-2008, 02:58 PM
  3. Replies: 9
    Last Post: 02-27-2006, 04:45 AM
  4. New degree, now how do I build a software career?
    By nethervoid in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 03-14-2005, 01:47 PM
  5. programming career in future?
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 04-24-2003, 06:40 PM