Monday 17 October 2011

C++ Question and Answers

More on C++
http://www.informit.com/guides/guide.aspx?g=cplusplus

C++ FAQs Online
http://www.parashift.com/c++-faq-lite/
 

Excellent Site Google, Amazon Question and Answers
http://www.careercup.com/

To know about how others got selected thier interview experience
http://www.glassdoor.com


1. What datastructure is used to create dictionary ?

2. What is difference between map and hash map ?

3. Difference beetween list and vectors ?

4. Define Complexity ? what parameters are considered while defining it ?

5. Types of sorting algorithms ? Complexity for Sorting Algorithms ?

6. How will you automate new and delete fucntionality ?

7. Size of virtual fucntion ( a class has only one virtual function ,what will be its size ? )

8. Difference between 32 bit and 64 bit architecture ?

9. How Hash Map is implemented ?

10. How will convert character into integer ?

11. How to handle exception in constructor ?

12. Why there is no virtual constructor ?

13.What is almost complete binary tree ?
     Left node is compulsory and right node is not.

14. Advantages of  B* ( B-Star ) Tree or Binary Tree ?
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CCgQFjAA&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FB*&ei=VVHTTpbjOqiciQK0vIm8Cw&usg=AFQjCNGbtQjb1fQnMwXUSda_rpg7n5HGNw


15. Parameters for overloading functions ?
     - Number of arguments

     - Data type of arguments
     - Const , Volatile for parameters

       below functions will be overloaded 
    void g(float&);
    void g(const float&);
    void g(volatile float&);
 
    Below functions will not be overloaded 
     int f(int);
     int f(const int);
     int f(volatile int); 
 

Note that you can differentiate parameters with const, volatile and restrict qualifiers if you
apply them within a parameter type specification.


16. What synchronization primitives do you know, tell difference between them
17. What is a deadlock and what is a livelock.
18. What is a race condition.
19. What does the term 'lock-free' mean.
20. What is the best way to terminate a thread.
21. Why you shouldn't use TerminateThread-esque functions.

   22. Difference between UDP and TCP.
   23. Difference between asynchronous and synchronous sockets.
   24. What is a packet.
   25. How'd you determine if packet didn't arrive malformed.
   26. How'd you determine where one packet ends and where another one starts.
   27. What is a port.





Tags:

C++, C++ FAQs, how to clear c++ interview, Interview questions on C++, Question and Answers for C++, technical interview quesetions,

No comments:

Post a Comment