Microsoft Interview Question for Software Engineer in Tests






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

Test cases

1. normal float string like "1.2"

2. float string with out fraction like "10"

3. float string only fraction like ".7647834"

4. float string with prefix and suffix Zeros like "0.213232" "000001.487348"
"3.54500000" , "4.0"

5. Negative float numbers like "-23.545"

6. minimum & maximum float strings to check boundary conditions.

7. check rounding & truncate float strings like "1.5555555555555" "1.5555555555556666"

- siva.sai.2020 December 08, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Am I missed out any other test case ?

- siva.sai.2020 December 08, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

We can also test string without number, like "abc"

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

We can also add mixed like "1.2abc", "abc" etc

- Brutus January 13, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

we should also test for the string with more than one dot eg. "123.234.1432"

- Anonymous June 05, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Also check for null and empty strings.

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

atof(2.00000)

- Anonymous February 21, 2017 | 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