Debugging Interview Questions
- 0of 0 votes
AnswersWhat are the steps in a core generation after a panic is hit ? What all does a core contain, basically what all data, segments you can access.
- neshg May 02, 2012 in India| Report Duplicate | Flag | PURGE
Debugging - 0of 0 votes
Answerstest 1:
- capricornkmu January 14, 2012 in United States
printf("test %s\n", NULL);
printf("test %s\n", NULL);
prints:
test (null)
test (null)
test 2:
printf("%s\n", NULL);
printf("%s\n", NULL);
prints
Segmentation fault (core dumped)
what is the difference in the above tests ? Why is segmentation fault not thrown in test 1 above ?| Report Duplicate | Flag | PURGE
Arista Networks Software Engineer / Developer Debugging - 0of 0 votes
Answersdifference between release build and debug build. Did you hear about memory leaks? how do they occur?
- avatarz August 09, 2011| Report Duplicate | Flag | PURGE
Software Engineer / Developer Debugging - 1of 1 vote
AnswersHow would you debug kernel code.
- NVIDIA reject March 15, 2011| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Debugging Linux Kernel - 0of 0 votes
AnswersWhat is a stack? Modified a program with indefinite loop
- Sana January 18, 2011| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Debugging - 0of 0 votes
AnswersWhat happens when you get a segmentation fault? how do you get it and how is it implemented?
- Ultra Anonymous November 23, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Debugging - 0of 0 votes
Answerswhat is the output of
- narendra.gov October 31, 2010
for(;0;)
printf("\n guess");
and why?| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Brain Teasers C Coding Debugging Algorithm - 0of 0 votes
AnswersDifferent ways to do debugging.
- surath August 23, 2010| Report Duplicate | Flag | PURGE
Ebay Software Engineer / Developer Debugging - 0of 0 votes
AnswersHow to write on a specific location / address on a device driver or register ?
- sumeet4linux April 16, 2010| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer Debugging - 0of 0 votes
AnswersMain focus for the interview was memory efficient code and how can we optimize ..
- Sourabh Kapoor April 08, 2010
Its better to work on concepts on heap and stack.| Report Duplicate | Flag | PURGE
Research In Motion Software Engineer / Developer Debugging - 0of 0 votes
Answershow do you come to know what method in java is slow / has bad performance. how will you use the profiling tools for it?
- Anonymous December 15, 2009| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer Debugging - 0of 0 votes
AnswersIf you have a very large code base ,how do you
- desi grad August 24, 2009
detect memory leaks in it with minimum changes
made to the actual code| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer Debugging - 0of 0 votes
AnswersWhat happens when the following piece of code is executed?
- CUNOMAD August 09, 2009
Char *ptr;
While(1) ptr = malloc(1024*1024);| Report Duplicate | Flag | PURGE
NVIDIA Software Engineer / Developer C Debugging Operating System - 0of 0 votes
AnswersTest a function that sorts a linked list. You have two pointers head which is the original unsorted list and head1 which is said to be the sorted linked list. Return true if head1 did the sorting correctly and return false if not.
bool testlinkedlistsort(Node *head,Node *head1)
I got the solution correct but messed it up while writing it over the white board :|
- prolificcoder April 27, 2009| Report Duplicate | Flag | PURGE
Microsoft Software Engineer in Test C++ Coding Data Structures Debugging Testing Linked Lists - 0of 0 votes
AnswersYou have a piece of code that randomly crashes. How will correct the error
- Shantanu January 26, 2009| Report Duplicate | Flag | PURGE
Electronic Arts Software Engineer / Developer Debugging - -1of 1 vote
AnswersA program has a bug. How would you debug it?
- IITR November 30, 2008| Report Duplicate | Flag | PURGE
Microsoft Software Engineer / Developer Debugging