Microsoft Interview Question for Software Engineer / Developers






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

ans: 5

(5/2)
(5) 101 --- (2) right shifts --- gives 011 i.e. (3)
(10/3)
(10) 1010 --- (3) right shifts --- gives 0101 i.e. (5)

- Shekhar Agrawal February 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
3
of 3 vote

5/2=3
5/3=2

10/3=4...Righ,,,,?
Ans:10/3=4

- sudarson October 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Couple of good ideas..
my answer would be the this in the first place

- erm October 18, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Couple of good ideas..
my answer would be this in the first place

- erm October 18, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Here 5/2 = 3
and converting it to 5/3 = 2 is not a good choice I think!

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

I think it's just division with round-up to larger number:
5/2=2.5 -> rounding get 3
10/3=3.33.. -> rounding get 4

- Sergey October 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Rounding 3.33 => 3
not 4 .

- Paul October 16, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

"Rounding" is different from truncation.

- @paul July 14, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

This is what i think!

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

I think its right 3.33=>3

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

Ans :- 4

Solution : ( 3 * 2 * 10 ) / ( 5 * 3) = 4

- Meenal Devpura December 28, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think it is 10/3 = 10/(5/2) = 10*2/5 = 4

- Kelvin October 17, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

5/2 is not the same as 5 "divided by" 2 here.... the "/" i believe is just a factor added to confuse. This is what I think it is:

5 op 2 = 3 (5-2 = 3)
so shoudn't 10 op 3 be 10 - 3 = 7 ?

- Vaishnavi October 17, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I would go with Vaishnavi.

- Aqui October 19, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Which place?

- Anonymous November 27, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Lol....vaishno devi..where else?

- Loler February 02, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

5=101 base on 2, so the length is 3
10=101 base on 3, so the length is 3

- Yuan October 17, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

hmm...this is an interesting viewpoint

- bhatpranav October 27, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

as i think Vaishnavi is right

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

i think the question is too loose to fit in any answers.

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

7

- Anonymous March 04, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

10*6/3*6=5/2*6/3=3*2=6

- anonymus September 10, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

given 5/2=3, what will be the output of 10/3?

I thought 4.

5/2 = 3
=> (5*2) / (2*1.5) = (3*2) / (1*1.5)
=> 10/3 = 6/1.5
=> 10/3 = 4

QED?

- Anonymous December 20, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

10/3= 5x2/3 = (5x2x2x2)/(3x2x2)=(5/2)x(2x2x2/(3x2)=3x(2x2x2)/(3x2)=(2x2x2)/2=4

- Anonymous October 31, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

5/2 == 5-2 == 3
10/3 == 10-3 == 7

- Anonymous March 04, 2011 | Flag Reply


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