cpp interview qsns

Page 1

What are C++ storage classes? What is encapsulation? What does extern "C" int func(int *, Foo) accomplish? How do you find out if a linked-list has an end? (i.e. the list is not a cycle) How do you access the static member of a class? What is constructor or ctor? What are storage qualifiers in C++ ? What is inheritance? What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages? What is Polymorphism? What is reference ? What is "this" pointer? What is the difference between a pointer and a reference? How can you tell what shell you are running on UNIX system? What is diff between malloc()/free() and new/delete? What are the access privileges in C++? What is the default access level? What is destructor? What is passing by reference? How are prefix and postfix versions of operator++() differentiated? What do you mean by Stack unwinding? What is the difference between const char *myPointer and char *const myPointer? Define precondition and post-condition to a member function. What are the conditions that have to be met for a condition to be an invariant of the class? How can I handle a constructor that fails? What are proxy objects? When do use "const" reference arguments in function? Name some pure object oriented languages. Name the operators that cannot be overloaded. What is a node class? How can I handle a destructor that fails?


What is virtual function? When are temporary variables created by C++ compiler? What is an orthogonal base class? What is pure virtual function? or what is abstract class? What is a container class? What are the types of container classes? What is a protocol class? What is a mixin class? What is a concrete class? What is the handle class? What is an action class? When can you tell that a memory leak will occur? When are copy constructors called? What is Virtual Destructor? What is the diff between "new" and "operator new" ? What is a local class? Why can it be useful? What is a nested class? Why can it be useful? What is default constructor? What is copy constructor? What is difference between template and macro? Can you think of a situation where your program would crash without reaching the breakpoint which you set at the beginning of main()? When are copy constructors called? Can a copy constructor accept an object of the same class as parameter, instead of reference of the object? Can you overload a function based only on whether a parameter is a value or a reference? What is assignment operator? What are all the implicit member functions of the class? Or what are all the functions which compiler implements for us if we don't define one? What is conversion constructor? How do you write a function that can reverse a linked-list? (Cisco System)


What is conversion operator? What are the differences between a C++ struct and C++ class? Successful Interview Tips An Employer looks for intelligence (intellectual and emotional), communication skills, leadership qualities, ethics, competence, energy, imagination etc., from the candidate. Why Do Candidates Fail In An Interview * Poor grooming * Discourteous and ungraceful body language * Poor manners * Poor diction * Vague responses * Unappealing resume * Monetary benefits-centric approach * Lack of punctuality * Poor waiting hall behaviour Some Behavioural "Unfavourable" Aspects * Lack of personal or career goals * Lack of enthusiasm and confidence * Not owning up responsibility for mistakes * Self-justification, aggressiveness * Lack ofemotional maturity * Negative and cynical attitude * Over-reacting to questions * Lacking sense of humour * Complaining about various things and previous employers Preparing for an interview - Look for * Company's main products and services and likely new products and services * Its key markets, its position in market and between major competitors * Its financial position / profit / turnover * Its history, reputation and achievements * Arrange all the papers required in a folder : Resume / CV, call letters, degree certificates, mark lists, NSS, NCC, sports / games certificates, experience certificates, references. The Previous Day * Confirm the venue of the interview, distance, and mode of transport * Locate the venue earlier * Relax, have good sleep, visualise and pray The Interview Day * Reach the venue at least 45 minutes ahead of the interview * Get familiar with the amblience * Dont carry too much baggage * Report to the authority concerned Waiting Hall Behaviour * Maintain Decorum * Mingle with others politely * Avoid smoking, chewing, flirting, gossiping, defamatory comments


* Greet others present * Switch off the mobile * Relax and visualise While Entering The Interview Hall * Enter confidently, not arrogantly * Shut the door gently * Smile and greet the interviewers * Shake hands only if they offer their hand During The Eye Interview * Maintain eye contact * Be attentive, listen carefully, and lean forward * Don't lean on the table, and don't slouch * Don't toss your files across * Hand over your file-right side facing them * Don't laugh or giggle but smile gently * Be polite. use the words "Please" and "thank you" * Don't argue but can orally acknowledge End Of The Interview * When informed, collect your belongings * Thank everyone * For a few steps from your seat, don't show your back * Don't rush.But move out with dignity * Shur the door gently when you leave Follow Up * Send the thanking letter to the company the same day * Specify in the letter the point that was discussed * Thank the Placement Agency, if any * Thank your network source, if any In Case Of Stress Interviews * Don't be upset * Let them not see that you are upset * Accept their point of view * Smile * Don't argue but be specific in responses with justification Job Search Tips * Don't put all your eggs in one basket * Try many methods of job search * Start early for interviews * Learn how others have been successful in their job search * Learn how to think beyond your specialisation areas. * Plunge into action


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.