Amazon Interview Question for Quality Assurance Engineers


Team: Amazon Local
Country: United States
Interview Type: Phone Interview




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

There's only one answer for the sum of integers from 1 to 100. One test case. The answer's 5050.

- eugene.yarovoi January 08, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Correct, there is one "answer" to your question; however that is a developer answer. If you are a developer write that one unit test and lob the code over the wall. However if you are applying for a test position you can be certain that this is NOT the answer the interviewer is asking for. The question is that there is a scenario driving this:

1. Verify that the inputs include the numbers betwen 1 to 100
2. Verify that the inputs only has 100 values
3. Verify that there are no duplicates
4. Identify how this scenario is going to run? Heavy loaded system? How is the performance, how does it do under stress?
5. See how the code reacts when the set of numbers is not as expected
6. See how the code reacts when numbers are sent in that cause integer overflow
7. See how the code reacts when it is passed negative integers
8. See how the code reacts when duplicate numbers are passed in
Etc, etc, etc...

- Splach February 05, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

First need to verify the value 0, between 1-100 val and 101 value
verify the test with negative values and special characters and Blank values.
cover the complete senarios

- Moses Arnold Darla May 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

positive test csaes

I. verify whether enter numbers are between 1 to 100.
II. enter numbers between 1 and 10 , 10 and 20 , 30 and 40 , 40 and 50 , 60 and 70 , 70 and 80 , 80 and 90, 90 and 100 , verify the sum

negative test cases

I. enter alphabets and check whther its hows error
II. enter -ve numbers and verify whether it shows error
III. enter 0 or more than 100 and check whether it displays error or not

- raghu.nagabandi July 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. Positive case : Enter 1 to 100 for acceptance scenario
2. null values
3. Duplicate values
4. Less than 100 values
5. negative values (but from 1 to 100)
6. Negative test cases - Alphabets, special characters, ASCII codes etc
7. Entering integers through ASCII codes
8. No value at all
9. All null values
10. Mix of negative + positive integers (but between 1 to 100)

- Asheesh August 26, 2012 | 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