## Microsoft Interview Question for Software Engineers

Team: Windows
Country: United States
Interview Type: Phone Interview

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

The result has NO related with the color of car and the music of listening. The only thing which will effects the result is date.

So John will have 30% probability reaching office before the time on Tuesday and Friday.

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

The answer should be c). It is not reasonable to expect a causal relationship between color of car, music, and the time arrived at work.

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

I think the option (a would maximize his chance
because,
for option (a
prob(driving red car AND listening to POP music AND arriving earlier on Friday) =
0.4*0.4*0.3 = 4.8%
for option (b
= 0.3 * 0.3 * 0.3 = 2.7%

Comment hidden because of low score. Click to expand.
0

Your idea is good, however it should not be calculated in that way. If we do like that, then the prob(red, pop, arrive not earlier on fri.) = 0.4 * 0.4 * 0.7 is also larger than black&rock.
The problem is P(Red&pop|Fri) != P(Fri|Red&pop).
if we assume the conditions are mutual independent, P(Fri|Red&pop) = P(Fri&Red&pop) / P(Red&pop) = P(Fri), so they are all the same.

Comment hidden because of low score. Click to expand.
0

we are not calculating P(Red&Pop&BeforeOnFriday), we are calculating P(BeforeOnFriday|Red&Pop)

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

a.) would maximize his chances to reach office early
Total cases=10
a.)probability=probability of driving red car *probability of listening to POP music * probability of reaching office early on friday = 4/10 * 4/10 * 3/10=0.048
b.)probability=probability of driving blue car *probability of listening to rock music * probability of reaching office early on teusday= 3/10 * 3/10 * 3/10=0.027

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

Probability for option a = 0.4+0.4+0.3 = 1.1
Probability for option b = 0.3+0.3+0.3 = 0.9

Ideal total probability = ideal option a probability + ideal option b probability = 1+1 = 2
obtained probability = option a probability + option b probability = 1.1+0.9=2

Percentage probability:
Option a percentage = 1.1/2 = 55%
Option b percentage = 0.9/2 = 45%

So option a is optimal with 55% probability

Comment hidden because of low score. Click to expand.
0

i.e. Option a has 10% higher probability compared to option b

Comment hidden because of low score. Click to expand.
0

you need to multiply 0.4, 0.3, 0.3 to get probability, not sum

Comment hidden because of low score. Click to expand.
0

Dude! probability cannot be greater than 1 !!! How do you say "prab. for a is 1.1"?

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

prob of option a =.4*.4*.3=.048
prob of option b=.3*.3*.3=.027

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

``````probability of option a is .4*.4*.3=0.048
probability of option b is .3*.3*.3=0.027
as all these are independent events.so option a has more probability``````

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

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

a) .4*.4*.3 = 0.048
b) .3*.3*.3 = 0.027

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

a).4*.4*.6=.096
b).3*.3*.6=.042

as he has to go either on tuesday or friday

Comment hidden because of low score. Click to expand.
-1
of 3 vote

I thinks both of question are "whatever" because the color of car and music type do not related with the result.

Based on observation, we got 30% probability to reaching at office before the time. So whatever the color of car which John drives or whatever the music John listening. John will has 30% probability to reaching at office on Friday and Tuesday.

Comment hidden because of low score. Click to expand.

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.

### 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.