Click to See Complete Forum and Search --> : C/C++ code review question asking during interview.


darren_uk_pbr
June 6th, 2011, 10:34 AM
Hello Guys,
Hope you are well. I am a C/C++ cross platform developer, working on Windows/Linux and Mac OSX for last three years. As I am not happy with my current job so I am looking to switch to new Job(reason being for better salary and because there is very little learning in my current job).

I have already given couple of final stage interviews where I have been asked some C/C++ code review questions related to multi threading,string manipulations, pointers etc.

I did well on those tests(probably answered 70% correctly) but not well enough to be offered job.

I was wondering if anyone can point me towards a book/discussion forums that addresses these two interview preparation stages,

* C/C++ code review test
* A design problem given at interview which I have to suggest solution to( this could be collection of common design questions asked during interview or list build up based on people's experience during interviews).

I know there is no hard and fast rule or book which you can read and pass the interview. The best way is to experience more and more programming/development/design implementation but any data/book where people have shared their experience will be helpful.

Regards,

Darren

nuzzle
June 7th, 2011, 12:41 AM
A quick search at Amazon gave these hits,

http://www.amazon.com/Cracking-Coding-Interview-Fourth-Programming/dp/145157827X/ref=pd_sim_b_1

http://www.amazon.com/Interview-Questions-Youll-Likely-Asked/dp/1453709665/ref=sr_1_1?ie=UTF8&s=books&qid=1307425066&sr=1-1

http://www.amazon.com/Internals-Interview-Questions-Youll-Likely/dp/1463519206/ref=sr_1_3?ie=UTF8&s=books&qid=1307425066&sr=1-3

http://www.amazon.com/Programming-Pearls-2nd-Jon-Bentley/dp/0201657880/ref=pd_sim_b_2

http://www.amazon.com/Programming-Interviews-Exposed-Secrets-Programmer/dp/047012167X/ref=pd_sim_b_1

http://www.amazon.com/Google-Resume-Prepare-Microsoft-Company/dp/0470927623/ref=pd_sim_b_3

http://www.amazon.com/Cracking-C-Java-Interview/dp/0070680256/ref=pd_sim_b_5

darren_uk_pbr
June 7th, 2011, 03:48 AM
Hi nuzzle,
Thanks indeed for your reply, but most of these books are for comprehensive interview preparation. They dont target questions about piece of code (in C/C++) given at interview and asked to find problems and suggest solutions to it.

Also they dont target common design questions asked during interview.

But thanks again.

MrViggy
June 7th, 2011, 09:43 AM
Okay, what "piece of code (in C/C++) given at interview" is given at every interview? Seriously, there are literally millions of pieces of code that could be presented to an interviewee. My suggestion would be to concentrate on pieces of code that the company your interviewing for (more specifically, the company and position your interviewing for).

Viggy

darren_uk_pbr
June 7th, 2011, 10:38 AM
Yes that would be Codes related to multithreading, STL , C pointers, C++ string manipulation , OOP etc so I am looking for sample practice codes so that I can test my skills?

Also what about the design?

nuzzle
June 7th, 2011, 04:11 PM
Thanks indeed for your reply, but most of these books are for comprehensive interview preparation. They dont target questions about piece of code (in C/C++) given at interview and asked to find problems and suggest solutions to it.

Also they dont target common design questions asked during interview.


Interview preparation should be about bringing to the surface what you already know. No last minute cramming of superficial knowledge will land you a job. Lack of depth will be mercilessly exposed during the interview. No amount of preparation can overcome a lack of true knowledge and real insight.

But why not work through a couple of the books I identified and make sure you really understand what they're saying. To me they look quite versatile coming to the subject from different angles. If you do you should have no problems discussing any piece of a code or design situation presented to you during the interview.

Good luck! :)

blaurent
June 30th, 2011, 09:36 AM
Hi,

I'd have to agree with nuzzle actually. You cannot really prepare for such interviews at the last minute. What I would recommend is to cram out your programming literature or coursework and maybe even find some examination question sheets. Those would probably be best to refresh old knowledge.