Microsoft Interview Question for Quality Assurance Engineers


Country: United States
Interview Type: In-Person




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

I believe the test case is for reversing a string
1.What happens if string is null
2.what if string has same characters
3.what if string is a palidrome.
4.what is the longest length of the string func can accept.
5.can this reverse integers?
6.If it fails due to some reason how does it cope up?
7.what if the end of string is not terminated by NULL character ?

- kol July 12, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Good answer.
1 point to add
What if string contain space in middle or back slash code or special character in the middle.

- Raviteja July 13, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

one more thing we can add is that if string contains extra spaces in the end

- kararicky August 25, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Good approach. Thanks!

- pooja August 16, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 2 vote

I don't believe that this test is only aimed to reverse 'ABC'.

'ABC' is one example and what we need to think about is how to test reverseString function itself, right??

- TS July 11, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Is it for the SDET position...?

- Anonymous July 13, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

is this for SDET posotion...?

- subhashkonda July 13, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I liked the ans.....thanks buddy...!!

- Anonymous February 11, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

what do you mean by string is not NULL terminated.. ??? Please give an example...I thought string are null terminated ?

- anonymous April 19, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

#include <stdio.h>
main()
{
int r,rem=0,c,a,re=0,em=0,p[3],s[3],n,b,i=0,*pr,*pr1,*p1,*p2;
pr1=p;
pr=s;
p1=&n;
p2=&b;
for(i=0;i<3;i++)
{
printf("enter the a,b");
scanf("%d %d",&p[i],&s[i]);
}
for(i=0;i<3;i++)
{
*p1=*pr1;
*p2=*pr;
while(n!=0)
{
r=n%10;
rem=rem*10+r;
n=n/10;
}
while(b!=0)
{
r=b%10;
re=re*10+r;
b=b/10;
}
c=rem+re;
while(c!=0)
{
r=c%10;
em=em*10+r;
c=c/10;
}

printf("the reverse no is:%d",em);


}
}

- Anonymous September 14, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 votes

They do ask such type of questions in microsoft without giving more details.

- Anonymous January 07, 2013 | Flag


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