Programmer Interview Questions | Glassdoor

Programmer Interview Questions

Programmers are responsible for developing code to build products. In an interview context, expect to be quizzed on your technical skills through different kinds of computing problems or brainteasers. The specific questions you are asked will depend on what type of programming position you are looking for. Try researching a specific discipline such as web development, application development, or system development.

Top Interview Questions

Sort: RelevancePopular Date

How many tries would it take to successfully choose a randomly-picked number from between 1 and 1000?

2 Answers

I didn't know, but I vainly tried to get it. Just keep picking a median number (500, 250, 125, etc.) until you get it right.

log2(1000) = log 1000 / log 2 ~= 10

Tell me about an experience where you were forced to handle a conflict, and what was the outcome

2 Answers

What is the most used Java class?

1 Answer

How many square feet of pizza is eaten in the US each year?

27 Answers

Why did I want to work for the company.

27 Answers

Assume there is a method provided getNextperson() which gives Person objects which have comparable interface implemented, now read from a file records and sort it and give first 1000 records, write code on the paper

7 Answers

How do you find the max depth of a binary tree?

5 Answers

How would you cut a rectangular cake into two equal pieces when a rectangular piece has already been cut out of it? The cut piece can be of any size and orientation. You are only allowed to make one straight cut.

3 Answers

I was given a logic question where you have 5 balls. One of the balls is heavier than the others. What's the fewest number of times you have to compare weights to figure out which ball is heavier.

4 Answers

Write code to return a sorted array of int, when passed in 2 sorted array of int to the method.

5 Answers
110 of 2,866 Interview Questions