Google Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

Is any portion of the code, set to behave differently in Debug build & different in Ship build?

- B January 14, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This has got to do with compiler optimizations turned on in release builds, which could violate read/write order assumptions.

- kkalyana February 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Memory overrun into unused debug information.

- Thomas Feng February 05, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Something like this?

main()
{
    int *buf = 0;
    assert(buf = malloc(size));
    *buf = 10;
}

- volongoto February 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

My thoughts exactly.

- Bullocks September 06, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

different run time environments probably...external dependencies not considered

- Anonymous March 05, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

One possibility due to concurrency, debug mode runs slower, thus causing different thread interleaving from release mode. Or in a single threaded program, a faster program can lead
to a path that is never taken in debug mode, and this path has a bug in it. Things like that.

- Anonymous April 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

In C/C++ a possibility might be having code such as:

#ifdef _DEBUG
    // code that only runs for debug
#else
    // code that only runs for release
#endif

which causes the compiler to debug and release builds differently.

- Michael January 25, 2015 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More