Software Engineer Interview Questions in Herndon, VA | Glassdoor

# Software Engineer Interview Questions in Herndon, VA

Software engineers write programs to design and develop computer software. Interviews are highly technical, so come ready to work through coding problems and math brainteasers. The specific questions you are asked will depend on what type of programming position you are looking for. Try researching a specific software discipline such as web development, application development, or system development.

## Top Interview Questions

Sort: RelevancePopular Date

Apr 12, 2012

### Associate Software Engineer at Symantec was asked...

Dec 14, 2011
 Division method without using divide operator5 Answersint divide(int a,int b){ //should return a/b if (b == 0){ throw new DivisionByZeroException(xxxx);} // or do whatever... if (b == 1){return a;} int i = 1; int temp = b; while (tempi++ should be before temp=b*i, sorry for errorThe other way is to use bitwise operation (>> or >), you are doing division of 2. For example, 01000 represents 8 00100 represents 4 00010 represents 2 00001 represents 1 Hopefully you can understand this.... However, you need to take care of when the denominator is odd- which is very difficult to do. I would recommend my first solution listed above. It is more understandable or less error-prone.Show More ResponsesUse >> to shift both until divisor is 1, the final dividend value is the answerSomeone from Symantec gave me information about what to expect in the job interview at Rooftop Slushie. https://wwww.rooftopslushie.com

### Software Engineer at REI Systems was asked...

Mar 16, 2010
 I have 9 coins, out of which 8 coins are identical in weight and one is lighter in weight. Is it possible to find the light weight coin with only two weighings, using pan balance?2 AnswersYes, in 2 weighings.Yes. Put 3 on one side, 3 on other and set aside 3. If the pan tips, the lighter group rises up, if equal, the lighter group is on table. Once you find the lighter group of three, use the same tactic, one coin on table, one in each pan. If it tips, you found the lighter one, otherwise it is on table. Same question is asked with balls and with groups of 8.

### Software Development Engineer at Amazon was asked...

Nov 14, 2012
 What is the range of numbers that can be stored using a single byte?2 AnswersSigned: From ?128 to 127. Unsigned: From 0 to 255.I think the range can be anything you want it to be, just have to agree on the storage format. Imagine a situation where you have to store only the even positive numbers, that means the range can be 0..512. If you know that the lowest number can be 100, then the range can be 100..612. Using more elaborate formats you can encode any range in a byte (with low precision, possibly).

### Software Engineer, Amazon EC2 at Amazon was asked...

Nov 7, 2014
 Given a set of billion or more stars, explain how you will find the closest k stars.1 AnswerUse a binary heap, but I wasn't asked to write the code to do it.

### Senior Software Engineer at Lockheed Martin was asked...

Feb 14, 2012
 Unexpected -have you ever written a device driver?1 AnswerDid you read my resume?

### Senior Software Engineer at Fannie Mae was asked...

Sep 10, 2014
 Nothing really, very straight forward. They asked me about specific software packages and if I had knowledge of them and if not was I interested in learning about them.1 AnswerYou are expected to be able to work independently and produce results. You need to be skilled in not only the technologies employed but in team work and communication with others. This is an MBO centered organization. If you don't meet your MBOs it can be a difficult year until your next review.

### Software Developer Engineer II at Amazon was asked...

Apr 12, 2012
 What is the best way to find files containing a US phone number in a collection of more than 10000 html files.1 Answergrep

Mar 14, 2010