qa engineer interview questions shared by candidates
In a corridor with 100 lockers you pass the first time and open each locker. Then you pass the second time and you close each second locker. Subsequently, you pass the third time a toggle the state of each third locker, then you pass again each fourth, and so on... you repeat 100 times. How many lockers are open at the end.
Answer is - 10
Answer is 1. 100* (1*2*3*4....99)/(2*3*4*5...100). Because you tak one half, then 2 thirds of the remaining open ones, then after that take 3 quarters of those. And so on and so forth
A line of 100 airline passengers is waiting to board a plane. They each hold a ticket to one of the 100 seats on that flight. (For convenience, let's say that the nth passenger in line has a ticket for the seat number n.) Unfortunately, the first person in line is crazy, and will ignore the seat number on their ticket, picking a random seat to occupy. All of the other passengers are quite normal, and will go to their proper seat unless it is already occupied. If it is occupied, they will then find a free seat to sit in, at random. What is the probability that the last (100th) person to board the plane will sit in their proper seat (#100)?
See Interview Questions for Similar Jobs
- Software Engineer
- Project Manager
- Quality Assurance Engineer
- Software QA Engineer
- Financial Software Developer
- Business Analyst
- Summer Analyst