Microsoft Interview Question for Software Engineer in Tests






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

what about if both x and y are equal numbers?

- ItsMe May 06, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I came up with following Test cases.
TC-1: call max(5,10) and expect 10 as return.
TC-2: call max(-5,-10) and expect -5 as return.

What other Test cases can we write on this method?

- VinayK March 26, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

test for same value of x and y
i.e. max(5,5)

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

oops sorry i didn't read the second post:)
thats it i guess: positive, negative and zero

- Anonymous May 06, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Overflow and underflow of the numbers

- narada July 16, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

can provide example of overflow and underflow of numbers

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

Could someone elaborate what is API level I mean is there any extra care to be taken for it?

- Bhagyashree :o) September 23, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

we can also test for MAXINT..value

- Anonymous December 11, 2009 | 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