student Interview Question for Students


Country: United States
Interview Type: Written Test




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

What are beakpoints and the so called Framework used for?
IMO this is one word answer. Use Break point to debug the code flow and Fix it.

- hprem991 May 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

This is more of an opinion base question.

When I program in any language (especially on non-object-oriented languages), I program my code piece by piece and make sure each parts works individually.

So first thing first:

1) Find out where the error(s) are occurring. If you have good coding practice, more of the time you should be dealing with not so many errors.
1a) When you have a function (classes too for other languages), make sure it works for all cases. It is very important.
1b) If any of your function (including your main) is >100 lines, you should ask yourself if you should simplify (break it down further?) it (well for smaller stuff probably go for smaller numbers)

2) fix everyone of your functions (especially the ones used by the features that is having error). (+ if you do it well, you don't have to go double/triple checking them)

3) check your main process.

- Mo Lam May 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

That's what I usually do:
1) double check all the bugs and make sure what are the expect results. (if possible, ask people who wrote the code because they know the most how the system is expected to work)
2) trace code to the exactly point where bug happens to find the "reason" why it happens
3) make a plan of how should I fixed the bug and what kind of influence will happn in the system (think before doing it)
4) carefully fix the bug
5) test if the bug is fixed and also if other features are still ok

- athena May 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

If you have access to debugging tools, you can utilize a combination of static (call graphs, etc) and dynamic analysis to track down likely sources of the problem and then eliminate those one by one by analyzing them in detail until you find the source of the bug(s).

- Anonymous May 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

What you can do, if some one has written the code. U can put print statements at regular intervals, hope this should help. But initially it takes some more time, but easy to find out the bugs.

- prashanthreddy.mtech May 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

It's an open question. There are a lot of unknowns:
- Does it contain several functions each handling a functionality? I.e. is it modular?
- Does it load external libraries - version incompatibilities?
- Is it always failing in the same way? Is it easy to repro?
- Do you have access to documentation/requirements? Do they cover the failing scenario(s)?
- Can execute the various parts in isolation (perhaps writing some code) in order to unit test and isolate the issues?

- EugenDu May 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

There are two ways to debug as per me :

1. Live debugging (using tools like lauterbach, JTAG etc)
2. Simulators etc.

Using simulators, we can step into, step out and look at watch window , we are expecting the value.

Else we can use printf's and look at it.

But before looking at it, we have to surely look into the variables which we have used, the semicolons, if we have missed any pre-processors etc etc.

If you have lauterbach/ JTAG is becomes easy.

- vijay.k86 July 08, 2013 | 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