Software Developers Interview Questions

96,291 software developers interview questions shared by candidates

Describe pass by reference. You have a program with a method changeMe() that takes a string. In the main method, a string is set to "Hello" and it is passed to changeMe(). The changeMe() method sets the string to "I'm changed". In the main method, after call to changeMe(), there is a print statement for the string. What is printed?
avatar

Software Developer

Interviewed at eBay

3.9
Feb 4, 2011

Describe pass by reference. You have a program with a method changeMe() that takes a string. In the main method, a string is set to "Hello" and it is passed to changeMe(). The changeMe() method sets the string to "I'm changed". In the main method, after call to changeMe(), there is a print statement for the string. What is printed?

They asked me puzzles which i think is the most unexpected and toughest part for me.(But somehow i managed to answer the puzzles) THE PUZZLE IS->> Over at your local high school, the main hallway has a bank of 100 lockers. All of these lockers, labeled 1 through 100, start with their doors closed. The resident class clown decides to open every locker door. He then returns to the front of the row and toggles (opens/closes) every 2nd locker door (2,4,6,8...) in the hallway. That is, he goes to every 2nd locker, if it's open, he closes it, if it's closed, he opens it. The class clown repeats this for every 3rd locker (3,6,9...), then every 4th locker (4,8,12...), then every 5th (5,10,15...), etc. until he finally repeats for every 100th locker. After the class clown is done, which locker numbers will end up closed, which will end up open?
avatar

Software Developer

Interviewed at Lam Research

4.1
Jul 19, 2013

They asked me puzzles which i think is the most unexpected and toughest part for me.(But somehow i managed to answer the puzzles) THE PUZZLE IS->> Over at your local high school, the main hallway has a bank of 100 lockers. All of these lockers, labeled 1 through 100, start with their doors closed. The resident class clown decides to open every locker door. He then returns to the front of the row and toggles (opens/closes) every 2nd locker door (2,4,6,8...) in the hallway. That is, he goes to every 2nd locker, if it's open, he closes it, if it's closed, he opens it. The class clown repeats this for every 3rd locker (3,6,9...), then every 4th locker (4,8,12...), then every 5th (5,10,15...), etc. until he finally repeats for every 100th locker. After the class clown is done, which locker numbers will end up closed, which will end up open?

A man was fixing his house and went to the hardware store. He pointed something out and asked how much one would cost. The clerk told him it would cost a dollar. The man asked for 300 of them. The clerk said "That will be $3". What did the man buy?
avatar

Software Developer Intern

Interviewed at Epic

3.3
Feb 16, 2014

A man was fixing his house and went to the hardware store. He pointed something out and asked how much one would cost. The clerk told him it would cost a dollar. The man asked for 300 of them. The clerk said "That will be $3". What did the man buy?

Phone interview asked a technical question along something like this: given a patient and his profile storing a set of his on-going symptoms, describe how you would go through the patient database to find other patients who probably share the same sickness/diagnosis.
avatar

Software Developer

Interviewed at Epic

3.3
Jul 31, 2014

Phone interview asked a technical question along something like this: given a patient and his profile storing a set of his on-going symptoms, describe how you would go through the patient database to find other patients who probably share the same sickness/diagnosis.

Viewing 1191 - 1200 interview questions

Glassdoor has 96,291 interview questions and reports from Software developers interviews. Prepare for your interview. Get hired. Love your job.