Software Test Engineer Interview Questions | Glassdoor.co.uk

Software Test Engineer Interview Questions

66

Software test engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Asked question: Using an already implemented method Rand5() that generates a random integer between the ranges 1-5 uniformly. Using this method, implement a a new method that returns a random integer in the range 1-7 uniformly, i.e. Rand7(). Basically this is Rejection Sampling Algorithm. See http://leetcode.com/2010/11/rejection-sampling.html

2 Answers

No need for sort in array question as it will increase running time to O(2log2) not good. Instead... Set largest to first element Set second largest to largest Loop over every element, if current value greater than largest then set second largest to largest and then set largest to current value else if value greater than second largest set second largest to value continue loop return second largest

/* following is based on the link provided in the interview question above */ int Rand7() { int[] arr = new int[21] {1..21}; int idx = int.MaxValue; do { idx = (Rand5() - 1) * 10 + Rand5() -1; if(idx20) }

Write a function that takes a position (x,y) in a go game graph and returns a boolean telling if this position contains a white or black piece and if this piece is trapped or not.

1 Answer

Explain your roles and responsibilities

1 Answer

Manual Testing concepts

1 Answer

The hardest answer they asked me is the next one: If you are writing an automated test for a set-top-box, how would you check that there's video being shown on the screen?

2 Answers

what is different testing strategies?

1 Answer

How would you test a pipe? fizzbuzz white board test. Personal questions Questions about cv

No proper questions from testing because no realtime experienced testing team

110 of 66 Interview Questions