Microsoft Interview Question for Interns


Country: United States
Interview Type: In-Person




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

Pass the permutation combination of the below values.

Parameter 1:
1. null
2. string.Empty
3. largeString
4. largeStringWithMixOfSpecialChars.
5. largeStringWithOnlySpecialChars.
6. Globalized unicode chars.

Parameter 2 and 3:
1. NegativeIntUpperBound,
2. PositiveIntUpperBound
3. NegativeDoubleUpperBound
4. PositiveDoubleUpperBound
5. 0

- Srigopal Chitrapu December 24, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

some more
string with mix of upper and lower case
string with all upper case
string with all lower cases
string which is more than what we can fit into its String.Length property which is integer

for int/double
Max+1, Min-1 to cause overflow
Cross combination of integer and double like both +, both -, one +, one - and vice versa, plus both zero, 1non zero other zero and vice versa.

- billu December 25, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

For the int Pointer we can pass: address of int which holds values: 0, - range, +range.
And For NULL pointer

- Amit Kumar January 06, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

some more,

1. String starting with spaces
2. String Ending with spaces
3. Empty string

4. NULL pointer

5. upper limits (+ve/-ve) for double

- NaMo January 16, 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