I applied through one of the job portals and received call in 3 days. Interviews got scheduled after couple of days:
First round: Coding and Test cases related
def printNearestPrime(x):
i=1
while(True):
if isPrime(x+i):
return x+i
elif isPrime(x-i):
return x-i
else:
x+=1
def isPrime(n):
isPrime = True
for i in range(2,(n//2)+1):
if n%i==0:
isPrime = False
break
return isPrime 1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1Answer: Looks easy. I leave it to you guys to solve.
Second Round: Testing round
How would to approach or design a feature to tap on a word and list out all anagrams of the word from a Kindle book?
Third round: Testing round
How would you test a vending machine which accepts cash and item id and then dispenses the corresponding food item from slot.
You had to list out all categories of testing like functional, performance, security etc and explain in detail.
Fourth Round: Behavioural Round
Few questions about career, what projects I did, what challenges I faced, most daring task I undertook and how I completed it, most complex project I dealt with etc.
Hope it is helpful to the QA community out there.