Microsoft Interview Question for Software Engineer in Tests






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

go fuck yourself

- Anonymous October 08, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Please refrain from posting these comments. If you donot like the question, there must be better ways to express your frustration:)

- sb April 26, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

after somethought, this could be a valid question if maxint is small. wouldn't you just fucking add a bunch of rands?

- Anonymous October 08, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Are these the values you had from your family ? I wonder if you ever had a family ...
Any decent person won't be replying in this manner !!!

- Anonymous October 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I guess your family has too many values.
Learn taking things easy!

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

If we can access the system time in micro seconds we can print the value of second in order of micro second..

- Kasturi October 21, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

But wouldnt microsecond make it a million? They have asked billion for which we will need picoseconds.

- Anonymous October 28, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

But wouldnt microsecond make it a million? They have asked billion for which we will need nanoseconds.

- Anonymous October 28, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Is it the answer?
We can just add two random variables if there is a random function which generates nanosec.

- Taesung October 29, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

if there was a function to generate nanoseconds then we need not add two variables for it. Also adding does not generate truly random variables as lower end values will have lesser probability of coming true. Its like throwing two dice....the sum of two dice faces has a lower probability of being 1 ( 1/36 ) than other allowed sums.

- Anonymous November 01, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

cant we use the random number generator mathematical formulae
xi = (a x0 + c)mod m
whre x0= seed eg 3
a is multiplier say 17
c is a constant say 5
and m = 10 ^ 10

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

Using srand(time(null)) we can generate random numbers along with the usage of system clock to assure every time a random number when a code is compiled.

- Deepak Agrawal April 11, 2014 | 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