Image credit: http://blog.teamtreehouse.com/ |
Basic C Interview Questions and Answers
- Write a function. When asked of this question, you have to make sure that you do checking for any bad input. A bad one, as you know, will result to a wrong answer. Test for empty, not null and less than or greater than one as well as a zero input.
- Write a recursive version of a function. When you write a function’s iterative version, the interviewer may ask you to come up with the recursive. Before going for the interview, prepare for it.
- Optimize the recursive function. Whether you write an iterative or recursive function, the interviewer might ask you to optimize it. Prepare for it.
- Fix the problem ____. This is usually done as a follow up question. For instance, he might ask you to find a deadlock, and then fix this deadlock in Java.
- You can measure for the Best and Worst Case in the order of complexity. You should also be prepared for it.
Tips When Answering C Interview Questions and Answers
- Think on your feet. Don’t panic. You don’t have to speak right away when answering the question. You can pause for a couple of seconds or a minute to ensure that your answer is well thought of.
- Read of questions and answers such as those above from top sources online to ensure that you have an idea of what questions to be asked during a C programming interview.
- Analyze your answer for correctness before opening your mouth. The job of a Java programmer is one of the most complicated requiring 100 percent accuracy, so be sure that you check your answers and solutions before spitting it out.
You can also have a look at the list project manager interview questions and answers to get prepared.