Software qa analyst Interview Questions

4K

Software Qa Analyst interview questions shared by candidates

Top Interview Questions

Sort: Relevance|Popular|Date
Apple
Software QA Engineer was asked...October 6, 2010

There are three boxes, one contains only apples, one contains only oranges, and one contains both apples and oranges. The boxes have been incorrectly labeled such that no label identifies the actual contents of the box it labels. Opening just one box, and without looking in the box, you take out one piece of fruit. By looking at the fruit, how can you immediately label all of the boxes correctly?

46 Answers

Swaz answer is almost correct however it does not work in all scenarios. lets assume: box 1 is labelled Oranges (O) box 2 is labelled Apples (A) box 3 is labelled Apples and Oranges (A+O) and that ALL THREE BOXES ARE LABELLED INCORRECTLY" Pick a fruit from box 1, 1) if you pick an Orange: - box 1's real label can only be O or A+O - box 1's current label is O - since ALL LABELS ARE INCORRECT then box 1's real label can not be O - box 1's new label should then be A+O by elimination - since ALL LABELS ARE INCORRECT - box 2's label is changed to O - box 3's label is changed to A - SOLVED 2) if you pick an Apple: - box 1's real label can only be A or A+O - box 1's current label is O - since ALL LABELS ARE INCORRECT then box 1's real label can not be O - this still leaves us with the choice between label A and label A+O - which would both be correct - FAILURE Solution: The trick is to actually pick a fruit from the A+O labeled box Pick a fruit from box 3: 1) if you pick an Orange: - box 3's real label can only be O or A - box 3's current label is A+O - since ALL LABELS ARE INCORRECT then box 3's real label can not be A+O - box 3's new label should then be O by elimination - since ALL LABELS ARE INCORRECT - box 1's label is changed to A - box 2's label is changed to A+O - SOLVED 2) if you pick an Apple: - box 3's real label can only be O or A - box 3's current label is A+O - since ALL LABELS ARE INCORRECT then box 3's real label can not be A+O - box 3's new label should then be A by elimination (not O) - since ALL LABELS ARE INCORRECT - box 1's label is changed to A+O - box 2's label is changed to O - SOLVED Less

All the three boxes are names incorrectly. SO the bax lebeled Apples+Oranges contains only Oranges or Only Apples. Pick one fruit from it. If it is Orange then lebel the box as Orange. So the box lebeled Oranges contains Apples and the remaining contains both. Less

It's easier to draw it out. There are only 2 possible combinations when all labels are tagged incorrectly. All you need to do is pick one fruit from the one marked "Apples + Oranges". If it's Apple, then change "Apple + Orange" to "Apple" The "Apple" one change to "Orange" The "Orange one change to "Apple + Orange" If it's Orange, then change "Apple + Orange" to "Orange" The "Apple" one change to "Apple + Orange" The "Orange" one change to ""Apple" Less

Show More Responses
Epic

You are taking a test and one of the questions has been smudged so it is not legible, based on the answers alone, what has to be the correct answer: A. all of the below B. none of the below C. all of the above D. one of the above E. none of the above F. none of the above

10 Answers

Maybe I'm having a bad day, but I don't get why F. is the answer.

I believe it's E, not F. If A is true, B has to be true - contradiction. If B is true, D is also true - contradiction. If C is true, A and B have to be true, but they are not. D can't be true because we already ruled out all of those above D. (skip E) F can't be true because E would also be true, which contradicts F. (back to E) E may be true because we did rule out all of the above. And if E is true then F is false, which is also consistent. Less

This is incorrect. E only states that the letters above are incorrect, but does not disprove F. Thus, E also includes F as a true statement. However, F disproves the truth of E. Therefore the only answer does that is not contradicted by anything else is F. Less

Show More Responses
eBay

how to find the closest 2 number in an array of unique positive number

5 Answers

One solution is to sort the array, then iterate through all neighboring pairs to find the pair with smallest difference. This is O(NlogN) solution. If the integers are bounded, you may be able to sort in O(N) time for an O(N) solution. Less

