Microsoft Interview Question for Testing / Quality Assurances






Comment hidden because of low score. Click to expand.
2
of 2 vote

Take 3-3 balls and check weight, If equal use two left balls and check for light weight ball.

If 3-3 balls weight not equal take those 3 balls having less weight and take any two balls to check weight if equal weight then 3rd ball is light weight

- N January 22, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
2
of 2 vote

Divide them into three groups, 2, 2 and 3.

Weigh 2 and 2, if equals, the lighter ball is in the last group. Take 2 out from 3 and weigh them, if equals, the left ball is the lighter ball, if not equal, take the lighter ball.
if not equal, the lighter ball is in the lighter group. Take the lighter group which contains 2 balls, weight them and take the lighter ball.


Another solution:

Divide into 3 groups, 3,3 and 1
Weigh the 3 and 3. If equal, the third group is the lighter ball.
If not equal, the ball is in the lighter group, which contains 3 balls. Take 2 balls out from the 3, weight 2 of them, if equal, the last ball is the lighter. If not equal, take the lighter ball.

- Anonymous March 11, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

The set division should be 3-3-2 isnt it??

- Psycho September 04, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. Weigh a group of gp1 and gp2 of 3 balls each
2. if gp1 < gp2 weigh gp1.1 and gp1.2 if gp1.1 == gp1.2 return gp1.3 else return lighter ball
3. if gp1 == gp2, weigh gp3.1 and gp3.2

- Anonymous January 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@ Anonymous on March 11, 2010

its 8 not 7..

- sourabh March 29, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

it is 8 balls.
make groups of A=3,B=3,c=2
weigh A & B if they equal, separate out the balls in C to see which one weighs more
Otherwise if A (or B) is lighter, separte out the balls in A. Weigh 2 of them, if they are equal, then the one not weighed is lighter.

- naema November 12, 2010 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More