Graduate Developer Interview Questions | Glassdoor

# Graduate Developer Interview Questions

71

Graduate developer 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

### Graduate Development Program at HSBC Holdings was asked...

Jul 20, 2010
 How old are you?2 Answers21It's illegal to outright ask "how old are you"

### Retail Banking and Wealth Management Graduate Development Program at HSBC Holdings was asked...

Feb 3, 2012
 Tell me a situation in the past you have to influence others on decision makings.1 AnswerJust try to prepare few examples that comes in handy when asked situation questions like this.

### Retail Banking and Wealth Management Graduate Development Program at HSBC Holdings was asked...

Feb 3, 2012
 Why do you want to work for HSBC?1 AnswerTry to come up with personal reason other than the typical appraisal on how good the company is.

### Graduate Development Program at Hewlett-Packard was asked...

Apr 22, 2014
 The recruiters tried to ask questions as if it was Google, e.g. why are potholes round?1 AnswerIt didn't matter what the answers were. Many of the questions they are just forced to ask. Use manners and just have a good conversation - it's all they wanted.

### Claims Graduate Development Program at Zurich North America was asked...

Aug 4, 2014
 What direction do you think healthcare is heading? Insurance industry, in general?1 AnswerUnderstand what you are getting into before applying to any insurance-related position. If you are not sure, ask questions during the interview.

### Graduate Development Program at HSBC Holdings was asked...

Jul 20, 2010
 Do you have any job experience?1 AnswerNo

### 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); } }

### Assistant Or Associate Director of Graduate Career Development Center at UC Riverside was asked...

Sep 19, 2013
 How do I plan on communicating with students who speak little/broken English?1 AnswerIf you're going to post/advertise a position, why waste everyone's time. I wish the best for UCR but understand why they have some of the worst rankings in the nation. Developing a solid plan is a suggested start.
110 of 71 Interview Questions

More