public static int[] find2Closest(int[] myArray) { assert(myArray.length >= 2): "myArray needs to be larger than 2"; Arrays.sort(myArray); //quickSort int indexMin1 = 0; int indexMin2 = 1; int min = myArray[indexMin1] - myArray[indexMin2]; for(int k = 0; k < myArray.length-1; k++) { int difference = Math.abs(myArray[k] - myArray[k+1]); if(difference < min) { min = difference; indexMin1 = k; indexMin2 = k+1; } } int[] values = new int[2]; values[0] = myArray[indexMin1]; values[1] = myArray[indexMin2]; return values; } Less

public class ClosestTwoNumber { public int[] findClosest2Number(int[] arr){ if(arr == null || arr.length diff) { min = diff; num1 = arr[i - 1]; num2 = arr[i]; } } if (num1 == -1 || num2 == -1) { throw new IllegalArgumentException(); } int[] result = new int[2]; result[0] = num1; result[1] = num2; return result; } Less

Show More Responses
eBay

You have five bottles with pills. One bottle has 9 gram pills, the others have 10 gram pills. You have a scale that can only be used once. How can you find out which bottle contains the 9 gram pills?

5 Answers

Number the bottles 1-5. Collect a number of pills from each bottle corresponding to their bottle number. So, 1 pill from bottle 1, 2 from bottle 2, etc. If they all had 10 gram pills they should weigh 150 grams. The difference will be the number of the bottle the 9 gram pill came from. Example, bottle 3 has the 9 gram pills. Total weight read will be 147 grams. The difference of 3 is the bottle it came from. Less

Read the label on the bottle.

What top poster said except you can label the bottles from 0 to 4 and save yourself a little work Less

Show More Responses
Apple

how to test a toaster?

5 Answers

I would find a tester and I'd tell him/her to test the toaster by plugging it in. If the toaster doesn't toast the tester, it works; if it toasts the tester, it's broken. Less

He means "if you don't get electrocuted then the toaster works. If you die of electrocution then the toaster is broken" lol Less

Contined...prior to lowering the bread into the toaster select the lowest heat setting. Once the bread is lowered set a timer to measure length of time before toast cycle completes and toasted bread pops up. Retest on all other heat settings and time each of these. Less

Show More Responses
Apple

read in a string and output it backwards

5 Answers

public void (String input) { if (input == null || input.length == 0) return; for (int i = input.length-1; i >= 0; i--) { System.out.print(input.charAt(i)); } System.out.println(); } Less

public static void main(String [] args) { String a = "qwerty", rev = ""; //Scanner sc = new Scanner(System.in); //System.out.println("Enter the string : "); //String a = sc.nextLine(); for(int i = a.length()-1; i >= 0; i --) { rev = rev + a.charAt(i); } System.out.println(rev); } Less

myString[::-1]

Show More Responses
Tata Consultancy Services

test life cycle in assurance

4 Answers

explained all phases of test lifecycle

Software Testing Life Cycle 1.Requirment analysis 2.Test planning 3.Test Designing/Test case development 4.Environment setup 5.Test Execution 7.Test cycle closure/Test reporting Less

Software Testing Life Cycle 1.Requirment analysis 2.Test planning 3.Test Designing/Test case development 4.Environment setup 5.Test Execution 7.Test cycle closure/Test reporting Less

Show More Responses
Apple

Why do you want to work for Apple

3 Answers

I like it.Hahaha

because i cant get into google.

Apple is quite known company, a lot of things I read or heard about it, but never experienced by myself. To work for Apple is a big honor and opportunity to develop my self. Also to exercise myself, what can I do to reach goals and just enjoy to work Less

Transaction Network Services

Q9: What shell command renames filename1 to filename2?

3 Answers

mv

mv filename1 filename2

A9: cp filename1 filename2.

SAP

"Given this 'web page' of an interactive calculator where you can insert values and the results be printed to the screen, what methods would you use to 'break' the code?"

3 Answers

Using different browsers, screen resolutions, etc.

That's a good answer, I probably wouldn't have thought of that though. I tried programming a simple calculator in Java once and one of the problems I had was that I had made it work, but then didn't realize I forgot to handle exceptions where a string is entered (assuming the it's a clickable text box that will take num-pad entries). So my answer would have probably been to try to enter a String, rather than an integer. But I'm guessing the question probably assumes that it's not that buggy of a calculator...? Less

Divide by zero i believe is an answer for all calculator questions dealing with breaking code. Less

Viewing 1 - 10 of 3,656 Interview Questions

See Interview Questions for Similar Jobs