MockQuestions MockQuestions
Answer Review
Interview Coaching
Interviews Questions by Career
Interviews Questions by Company
Interviews Questions by Topic
View Answers
Coaching For Your Next Interview
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

76 Questions and Answers Written by Professional Interviewers

Question 1 of 76
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?
Get More Interview Practice
Pick your topic
Ask the Interviewer
Questions you may consider asking the interviewer, about ...
We all have some behaviors that are typical of us and whi...
Common Interview Questions
There are some questions that employers ask at almost eve...
If you are interviewing for any type of leadership role; ...
Most interviews start with a telephone interview. Hiring ...
Everyone struggles with tough interview questions. Learn ...
View more interview questions
Question 2 of 76
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).
Question 3 of 76
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.
Question 4 of 76
You have been assigned to design Bill Gates bathroom. Naturally, cost is not a consideration. You may not speak to Bill.
User-Submitted Answers
I would ask him how does he want his bathroom does he want simple or with all the new technology.
Question 5 of 76
Write a program to print a binary tree such that the root is printed in the middle of its left and right sub-trees.
Question 6 of 76
For a single computer processor computer system, what is the purpose of a processor cache and describe its operation?
User-Submitted Answers
Cache memory is used to fasten up the operations. Usually memory operations take longer time to complete than desired compared to the speed of the processor. Cache memories try to bridge the gap between speed of processor and main memory in the computer.
Question 7 of 76
Be honest, do you really want this position? Why?
Question 8 of 76
What are the total number of lines written in C/C++? What is the most complicated/valuable program written in C/C++?
Question 9 of 76
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.
Question 10 of 76
Write a function of factorial using C language.
Question 11 of 76
How do you represent an n-ary tree? Write a program to print the nodes of such a tree in breadth first order.
Question 12 of 76
Print an integer using only putchar. Try doing it without using extra storage.
Question 13 of 76
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?
Question 14 of 76
What types of high speed CMOS circuits have you designed?
Question 15 of 76
Are you familiar with the term MESI?
Question 16 of 76
What types of CMOS memories have you designed? What were their size? Speed? Configuration Process technology?
User-Submitted Answers
Thuni pokki adipilattirikku...........
Question 17 of 76
What is a far pointer (in DOS)?
User-Submitted Answers
It is a pointer used to access intrasegment addresses.
Question 18 of 76
Why is disk interleaving adopted?
Question 19 of 76
Write a routine that prints out a 2-D array in spiral order!
Question 20 of 76
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).
Question 21 of 76
What are various problems unique to distributed database?
User-Submitted Answers
Data allocation, fragmentation, and replication.
Question 22 of 76
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.
Question 23 of 76
Are you familiar with VHDL and/or Verilog?
Question 24 of 76
What is the tradeoff between time spent in testing a product and getting into the market first.
Question 25 of 76
What do you test for given that there isn't enough time to test everything you want to?
Question 26 of 76
Give a fast way to multiply a number by 7.
Question 27 of 76
Linked list manipulation.
Question 28 of 76
Insert in a sorted list.
Question 29 of 76
Write C code for (a) deleting an element from a linked list (b) traversing a linked list.
Question 30 of 76
Are you willing to work overtime, nights, weekends?
Question 31 of 76
What is a balanced tree?
Question 32 of 76
Describe the file system layout in the UNIX OS.
Question 33 of 76
In UNIX, are the files allocated contiguous blocks of data?
Question 34 of 76
What is disk interleaving?
Question 35 of 76
If I told you we were willing to invest $5 million in a start up of your choice, what business would you start? Why?
Question 36 of 76
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?
Question 37 of 76
What is a volatile variable?
Question 38 of 76
What is the scope of a static function in C?
Question 39 of 76
What is the difference between 'malloc' and 'calloc'?
Question 40 of 76
Under what circumstances can one delete an element from a singly linked list in constant time?
User-Submitted Answers
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.
Question 41 of 76
Given a singly linked list, determine whether it contains a loop or not.
Question 42 of 76
Given a singly linked list, print out its contents in reverse order. Can you do it without using any extra space?
Question 43 of 76
Given a binary tree with nodes, print out the values in pre-order/in-order/post-order without using any extra space.
Question 44 of 76
What is the simples way to check if the sum of two unsigned integers has resulted in an overflow.
User-Submitted Answers
What is the simple way to check whether the sum of two unsigned integers is resulted in overflow.
Question 45 of 76
How do you use RSA for both authentication and secrecy?
Question 46 of 76
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?
Question 47 of 76
Are you familiar with the term snooping?
Question 48 of 76
Explain the difference between write through and write back cache.
Question 49 of 76
Are you a team player?
Question 50 of 76
Describe a finite state machine that will detect three consecutive coin tosses (of one coin) that results in heads.
Question 51 of 76
Do you mind if I eat this delicious oreo blizzard right in front of you?
Question 52 of 76
In what cases do you need to double clock a signal before presenting it to a synchronous state machine?
Question 53 of 76
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?
Question 54 of 76
Have you studied busses? What types?
Question 55 of 76
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?
User-Submitted Answers
The five stages are:fetchdecodeexecutememorywrite backmatency is 5 clock cycles. Throughput is 1 instruction/cycle.
Question 56 of 76
What is the difference between = and == in C?
Question 57 of 76
How many bit combinations are there in a byte?
Question 58 of 76
What work have you done on a full chip Clock and Power distribution? What process technology and budgets were used?
Question 59 of 76
What transistor level design tools are you proficient with? What types of designs were they used on?
Question 60 of 76
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?
Question 61 of 76
If not into production, how far did you follow the design and why did it fail to make production?
Question 62 of 76
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.
Question 63 of 76
Use recursion to write a function of factorial.
Question 64 of 76
Write a function to reverse the words in a sentence, for example 'This is a test' becomes 'test a is This'.
Question 65 of 76
You have a linked list. How can you tell that there is no cycling in it?
Question 66 of 76
How would you write a program to search a file on the hard drive?
Question 67 of 76
What is the difference between basic building blocks in C and C++?
Question 68 of 76
For C++ developers the most frequent question is 'What is virtual distructor and when do you need to use it?
Question 69 of 76
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?
Question 70 of 76
What operation will take longer time... to add two bytes? to add two floats? to add byte and float?
Question 71 of 76
How do you convert a decimale number to binary (C, PERL)?
Question 72 of 76
There are two integers a and b. How to exchange the contents of them without using a third one?
Question 73 of 76
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.
User-Submitted Answers
Num/num == num.
Question 74 of 76
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.
Question 75 of 76
Give a very good method to count the number of ones in a 'n' (e.g. 32) bit number.
Question 76 of 76
Reverse a linked list.

