Interviews Questions by Career
Interviews Questions by Company
Interviews Questions by Topic
Get Started
Interview Coach 1:1
Gain the confidence you need by asking our professionals any interview scenario, question, or answer you are unsure about.
Let Us Review Your Answers
Our interviewing professionals will gladly review and revise any answer you send us. Allowing you to craft perfect responses for your next job interview.
Interview Questions by Topic
Interview Questions by Career
Interview Questions by Company

Computer Programmer Interview
Questions

Job Interviews     Careers     Computer Science    
Question 1 of 76
Insert in a sorted list.
***Note: We do not have professional answers for this career***
User Answers
1000s of Interview Questions
Win your next job by practicing from our question bank. We have thousands of questions and answers created by interview experts.
Suggested
Interview Q&As
Explore expert tips and resources to be more confident in your next interview.
Behavioral
Common
Phone
Tough
Leadership
All Interview Topics
All Career Q&As
Suggested Career
Interview Q&As
Continue practicing by visiting these similar question sets
Computer Hardware Engineer
Computer Scientist
Computer Support
Database Administrator
Software Developer
Web Developer
15 Computer Programmer User Answer Examples
1.
Insert in a sorted list.
2.
What is a balanced tree?
3.
What types of high speed CMOS circuits have you designed?
4.
Under what circumstances can one delete an element from a singly linked list in constant time?
User-Submitted Answers
1.
If the List is Circular and There are no References to the Nodes In The List Then Just Copy The Contents In the Next Node And Delete The Next Node. If List Is Not Circular Then We can Delete any But The Last Node Using This Idea. In that case Mark The Last as dummy.
5.
You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.
6.
What types of CMOS memories have you designed? What were their size? Speed? Configuration Process technology?
User-Submitted Answers
1.
Thuni pokki adipilattirikku...........
7.
If I told you we were willing to invest $5 million in a start up of your choice, what business would you start? Why?
8.
Are you willing to work overtime, nights, weekends?
9.
Why is disk interleaving adopted?
10.
What are various problems unique to distributed database?
User-Submitted Answers
1.
Data allocation, fragmentation, and replication.
11.
Linked list manipulation.
12.
Write C code for (a) deleting an element from a linked list (b) traversing a linked list.
13.
What is the tradeoff between time spent in testing a product and getting into the market first.
14.
For a bit manipulation C has some operators. Write a function rotate(m,n) that returns the value of integer m rotated to the right by n positions.
15.
How would go about finding out where to find a book in a library. (You don't know how exactly the books are organized beforehand).
More Interview Q&As
Explore expert tips and resources to be more confident in your next interview.
Behavioral
Common
Phone
Tough
Leadership
All Interview Topics
All Career Q&As
Suggested Career
Interview Q&As
Continue practicing by visiting these similar question sets
Computer Hardware Engineer
Computer Scientist
Computer Support
Database Administrator
Software Developer
Web Developer
76 Computer Programmer Interview Questions
Win your next job by practicing from our question bank. We have thousands of questions and answers created by interview experts.
Interview Questions
  1. Insert in a sorted list.
  2. What is a balanced tree?
  3. What types of high speed CMOS circuits have you designed?
  4. Under what circumstances can one delete an element from a singly linked list in constant time?
  5. You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.
  6. What types of CMOS memories have you designed? What were their size? Speed? Configuration Process technology?
  7. If I told you we were willing to invest $5 million in a start up of your choice, what business would you start? Why?
  8. Are you willing to work overtime, nights, weekends?
  9. Why is disk interleaving adopted?
  10. What are various problems unique to distributed database?
  11. Linked list manipulation.
  12. Write C code for (a) deleting an element from a linked list (b) traversing a linked list.
  13. What is the tradeoff between time spent in testing a product and getting into the market first.
  14. For a bit manipulation C has some operators. Write a function rotate(m,n) that returns the value of integer m rotated to the right by n positions.
  15. How would go about finding out where to find a book in a library. (You don't know how exactly the books are organized beforehand).
  16. Write a routine that prints out a 2-D array in spiral order!
  17. What is a far pointer (in DOS)?
  18. Explain the operation considering a two processor computer system with a cache for each processor. What are the main issues associated with multiprocessor caches and how might you solve it?
  19. How do you represent an n-ary tree? Write a program to print the nodes of such a tree in breadth first order.
  20. Write a program to print a binary tree such that the root is printed in the middle of its left and right sub-trees.
  21. What is the scope of a static function in C?
  22. What is disk interleaving?
  23. What do you test for given that there isn't enough time to test everything you want to?
  24. What are the total number of lines written in C/C++? What is the most complicated/valuable program written in C/C++?
  25. For a single computer processor computer system, what is the purpose of a processor cache and describe its operation?
  26. A real life problem - A square picture is cut into 16 squares and they are shuffled. Write a program to rearrange the 16 squares to get the original big square.
  27. If you could gather all of the computer manufacturers in the world together into one room and then tell them one thing that they would be compelled to do, what would it be?
  28. Draw the graph with performance on one axis and 'n' on another, where 'n' in the 'n' in n-way disk interleaving. (a tricky question, should be answered carefully).
  29. You have been assigned to design Bill Gates bathroom. Naturally, cost is not a consideration. You may not speak to Bill.
  30. Be honest, do you really want this position? Why?
  31. Write a function of factorial using C language.
  32. Print an integer using only putchar. Try doing it without using extra storage.
  33. Are you familiar with the term MESI?
  34. Are you familiar with VHDL and/or Verilog?
  35. Give a fast way to multiply a number by 7.
  36. Describe the file system layout in the UNIX OS.
  37. In UNIX, are the files allocated contiguous blocks of data?
  38. Given a new disk, how do you determine which interleaving is the best a) give 1000 read operations with each kind of interleaving determine the best interleaving from the statistics?
  39. What is a volatile variable?
  40. What is the difference between 'malloc' and 'calloc'?
  41. Given a singly linked list, determine whether it contains a loop or not.
  42. Given a singly linked list, print out its contents in reverse order. Can you do it without using any extra space?
  43. Given a binary tree with nodes, print out the values in pre-order/in-order/post-order without using any extra space.
  44. What is the simples way to check if the sum of two unsigned integers has resulted in an overflow.
  45. How do you use RSA for both authentication and secrecy?
  46. Two capacitors are connected in a parallel through a switch. C1=1uF, C2=0.25uF. Initially the switch is open, C1 is charged to 10V. What happens if we close the switch?
  47. Are you familiar with the term snooping?
  48. Explain the difference between write through and write back cache.
  49. Are you a team player?
  50. Describe a finite state machine that will detect three consecutive coin tosses (of one coin) that results in heads.
  51. Do you mind if I eat this delicious oreo blizzard right in front of you?
  52. In what cases do you need to double clock a signal before presenting it to a synchronous state machine?
  53. You have a driver that drives a long signal & connects to an input device. At the input device there is either overshoot, undershoot or signal threshold violations, what can be done to correct this problem?
  54. Have you studied busses? What types?
  55. Have you studied pipelining? List the 5 stages of a 5 stage pipeline. Assuming 1 clock per stage, what is the latency of an instruction in a 5 stage machine? What is the throughput of this machine?
  56. What is the difference between = and == in C?
  57. How many bit combinations are there in a byte?
  58. What work have you done on a full chip Clock and Power distribution? What process technology and budgets were used?
  59. What transistor level design tools are you proficient with? What types of designs were they used on?
  60. What products have you designed that have entered high volume production? What was your role in the silicon evaluation/product ramp? What tools did you use?
  61. If not into production, how far did you follow the design and why did it fail to make production?
  62. In a X's and 0's game (i.e. TIC TAC TOE) if you write a program for this give a fast way to generate the moves by the computer. I mean this should be the fastest way possible.
  63. Use recursion to write a function of factorial.
  64. Write a function to reverse the words in a sentence, for example 'This is a test' becomes 'test a is This'.
  65. You have a linked list. How can you tell that there is no cycling in it?
  66. How would you write a program to search a file on the hard drive?
  67. What is the difference between basic building blocks in C and C++?
  68. For C++ developers the most frequent question is 'What is virtual distructor and when do you need to use it?
  69. There is a sequence of random integers, for example 34, 12, -2, 0... Within this sequence you need to find a subsequence with the biggest sum of the numbers?
  70. What operation will take longer time... to add two bytes? to add two floats? to add byte and float?
  71. How do you convert a decimale number to binary (C, PERL)?
  72. There are two integers a and b. How to exchange the contents of them without using a third one?
  73. Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.
  74. Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
  75. Give a very good method to count the number of ones in a 'n' (e.g. 32) bit number.
  76. Reverse a linked list.
Disclaimer
Our interview questions and answers are created by experienced recruiters and interviewers. These questions and answers do not represent any organization, school, or company on our site. Interview questions and answer examples and any other content may be used else where on the site. We do not claim our questions will be asked in any interview you may have. Our goal is to create interview questions and answers that will best prepare you for your interview, and that means we do not want you to memorize our answers. You must create your own answers, and be prepared for any interview question in any interview.
Learn more about what we believe >
Read our Terms of Use for more information >