Amazon interview questions from Glassdoor (Copied around Oct 2020)
Coding questions
1) Sum up all elements in a matrix
2) How to find a pair which sums up to a given element in an array
3) Given an array of integers, how would you move the duplicate integers into a different array? What is the efficiency of your algorithm?
4) Reverse a string
5) Quickest way to sort 1,000,000 integers
6) Fibonaacii
7) Palindrome
8) Find the union of two strings?
9) Given an array with numbers 1-5, how would you subtract one number from each index?
10) Given an array with numbers 1-5, how would you subtract one number from every EVEN number in each index?
11) Find the shortest path between 2 points on a 2d matrix.
12) Write a function in any language that will print "AN" if a number is divisible by 8, "ANIM" if divisible by 16 and "ANIMAL" if divisible by 32.
13) Give a list of information for people (age,weight,height),sort by peoples height.
14) Find the largest sum of consecutive integers in an array
input string = aabbbccccaaa, maintain the insertion order and output should be a2b3c4a3
15) Write a program to remove duplicates numbers from the list and display the duplicates ?
16) Write a program where a there are multiple users logging into the system or file and I want to know the login Occurrences of the each user . Note : The file is separated by the commas. ex: User1 , User2, user1 , user3.........
17) Int a, Int b...write test cases for sum
18) From a given list of array (Not sorted) find the second largest value
19) Find the prime numbers from the given list of array (1 -100)
20) (tachometer, pair of integers adding to a sum and another string problem to remove numbers from a mix of numbers and characters)
21) Write script to get palindromes and return 3rd largest palindrome.
22) Suppose all digits of a number are represented by nodes in a linked list, how will you write a program to add lists ?
23) Find second smallest element in an array without sorting
24) Given an array of both positive and negative integers, find the two numbers whose product is the maximum
25) s1="AMAZON" s2="ZONAMA" , how will you check if any combination of characters in s2 will give string s1?
26) Reverse linked list efficient way
27) There is an array array1=[20,10,4,3,8,9,30]. There result array should have the immediate next number of the main array. i.e array2=[30,20,8,4,9,30]
28) Search for the substring in main string and also search whether all the elements of substring are present in main string.
29) Given two arrays and you have to combine them and print the median (internship)
30) write a program which should accept and integer and print output as below (college student)
31) find the point of intersection in a inverted Y singly linked list
32) given a array of numbers, write a program to print count of each number present in the array.
33) How to remove duplicates from an array
34) Write class representation of a deck of cards (52 cards) and that class definition should handle shuffle and deal methods. (Ireland)
35) Write the program to find the
consecutive duplicate letters in each word of the sentence and print the sentence without duplicate letters (fresher)
36)Find the series of numbers in an array which gives the sum value as 3(fresher)
37)Count of characters in string (fresher)
38) 1. Closest Palindrome to the number
2. Find array contains duplicate numbers
3. Print numbers in rhombus shape
39) Anagrams , given two string to know if the another one is the combination of it
40) Circular sorted array, get the largest element
41) aaabbbbbaccc give the count of each strig
42) Find unique element in array which all element duplicate
43) Write a code to detect the first number having duplicate in below mentioned Array.
Array = [4 1 2 5 8 1 3]
44) Write a code to for an input arithmetic equation to detect the braces and return the output in Binary i.e. for each opened braces there would be one closed braces.
2+((3-1)/8 ----- Output = False
2+((3-1)/8) -------- Output = True
44) Script to print a matrix in a circular fasion
45) To print an array of numbers in their given pattern.
46) 1 - reverse a string array 2- check if parenthesis are closed or not in a string.
47) Reversing words in a sentence without library functions (college)
48) Grouping positive numbers, zero, and negative numbers together (college)
49) Find the greatest product using 3 numbers in an array (college)
50) Find a pair such that the product is maximum (college)
51) Anagram (college)
52) Find the first unique integer from a set of arrays (phone)
Quality Assurance Engineer II
1) Reverse a linked list using pointers (C programming language)
2) Reverse a string in double linked list.
3) Palindrome (phone interview)
4) write code to find if the given coordinates are part of the four corners of a rectangle.
5)flip two dimensional array
6)code Prod to calculate the median.?(that the hidden part, they were asking about sorting in the real sense). Due to lack of time, they changed it calculate Avg?
7)Given a Linked List with a second pointer to a random node on the list, make a copy of it.
8)Write an approach \ algorithm to take an input string, and convert it into a palindrome, keeping the original string intact.Optimize the algorithm. Design Test Data. For which kind of string, maximum Optimization is possible.
9)Read a function that took 2 integers in and returned the a to the nth power.
Evaluate the function and tell them if the function would work.
10)Program to check for string pattern a^nb^m where m!=n , m>0,n>0
11)Optimal Program to find greatest number in an integer array without sorting
12)Program to to find the maximum repeated element in an array
13) Selenium program to automate Facebook login, search a friend and send friend request
14) Write a program to multiple to numbers assuming that the multiplication function does not exist.Then they asked me to write rest cases for the same. Then they asked me to write approaches to cover negative numbers. Then they asked me to do the same assuming that absolute function does not exist and so on.
15)1--> Test enumarations for below scenario. "Download app and install"
2-->program for anagram for two strings
3--> Check if array elements are consecutive
4--> write test data for a function which prints common characters of two Strings... ex: night , hot.. output : ht
16) me to provide more optimized solution for merging two demension sandwitched array in sorted order
17)Problem Solving: Find the first occurance of a given number from the series which has the difference between the adjacent elements as 1. For Example {1, 0, -1,-2,-1,0,1,2,3} Note: Do not use Linear Search
18) Find the nth consecutive occurence of a character in a given string. For example for the given input string of "Amazon is a great company as it haas AtoooZzz" and the output should be "o"
19) Consider a string "Hello Good Morning" it should print the sentence in reverse order output should be "Morning Good Hello"
20) Merge two dimesional Array
Consider array1 ={{10, 15}, {30, 50}}
array2 ={{20,40}, {5, 10}}
Merged array should be sandwitched (array 1 should be sandwitched with array 2) also while merging array if value range is less than the previously added value then that value should not be added to the merged array
Output should be {10, 20, 30, 40, 50} --> 15, 5 and 10 should not be added
21) Print middle character of a string. If middle value has even then print 2 characters
Eg: Amazon -->print az
22) Search an element in array without using linear search technique
23) Reverse alternate words in a sentence
24) Reverse a string without affecting special characters.
25) Input : ab50dt60h4q
Output: Sum of integers i.e. 50+60+4= 114
26) Input : an int array [1,0,0,1,1,0,0,1,0,1,0,0,0,1]
you have to come up with a program that will give all possible subsets of the array based on the pattern.
Pattern restrictions were the string array should start with 1 and end with 1. So there will be many sub arrays like from index 0 to 3 and 0 to 4 and index 7 to 9
Behavioural Questions
1) What will you do when you miss a dead line for a release.
2) Whats your weakness you would hesitate to tell it out?
3) Why do you want to join Amazon
4) Lot of questions about what you have done previously and what you might do differently in a given situation. Biggest regret in your professional life and what you did to correct it?
5)Tell me how did u handle a situation while there were disagreements or conflicts in your team?
6)How many hours you work per day? If one of the resources has to go 1 hour early for personal work..what would you do?
7)Behavioral questions such as examples of situations where you had conflicts with the idea of the majority of the team, approach when you find bugs after release etc were raised in each interview.
8)Hiring manager round covers behavioral questions as to why you want to join Amazon, why do you want to leave your previous company, how you handled certain situations followed by a bar easier which covers the previous all rounds.
Test case writing questions
1) Test the amazon website
2) How would you test the "Find" feature in an application such as MS Word?
3) How would you test payment processing.
4) How do you test a microwave
5) Give Test cases to test amazon website Check out page ?
6) Test cases for youtube
7) Test cases for Amazon login screen
8) Write testcases for google autocomplete.
9) Write testcases for google chat.
10) Write testcases and test plan for text 2 speech API ?
11) An Address book in your mobile has its contacts syncd with the Internet.
write test cases for this scenario.
12) Test cases for phone book
13) Test cases for gmail
14) Test cases for A4 sheet
15 ) Asked me to write test scenarios for Google glass.
Second question was to identify test data for youtube app on the phone.
The interviewer was very particular about differentiating the use cases from the test data
16) (Test Manager/Lead) 1.Explain the test scenarios/scripts for video conferencing in a mobile?
2.Provide me the test data where a set of numbers is an input and the second largest number is an output?
3.Give me the test data where city name is an input and the city's temperature is an output? Temperature can be Celsius or Farhanheit.
4.Say an URL/link in your mobile stopped working.it was working fine few mins back but now it stopped working. It works fine in your friends mobile. Tell me the steps you will take to make the URL work in your phone?
17) Write test cases for a web page having "Browse" for files and "Upload".
Write test cases for youtube player and youtube mobile app debug.
18) Test cases for vending machine
19) Test cases for breaking a amazon system
20) Given a desktop application that intakes a pdf file and generates set of files for images, text, charts and link.. how do you test this? TC enumeration (This guy had written test)
21) Given a program that intakes two strings with first one has ?? as some characters.. now system has to change ? to valid character from second string and make as many second strings in first string.. if it could not fill with second string then fill it with A.
Ex:
S1: AMAZ???A??AZON??
S2: AMAZON
O/p should be AMAZONAAAMAZON..
22) Imagine Amazon wanted a file uploader project from you. What would the detailed test plan for this project?
23) Top testing and quality attributes for an ATM System
24) (fresher) Test case enumeration- write the test case for video calling app in mobile
25) test case generation for payment page
26) A desktop application accepts input file as PDF and generates a HTML file as output. Write Test case for this application. Test coverage is more important than the number of test cases.
27) How would you test a chat bot option on web page?
Quality Assurance Engineer II
28) How would you test auto-complete feature of google search engine?
29) Assume accuracy of Google translator is only 40%, How would you improve it?
30 ) How would you test Google Map?
31) write the test case to compare the products on amazon.com site.
32) Amazon.com login page (phone interview)
33) Testing webservices
34) Create test cases for command line calculator, UI version of calculator and lastly web version of calculator (client / server setting). What would I like to automate the test cases that I provided above and how?
35)It was more of discussion test cases for web service that image recognition app that Amazon integrated into mobile phone
36)How to will test kindle version up-gradation for the software update. As we have 100 devices while in reality there are millions of devices out in the market
37)What is test plan?What is test coverage. and basic question related to testing
Automated testing
38) Write functional test case for image, login/signup, password
39)In testing round I was given the task to write rest cases for Amazon check out page and for sign in page.
40)Test enumarations for below scenario. "Download app and install"
41) Write test cases for taxi booking application for Ola or Uber. You are expected to write testcases covering different types of functional and non-functional testing areas
42) Write test cases for Amazon Prime functionality
43)Testcases enumeration and data preperation for Whatsapp messenger
44) You built an application like google drive. State the test cases
45) You have given voice command to alexa about some sort of search on amazon.in. Come up with test case enumeration for this senario
46)Write test data for username and password field on a login page with basic restriction like no special characters in user and it should be upto 10 characters. password can contain anything but should be of length 8-12 inclusive.
47) Give test plan for Amazon pay?
48) Give test plan for Amazon Prime video
49) Test cases for automated voice device built in an elevator
Troubleshooting
1)A webservice takes 10 secods for processing but 120 secs for data Transfer, how will you speed up the process (I mentioned parallel processing but he asked me to go beyond it) maybe faster internet smthing)
2) Troubleshoot a scenario where you are not able to reach wikipedia site.
3) A Printer is connected to your laptop.But when trying to print a file it doesn’t print properly (How will you rectify a problem and What steps you take to rectify them)
4) your mobile contacts are not getting synced with PC.. debug the scenario
5) You are unable to sync you contacts in smartphone with your PC. How would you debug this issue.
6) Assume you are watching Amazon prime on a laptop and all of a sudden it stops working. How would you debug?
7)In debugging round I was asked to debug why I was unable to upload a photo on Facebook page
8)Debugging : we saved a file/document to a particular location in laptop. how to debug if we are not finding the file in laptop.
9) While using skype or google hangout application, you are not able to do a video chat, describe how you debug the problem considering different aspects of functional and non-functional testing
10) You are trying to upload a picture on facebook and it is not loading. List out the possible errors
11) You have a gift card in your amazon account for suppose Rs. 100 but when you are purchasing something and going on payment page the gift card is not appearing and also it is not auto applied. how will you debug this problem?
Automation
2)How to automate an API that retrieves bank, card holder information based on Credit card number is given as input.
General
1) Asked me difference between class & object
2) Abstract classes
3) Hash Table
4) Black Box Testing
5) White Box Testing
6) Tools which I use currently,
7) Design World Wide Web from scratch
8) Diff in white Box & Black Box Testing
9) What happens when user types in Amazon.com home page URL in address bar.
10) Architecture flow in your company?
11) How to create test plan? Explain
12) Difference between functional testing and regression testing
13) With block diagram explain your last automation work done.
14) About current work and be sure you know enough.
15)With block diagram explain your last automation work done.
16) Describe your current role with your current employer.
17) Why do we need automation and what are its benefits
18) Tell me about your recent project and your role in it
QA II
draw object-oriented design for a given animal hierarchy
what project I worked on, how I contributed on the project / team and automation.
What info on bug report
Three things you do to keep ur self-updated?
What will you gonna do if the manager , there is bug and manager is asking for sign off?
What if you and your boss have a different opinion?
Steps to file bug - what info to put
Agile vs watrefall pros and cons
Cover all test areas, even about load testing
“Written will in total 5 questions . 2 related to coding(You need to write a code /pseudo code for a given problem) . 1 was related to Test case enumeration followed by 1 Q on debugging and test data identification .
Deep dive on testing methodology and deep dive on past experience
In test strategy round I was asked to write a test plan for a project followed by questions like what will happen if on the last day you find a sev2 bug . How will you handle that etc
Test data generation :
Test Data Generation
Write the test data for the function: int getSmallestIntegerPosition(int[] A)
This method accepts as input integer array that is already sorted and rotated "n" number of items where n is less than the size of the array
For Example: The test data can be {4,5,6,1} This was derived from {1, 4, 5,6} after sorting and rotating the array for 3 times and output of the function returns the index of integer that has the smallest value
Eg: {4,5,6,1}: the smallest value is 1 and its index is 3
Note: This method searches for the element and derives the position with an order of O(log(n))
Testing -
Testing types, test design techniques, test strategy and test cases for amazon devices, 2 LC Easy Questions.
Application
I applied through a recruiter. The process took 2 days. I interviewed at Amazon (Mumbai (India)) in June 2018.
Interview
The interview process is pretty straight forward. You will have total of 5 rounds.
First round will be a written pen paper based test which consists of usually 2-3 computer programs to write (Any language). Don't worry about the exact solution. the codes on your page should reflect your approaches. if they found your approach write they will shortlist you (P.S. I had two programs, one of them was correct although not optimized but i was shortlisted as the approach I took was promising)
Second round can be anything from Coding round, test data generation-test case enumeration-test plan round.
Coding Round:
In the coding round the interviewer will present you the same codes you have written earlier (depends, in my case it happened) and will ask you to come up with some other efficient solutions. and will give you some extra coding problems to solve. First he will ask you to tell your approach in solving the problem and then he may ask you to implement it on paper. Once you have given the approach further to this you have to give more optimized solution in case the approach you have given was not very efficient. Duration of this round would be approx 45 mins to 1 hour.
Key point to succeed in this round is just don't give up on the problem, put efforts in coming up with different solutions does not matter if they write, do not keep your thought process in mind keep speaking and let the interviewer know how you are thinking about the problem.
Testing round:
This round will broadly consist of 3 portions-
1. Test case enumeration: you will be given a scenario and you have to come up with different possible use cases. Number of use cases will not matter but what will matter here is scope. You have think about testing in a broader sense. Include all aspects of the that scenario. Think about scalability test cases, performance test case, networking if involved, database etc. Also keep your focus on every kind of device you can have this scenario like web mobile, fire tv etc.
2. Test data generation: This should be easy part for you . you have to just come up with all possible data sets for the given condition. Include positive scenarios, negative scenarios, Boundary cases, equivalence partitioning and more if you can think of.
3. Debugging: This is a kind of confusing round if you are not prepared for this. You will be given a problem scenario and you have to debug it. Debug here means you have to come up with approaches needed to solve that problem. Same as previous sections think in a broad sense what could be wrong like it could be issue with database, networking, Scalability, OS, UI, code error, memory leak, etc
4. Bar raiser round: This round will be about everything asked previously. Just you will be grilled more. Don't stress out just keep coming up with ideas in a broader sense.

Comments
Post a Comment