Graduate Software Developer Interview Questions | Glassdoor

Graduate Software Developer Interview Questions

8

Graduate software developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

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 Answers

Call 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.

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 Answers

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 Answer

Describe Inheritance and when you might use it?

1 Answer

Someone codes and interface that consists of 3 input text boxes and a start button. When the start button is pressed a triangle will be drawn on the screen. Each side of the triangle will correspond to a length in one of the input boxes. How would you test this program?

We have a quadtree algorithm and we are assuming that the boxes are labeled 0 (top left), 1 (top right), 2 (bottom left), 3 (bottom right) 'n' times. Write a function that when given an array input of n size (ie. [0,0,0,0] or [0,0,0,0,0,0,0,0,0] would be the top left corner) would determine if the corresponding box has at least one side touching at least one of the outermost walls.

18 of 8 Interview Questions