Developer Interview Questions |

Developer Interview Questions


developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Puzzle: How do you weight an elephant without using a weigh machine?

37 Answers

Use a pool -> calculate the volume of water of the pool and the water level, put the elephant in the pool, take note of the level after the elephant after it is in the pool. By Archimedes principle, the volume of water dislocated is the same as the weight. So the weight of the elephant is the same as the difference in water volume.

Not quite. The volume of the water is not the same as the weight of the elephant. You'd have to estimate the density of an elephant and multiply that by the volume of the water to get the mass, then multiply that by the acceleration due to gravity in water system (SI, English Customary, etc.) you're using. Luckily, mammals are mostly water (humans are around 70% water on average), so about 2/3 of the weight of the elephant would be equivalent to the weight of the water displaced. So you would have to estimate how dense the rest of the elephant is (since it'd be minerals and such, I'd say it's more dense than water) and follow the steps described above.

Apply a known force to the elephant and measure the acceleration. Use physics to deduce the mass.

tell me about yourself

36 Answers

write a program in c/c++/java to print the pattern 1 2*2 3*3*3 4*4*4*4 4*4*4*4 3*3*3 2*2 1

34 Answers

Given a string "aaabbbcc", compress it, = "a3b3c2" . Given that output string's length is always smaller than input string, you have do it inplace. No extra space

30 Answers

implement the dynamic polymorphism

23 Answers

The final round of interview was challenging in terms of how you pick scenarios from your career.

21 Answers

Given a number find it is one less than the power of two.

15 Answers

Aptitude questions were from the topics like Discounts, Profit or loss, Boats and streams, Work ,Pipes,Finding X and Y, Numbers, Ratio and Proportion. And all the programming questions were only from C language.

16 Answers

Q1. Draw star pattern like. n=1. * n=2. ** * n=3. *** ** * n=4 **** *** ** * n=5. ***** **** *** ** *

16 Answers

Why do you want to join Wipro ? and please don't give me crap answers !

13 Answers
110 of 106,659 Interview Questions