Tuesday, June 17, 2008

 

C++ interview questions TechInterviews Satyam

C++ interview questions TechInterviews Satyam

C++ interview questions

This set of C++ interview questions was sent to TechInterviews from Australia:

1. What is the difference between an ARRAY and a LIST?
2. What is faster : access the element in an ARRAY or in a LIST?
3. Define a constructor - what it is and how it might be called (2 methods).
4. Describe PRIVATE, PROTECTED and PUBLIC – the differences and give examples.
5. What is a COPY CONSTRUCTOR and when is it called (this is a frequent question !)?
6. Explain term POLIMORPHISM and give an example using eg. SHAPE object: If I have a base class SHAPE, how would I define DRAW methods for two objects CIRCLE and SQUARE.
7. What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
8. What are 2 ways of exporting a function from a DLL?
9. You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. new() and malloc()
10. What is a callback function. Explain in C and C++ and WIN API environment.
11. (From WINDOWS API area): what is LPARAM and WPARAM?

Labels:


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]