National Instruments Interview Question for Software Engineer / Developers


Country: India
Interview Type: Written Test




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

The probability one person hit the stump twice is E(X) = P^2

Assume that n people (n= 5) are n independent variables (the result from one does not influence result of the others) then the expected number of people who hit both time is
E(X1) + E(X2) + .. E(Xn) = n E(X) = n * P^2

Quick validation if P = 1, always hit, and all the people hit twice then there are 5 people hit
P = 0, always failed, non-of-them hit, then we expect 0 as the result

- LinhHA05 July 24, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think the probability will become greater than 1 when P=0.5

- martin1990 July 24, 2013 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

The question is how many person, that is why the result can be greater than 1. In term of the probability for one person to hit twice, it is always less than 1 : P^2 <= P <= 1.0

- LinhHA05 July 24, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I think one person hitting ball is p^2(2*(1-p)*p+(1-p)*(1-p)) since no others must hit ball twice

- Bala Sravan July 25, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Why not n(1-(1-p)^2) ??

- sravan October 23, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

n*(p^2) will give how many people will hit the stumps twice in there turn .

- rinku goel January 31, 2015 | Flag
Comment hidden because of low score. Click to expand.
0
of 2 vote

Ans is 5*P*P

- loveCoding July 24, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

no of events = pp,(1-p)p, (1-p)(1_p)
so , 1/3;
for five persons = 5*3=15;
both times hitting= 5/15 = 1/3;
so three persons will hit both times........

- lakshmipriya August 16, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

one person has a possibilities to hit a stump=1/3
possibilities are (hh,h(1-h),(1-h)(1-h))
so for 5 people possibilities is 5/3

- kundan kumar January 22, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

CodingTonic . blogspot . com

- Abhinav January 26, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

codingtonic.blogspot.in/2015/01/national-instruments-interview.html

- abhinav January 26, 2015 | 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