Microsoft Interview Question for Software Engineer in Tests






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

2 sensors required
---
place them apart
if (sensor1 has action and not on sensor2, then both sensors trigger action, then only sensor2 has action)
It's clock-wise rotating disk
else
counter clock-wise

- Mat June 08, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

2 sensors is the correct.
place it at an angle of 90 to each other.

Lets consider the arrangement as
S1
X.......S2
X
we need 3 timestamp from these sensors.
2 from S1 call it (tS11, tS12) and 1 timestamp from S2 (tS21)

if(ts11 - ts21) > (ts21 - ts12)
rotating in anti clocwise direction
else
Clockwise.


Correct me if i m worng.

- Somebody June 08, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

arrangement is circular. S1 is at 12:00 and S2 is at 3:00

- Somebody June 08, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

plz explain me clearly,can u upload a picture made in ms-paint and give link how will this work for me


(ts11 - ts21) always comes equal to (ts21 - ts12)

- Koel Sharma June 09, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

thats the solution I had in mind. The angel of 90 degrees is not that important. All we need to know is that the 2 sensors are not at 180 degrees and in which 2 quadrant they are located in.

Also we need to have the assumption that the plate is rotating at a constant speed else this solution wont work.

In case of variable rotation speed we would need 3 sensors. Put them on say at 1 O' Clock, 2 O'Clock and 3 O'Clock. Take 3 time stamps. from 3 sensors.

If sensor 1Time stamp is > sensor 2 Time Stamp> sensor 3 Time stamp the plate is moving counter clock wise else clock wise.

- sameerashraf June 09, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

thats the solution I had in mind. The angel of 90 degrees is not that important. All we need to know is that the 2 sensors are not at 180 degrees and in which 2 quadrant they are located in.

Also we need to have the assumption that the plate is rotating at a constant speed else this solution wont work.

In case of variable rotation speed we would need 3 sensors. Put them on say at 1 O' Clock, 2 O'Clock and 3 O'Clock. Take 3 time stamps. from 3 sensors.

If sensor 1Time stamp is > sensor 2 Time Stamp> sensor 3 Time stamp the plate is moving counter clock wise else clock wise.

- sameerashraf June 09, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Everybody is assuming that S1 is triggering before than S2 (and S3). What if it is not?

- Joao paulo June 22, 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