Graduate Engineering Interview Questions | Glassdoor

202

Graduate engineering interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### New Graduate - Software Development Engineer In Test at Microsoft was asked...

Nov 26, 2012
 You are in a room by yourself and someone walks into the room, asks you to find the temperature, and leaves. How would you find the temperature in the room without leaving the room?3 AnswersCall a friend to bring a thermometer over.Cut a 5cm*5cm*5cm ice cube from the refrigerator, and test how long it take for it to melt completely.Find two equal size ice cubes, for the first one, wait till it melts completely(0 ℃) , heat it till it boils, record the time t1. For the second one, wait long enough till the water has the same temperature with the room, than heat it till it boils, record the time t2. The room temperature is 100*t2/t1.

### New Graduate - Software Development Engineer In Test at Microsoft was asked...

Nov 26, 2012
 Write a function (in your preferred language C, C++, or Java) that will take the given string and return the reverse. (ie. input:"abc def ghi" output:"ihg fed cba") Optimize the above code (if possible). Now knowing that the original function you wrote in pt1 is being used by other programs and cannot be modified write another function that when called will utilize the function from pt1 to only reverse the words in the sentence. (ie. input:"abc def ghi" output:"ghi def abc") Test your code.2 Answerspublic class TestRun2 { public static void main(String[] args) { String inputString = "abc def ghi"; System.out.println(reverseString(inputString)); // now reverse the words System.out.println(reverseWords(inputString)); } public static String reverseString(String input) { char[] inputCharArray = input.toCharArray(); char[] returnCharArray = new char[inputCharArray.length]; for(int i=0; i

Jun 19, 2011
 All of the interview questions were pretty standard, but I had some questions after my presentation that were technical (in regards to my topic) that made me a little flustered.2 AnswersI gave the best answer I could, and it was a little off, but right enough to pass.Hi, What kind of technical questions did they ask you? Thanks.

Feb 7, 2015
 Basic operation on Boost Converter1 AnswerSketched and explained on and off modes and CCM DCM etc..

### New Graduate - Software Development Engineer In Test at Microsoft was asked...

Nov 26, 2012
 Write a function that when given a string will return the position of the starting point of the largest reoccurring character. (ie. given:"AAABBCCCCD" would return 5 (starting point of C)) Test your code.1 Answerimport java.util.ArrayList; public class TestRun2 { public static void main(String[] args) { /* * Write a function that when given a string will return the position of * the starting point of the largest reoccurring character. (ie. * given:"AAABBCCCCD" would return 5 (starting point of C)) */ String input = "AAABBCCCCD"; System.out.print(largestReoccuringCharacter(input)); } public static int largestReoccuringCharacter(String input) { // 1. Count all the characters, find the character that reoccurs the // most // 2. Find the position of the first most reoccuring character if(input == null || input.isEmpty()) { return -1; } ArrayList charArrayList = new ArrayList(); ArrayList charIndexList = new ArrayList(); // Add all elements in input to ArrayList, and also a HashSet for (char c : input.toCharArray()) { Character inChar = (Character) c; // convert to object charArrayList.add(inChar); if (!charIndexList.contains(inChar)) { charIndexList.add(inChar); } } // For each char in the index, count occurences in arraylist. Find most // occuring int highestNumberOfOccurences = -1; Character highestChar = null; for (Character c : charIndexList) { int count = 0; while (charArrayList.contains(c)) { charArrayList.remove(c); count++; } if (count > highestNumberOfOccurences) { highestNumberOfOccurences = count; highestChar = c; } } // found character with highest count. Return index position. return input.indexOf(highestChar.toString()); } } JUnit Test: import static org.junit.Assert.*; import org.junit.Test; public class TestRun2Test { @Test public void testLargestReoccuringCharacter() { String input1 = "AAABBCCCCD"; String input2 = "AAABBCCCCDDDDD"; String input3 = "AAABBCCCCDDDD"; String input4 = "AAABBCCCC AADDDD"; String input5 = " "; String input6 = ""; String input7 = null; assertEquals(TestRun2.largestReoccuringCharacter(input1), 5); assertEquals(TestRun2.largestReoccuringCharacter(input2), 9); assertEquals(TestRun2.largestReoccuringCharacter(input3), 5); assertEquals(TestRun2.largestReoccuringCharacter(input4), 0); assertEquals(TestRun2.largestReoccuringCharacter(input5), 0); assertEquals(TestRun2.largestReoccuringCharacter(input6), -1); assertEquals(TestRun2.largestReoccuringCharacter(input7), -1); } }

Nov 5, 2014
 Mayan number system test1 AnswerThe staff admitted that the Mayan portion was not important.

Feb 27, 2012
 Have you ever encountered a technical problem during your research work.1 AnswerYes. All of my research problems were technically challenging. Followed by details of my research.

Dec 26, 2012
 Please describe the most technically interesting building in your city.1 AnswerYou must be extremely explicit in your answer. Despite giving an answer I thought was sufficiently thorough, I was told I did not give enough detail.