Amazon Interview Question for Quality Assurance Engineers


Country: India




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

According to my research and knowledge,it depends if the numerical data entered by the user will be used for any mathematical calculaitons or not.If it is not going to be used for any calculation.For eg in case of zip postal code 0100. You are not going to perform any operation on these numbers so you should save it as text.
Beacuse storing it as interger would make it '100' but actually it is '0100'.So text is preferable in that case.

Correct me if i'm wrong

- kajal singla September 19, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

This is a question of semantics. You are trying to decide the appropriate datatype for storage which can be a tricky question. The best rule of thumb is to store your data as integers if you will need to use the data as an integer.

In other words, since you will never be using a postal code as a number it does not make sense to store it as one. It doesn't matter what the data looks like, it matters what it is. Is a postal code a number? No, it's a string of characters that just happens to be made up of wholly numeric characters. Therefore a postal code is best stored as a string.

- singla.kaajal September 19, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

It will be a high security issue. Since the javascript validations can be overriden and then the hacker can potentially insert whatever text he want.

- Nikhil September 15, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

get ASCII value for each input and see it falls under 48 to 57. otherwise it is not a numerical value.

- ganapathi. October 14, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Yes it is an high issue.If user can enter any type of value then wats d use of validation.Everything should work as per database.

- krishna deshpande May 04, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

It might be a data integrity issue, based on reusability of that field in application. If it is required to be reused in number format, it is an issue, otherwise no. The impact is dependent on the business requirement of the application under test, and is directly proportional to the priority of the issue.

- SATISH NATH SIDDHA August 02, 2016 | 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