Software Engineer in Test Interview Questions
- 0of 0 votes
AnswersAn array of zero and non zero integer are their having range 10000 (i.e length of array is 10,000)
- zammer May 16, 2013 in India for SDET
Arrange the array in such a way that zero comes first and after that the non zero integer.| Report Duplicate | Flag | PURGE
Expedia Software Engineer in Test Algorithm - 0of 0 votes
AnswersPlease consider the following tables:
- zealoftoday May 16, 2013 in United States
Code:
Table Name: Person
Person_Id Name
Table Name: DVD
DVD_ID Owner_ID Title
Here is the query:
Write a query that returns the list of DVDs that belong to owners who own “Superman”
Here is my solution:
Code:
SELECT p.name,d.dvd_id
FROM DVD d,Person p
WHERE p.person_id = d.dvd_id
AND Title = 'Superman' ;
I answered above answer. But interviewer was expecting me to do using Subquery. Is that possible?Please let me know if the above query is correct or not.| Report Duplicate | Flag | PURGE
Software Engineer in Test - 0of 0 votes
AnswersHow to write test data for a vendor machine using this coins (50 paise, 1 rupee coin, 2 rupee coin, 5 rupee coin, 10 rupee coin) to get (Tea, Coffee, Ice Tea, Cold Coffee, Milk)
- cutemohan89 May 13, 2013 in India
Concept Is
Tea - 50 paise coin
Coffee - 1 rupee coin
Ice Tea - 2 rupee coin
Cold Coffee - 5 rupee coin
Milk - 10 rupee coin| Report Duplicate | Flag | PURGE
Software Engineer in Test - 0of 0 votes
AnswersIf a function is der mostCommonChar(String str, int num) ,
- zammer May 04, 2013 in India for SDET
1-.First input is Aabra Ka Daabra and second argument is 1 then the function should return first most repeated character in the string .Means in sorted descending .
2-> First input is Aabra Ka Daabra and second argument is 2
then the function should return second most repeated character in the string
like wise 3rd 4rth ....etc| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Algorithm - 0of 0 votes
AnswersA video streaming server is generating the following data. Find the potential customers facing buffering issues.
A person is said to face buffering issues when he hits the play button multiple times on the same video
You are given a huge file (say 1GB) that contains the following data:
CustomerId-TimeStamp-Event-VideoId-Videolength
0040 -01.00pm -Play -Video1 -02:30:00
Write code for this. What data structure will you use
He also said, lets say all the parsing is taken care of and you are given a collection of classes that contain the above data:
- JSDUDE April 30, 2013 in United StatesClass { CustomerId TimeStamp Event VideoId }
| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Data Structures - 0of 0 votes
AnswerDesign an online hotel reservation system.
- JSDUDE April 30, 2013 in United States
(I think this has been posted in Careercup earlier)| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Object Oriented Design - 0of 0 votes
AnswerDesign a furniture store with Tables and chairs. Write a constructor for chair and table
- JSDUDE April 30, 2013 in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Object Oriented Design - 1of 1 vote
AnswersYou are given a UNIX path with dot (current) and two dots (parent). Convert this to an absolute path
- JSDUDE April 30, 2013 in United States
E.g. $/home/abc/.././def/./ghi/../.
becomes $/home/ghi/| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test String Manipulation - 0of 0 votes
AnswersWrite a program to calculate Sum of two singly linked lists.
- shaktiman April 30, 2013 in -
e.g.
1-->2-->3
8->9->10
.
Result list should be 10-->2-->3
You are not allowed to make any change in input lists. Those are read only.| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm - -2of 2 votes
Answers//Q. Given an array of integers,write a function that retrieves unique instances of any duplicates, returning them in a //new array -
- JSDUDE April 15, 2013 in United States
// [2,1,2,4,3,1,5,1]
//= [2,1]
// [1,1,1,1,1,1,1,1,1]
// =[1]
// Write test cases for this function| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Arrays Testing - 0of 0 votes
AnswersIn a shop, product X is available in different quantities q1,q2,q3...... with price tags p1,p2,p3,...
- jvj.pass April 14, 2013 in India
wap to purchase X of quantity Q such that total price is less and also number of baggage is less
*Consider the cost to be optimum than baggage.
(Sorry the trouble guys, I have edited the ques here)| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test - 0of 0 votes
AnswersWap to find kth largest element in a binary search tree
- jvj.pass April 13, 2013 in India| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test - 0of 0 votes
AnswersGiven a binary tree convert it to doubly linked list, with left pointer of binary tree as prev pointer of doubly linked list and right pointer of binary tree as next pointer of doubly linked list.
- jvj.pass April 13, 2013 in India
Example:
Input:
Binary tree with
A as root
B left of A
C right of A
B&C have no children
Output:
B->A->C->null
null<-B<-A<-C| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test - 0of 0 votes
AnswersThere is a SRT file having timestamp and dialogue .
- zammer April 06, 2013 in India for NA
eg . hh:mm:ss , dialogue .
Suppose the movie runs ahead of dialogue . How or what will the approach to make it equivalent with the movie running .
For eg : The movie time is 02: 58:59 and the dialogue is 5 sec delayed.| Report Duplicate | Flag | PURGE
Blue Jeans Software Engineer in Test Java - -1of 1 vote
AnswersThere are 10 balls .Determine the faulty ball in minimum steps
- zammer April 06, 2013 in India for NA| Report Duplicate | Flag | PURGE
Blue Jeans Software Engineer in Test Brain Teasers - -2of 4 votes
Answersfind a pattern in byte array and change that pattern in place (do not use temp array or variable)
for example, find pattern 0,0,3 in an byte array and replace it with 0,0
should be o(n)
my solutions :
- SDguy April 03, 2013 in United StatesByte*remPattern003(byte arr[] , int &size) //size is input and output variable ///outputs size of output array { int k = 0; for(int i=0;i<size;) { if(arr[i] == 0 && arr[i+1] == 0 && arr[i+2] == 3) { arr[k++]=arr[i]; arr[k++]=arr[i+1]; arr[k]=arr[i+3]; i+=3; } else arr[k++]=arr[i++]; } size= k; return arr; }
| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Arrays - 2of 2 votes
AnswersConsider a city (visualize a circle). It has n petrol stations in it. You are given the maximum amount of petrol that can be filled at each of these stations. You are also given the distance between one station to the next one. The aim is to cover the entire city and come back to the start point. Assume that 1 liter of petrol will last for 1km.
- D March 27, 2013 in India
Q: List out all the possible petrol stations from where the journey can be started, so as to cover the city.| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Algorithm - 0of 0 votes
AnswersHow to check if a binary tree is a binary search tree?
- SkyClouds March 26, 2013 in United States| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm - 0of 0 votes
AnswersWrite a program in C to read all the characters from standard input and output the reverse when the user presses enter key.
- Expressions March 19, 2013 in India| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm - 0of 0 votes
AnswersWrite a program in C to do run length encoding of an string in place. Desired space complexity O(1).
- Expressions March 19, 2013 in India| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Algorithm - 4of 6 votes
Answersgiven an int array with no duplicate numbers, write a function to return number of ways to calculate a target number.
- cooldog March 15, 2013 in United States
example: given {2,4,6,8} Target = 12
2 + 4 + 6 = 12,
4 + 8 = 12,
6 + 8 - 2 = 12,
2 - 4 + 6 + 8 = 12,
return 4| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Algorithm Software Engineer in Test - 11of 11 votes
AnswersGiven a string, find whether it has any permutation of another string. For example, given "abcdefg" and "ba", it shuold return true, because "abcdefg" has substring "ab", which is a permutation of "ba".
- sg March 02, 2013 in United States| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test String Manipulation - 0of 0 votes
AnswersAn overseas customer is reporting a crash of a released driver which has undergone formal in-house testing. This has impacted their delivery schedule and is looking to cost them millions of dollars in lost revenue. What steps would you take to alleviate this situation and close it off?
- rw7026 February 26, 2013 in Canada for Automobile| Report Duplicate | Flag | PURGE
QNX Software Engineer in Test Testing - 0of 0 votes
AnswersYou come to office install the latest build of internet explorer and find out that instead of the expected page explorer loaded a blank screen .. before discussing with developer what test you will like to conduct so that he can pin point the problem from your observation
- vik February 25, 2013 in United States for Internet Explorer| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Testing - 2of 2 votes
AnswersThere is an machine which can process any kind of fruit and produce packaged boxes … write test cases for that
- vik February 24, 2013 in United States for Internet Explorer| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test Testing - 2of 2 votes
AnswersYou are given an array of size N containing negative and positive real numbers. Zero may or may not be present in the array. The requirement is to rearrange the array using O(N) time and O(1) space so that all negative numbers come before all positive elements. Develop a program to read a real number array of size N from user, and then arrange it as explained above.
- rohit February 22, 2013 in India
Constraints :
(i) The value of N has to be read from user, and the memory for array has to be allocated dynamically. The real numbers will be also read from user. The menu-driven program should also have an option to populate the array with random data, if the user wants to do so.
(ii) A maximum of 3 passes allowed over the entire array. O(N) time expected.
(iii) O(1) extra space permitted – creating copy of array etc not allowed.
(iv) Program must work properly even if zero is NOT present in array.| Report Duplicate | Flag | PURGE
IBM Software Engineer in Test - 0of 0 votes
AnswersWAP :
- HB February 08, 2013 in United States
public boolean hasUniqueChars(String a);
- String can contain any type of chars
- You cannot use any type of Collections| Report Duplicate | Flag | PURGE
thePlatform Software Engineer in Test