Software Testing Engineer Interview Questions in Bangalore, India | Glassdoor.co.in

# Software Testing Engineer Interview Questions in Bangalore

465

Software testing engineer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Software Development Engineer In Test (SDET) at Microsoft was asked...

24 Mar 2012
 Sorting Algorithms Optimizations from 2 loops to just 1 loop5 AnswersNC#include #include using namespace std; int main() { int list[10] = {5, 4, 3, 6, 7, 1, 2, 9, 8, 10}; for (int i=0; i= 0 && next list[next]) { int temp = list[i]; list[i] = list[next]; list[next] = temp; next--; } else next++; } } for (int i=0; i<10; i++) { cout << list[i] << " "; } return 0; }you still have two loops #include #include using namespace std; int main() { int list[10] = {5, 4, 3, 6, 7, 1, 2, 9, 8, 10}; for (int i=0;j=i; i<10; i++;j++) { I can't remember, but you use two indices within one loop to sort using bubble sort } for (int i=0; i<10; i++) { cout << list[i] << " "; } return 0; }Show more responsesuse quicksort. it has runtime of O(n.logn), or heapsort. they both use one for loop and a heap/stackstatic void Main(string[] args) { int[] arr = new int[] { 8, 9, 6, 7, 4, 5, 2, 3, 1 }; int i = 0; bool swapped = true; while (swapped || i arr[i + 1]) { int temp = arr[i+1]; arr[i + 1] = arr[i]; arr[i] = temp; swapped = true; i=0; } else { i++; swapped = false; } } foreach ( int element in arr) { Console.Write("{0} ",element); } } } --------------------- contact.if.urgent@gmail.com

### Software Development Engineer In Test (SDET) at Microsoft was asked...

24 May 2012
 In a sequence of alphabets (like aaabbddaabbcc) write a program to find the number of the consecutive alphabets in and print the alphabet and number. example :if input is aaabbddaabbcc then output should be 3a, 2b, 2d, 2a, 2b, 2c4 AnswersI misunderstood the question, and wrote the program for printing number of a's or b's etc., present in the sequence when I showed him he asked me to code according to his requirement, the program should produce output without any errors,during this time he was writing something in the laptop. I wrote program correctly. He said ok.void PrintAlphaNum( string str ) { if ( (str == null) || str.Length == 0 ) { return; } char lastChar = str[0]; int count = 0; foreach( char ch in str ) { if ( ch == lastChar ) { count++; } else { Console.Write("{0}{1}, ", count, lastChar ); count = 1; lastChar = ch; } } if ( count > 0 ) { Console.WriteLine("{0}{1}", count, lastChar ); } }#Iinclude #include main() { char str[ ]; printf("Enter the input\n"); scanf("%c",&str); printf("input:%c",str); int len= strlen(str); int alp[26]; if(str!='NULL' && len!=0) { for(int i=0;iShow more responsesSimple Java Code: String str = "aaabbddaabbcc"; for(int i = 0; i < str.length()-1; i++) { int count = 0; for(int j = i; j < str.length(); j++) { if(str.charAt(i) == str.charAt(j)) count++; else { i += count - 1; break; } } System.out.print(Integer.toString(count) + Character.toString(str.charAt(i)) + ", "); }

### Software Engineer II White Box Testing In Java at Adobe was asked...

6 Sep 2014
 How can you sort a text file of 4Gb size in a computer system of 2 Gb ram.1 AnswerThey wanted to Know my approach of the solution but not the full solution. I answered with an example of Divide and Conquer DS concept. Interviewer was happy.

6 Sep 2014

### Software Engineer II White Box Testing In Java at Adobe was asked...

6 Sep 2014
 What is the process of OS booting? For eg, what happens in the background when you switch on your system till you get Username and Password Fields.1 AnswerCould not give 100% correct answer. I was honest to accept that i did not know it.

### Software Engineer II White Box Testing In Java at Adobe was asked...

6 Sep 2014
 Programming questions to find common word, common characters, truncating a string with gaps etc.1 AnswerI suggest you to make yourself good in String related Java questions. Also make sure you write good Algorithm atleast to prove you can solve such problems

### Software Test Engineer at Tangoe was asked...

31 Oct 2015
 All basic Testing questions, STLC,BLC. Then SQL queries, About Projects on Resume1 AnswerAnswered all most of the questions, and felt Interviewer was impressed. But believe me they took interview just for the sake of taking.

### Software Test Engineer at Ericsson-Worldwide was asked...

29 Aug 2011
 what is ping? what protocol is used in ping2 AnswersICMP , to find if a device is on the networkICMP, Use: Reachability of a host and round trip time

### Software Test Engineer at SLK Group was asked...

7 Nov 2014
 What is OSP in oracle EBS?1 AnswerOutSide Processing

### Software Test Engineer at HCL Infosystems was asked...

1 Apr 2015
 why did u left that company1 Answersince there was no projects i left the company
110 of 465 Interview Questions