Software Engineer C Interview Questions

665,003 software engineer c interview questions shared by candidates

You are a parking lot attendant in a lot that has one open spot, and you want to move the cars from their original positions into a new arrangement. Create a program that will print out instructions on how to move the cars most efficiently.
avatar

Software Engineer In Test

Interviewed at Google

4.4
Jan 15, 2010

You are a parking lot attendant in a lot that has one open spot, and you want to move the cars from their original positions into a new arrangement. Create a program that will print out instructions on how to move the cars most efficiently.

We're playing a game of Russian Roulette. I take 2 consecutive bullets out of the 6 bullet revolver and spin the chamber. I go first and shoot the bullet at my head, which misses. I then pass the gun to you, where you have the option of spinning the chamber, or shooting. Which would you do to maximize your probability of not dieing?
avatar

Software Engineer

Interviewed at Bloomberg

4
Nov 13, 2012

We're playing a game of Russian Roulette. I take 2 consecutive bullets out of the 6 bullet revolver and spin the chamber. I go first and shoot the bullet at my head, which misses. I then pass the gun to you, where you have the option of spinning the chamber, or shooting. Which would you do to maximize your probability of not dieing?

Say you use SVN for source control..you have several revisions of a file...R1, r2, r3..etc..Someone checked in a bug and the revision became bad..need t find the first bad revision..gave a function findBadRevision(int goodRevision, int badRevision) so for e.g the revisions were GGBB and function passes in 0,4 so the first bad revision is 2. There exists a function boolean hasBug(int revision) which will tell us if a certain revision has a bug. can assume good revision < bad revision
avatar

Software Engineer

Interviewed at Meta

3.6
Apr 28, 2012

Say you use SVN for source control..you have several revisions of a file...R1, r2, r3..etc..Someone checked in a bug and the revision became bad..need t find the first bad revision..gave a function findBadRevision(int goodRevision, int badRevision) so for e.g the revisions were GGBB and function passes in 0,4 so the first bad revision is 2. There exists a function boolean hasBug(int revision) which will tell us if a certain revision has a bug. can assume good revision < bad revision

Viewing 411 - 420 interview questions

Glassdoor has 665,003 interview questions and reports from Software engineer c interviews. Prepare for your interview. Get hired. Love your job.