Related Career Interviews

Software Developer
Software developers are creative minds that work behind the scenes to develop various computer programs. They are responsible for the complete development process for specific software programs, from analyzing ...
Computer Scientist
Computer scientists are highly skilled professionals who specialize in developing innovative technologies and computer-based solutions. These experts are typically hired by private engineering firms, academic ...
Computer Hardware Engineer
Computer hardware engineers are highly skilled professionals who specialize in designing, developing and testing different types of computer systems and their components. As part of their job, computer ...
Computer Support
Computer support technicians are responsible for maintaining all computer equipment, peripherals, and terminals and ensuring that they comply with established guidelines. Their tasks include identifying ...
Database Administrator
Database administrators oversee all aspects of a database. They play an integral part in the planning and development of a database. They are also responsible for its performance, security, and integrity. ...
Web Developer
Web developers specialize in creating bespoke websites that meet a client's specifications. They are responsible for all aspects of website development, from coding and designing new layouts and functionalities ...
View More Careers

About Our Interview Questions

Our interview questions are created by writers, almost all of which, have a long history of recruiting and interviewing candidates. They do not necessarily have experience interviewing or working with companies, careers, or schools, in which they may write for on We do, however, strive to match their background and expertise with the appropriate question sets found on our website.

Our careers, companies, industries, and schools may have duplicate interview questions and answers found elsewhere on our website. Specifically, our companies and our graduate school interviews. For these two, we use the industry in which we believe the company most well-represents and the graduate programs, as the basis for the interview questions and answers that generate for each company or school.

The intent of is for our users to build confidence for their job interview, by using our thousands of interview questions and answers as they practice and prepare for their interview. We believe, most of our visitors can become more likely to succeed in their job interview with hard-work and practice. We believe, the key to success is for our users to rehearse with our interview questions while using our answer examples as an idea generator for their own interview answers. We strongly want to discourage users from memorizing our answer examples. That is not the purpose of our website.