Saved Bookmarks
This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Differentiate between realloc() and free(). |
| Answer» | |
| 2. |
How does code-bloating occur in C++? |
| Answer» | |
| 3. |
How would you find out if a linked-list is a cycle or not? |
| Answer» | |
| 4. |
Explain Stack unwinding. |
| Answer» | |
| 5. |
What are the different types of STL containers? |
| Answer» | |
| 6. |
Explain STL. |
| Answer» | |
| 7. |
You want to link a C++ program to C functions. How would you do it? |
| Answer» | |
| 8. |
In a function declaration, what does extern mean? |
| Answer» | |
| 9. |
Do you think the following code is fine? If not, what is the problem? |
| Answer» | |
| 10. |
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator. |
| Answer» | |
| 11. |
What are Stacks? Give an example where they are useful. |
| Answer» | |
| 12. |
You run a shell on UNIX system. How would you tell which shell are you running? |
| Answer» | |
| 13. |
What is a pdb file? |
| Answer» | |
| 14. |
How would you differentiate between a pre and post increment operators while overloading? |
| Answer» | |
| 15. |
What is the type of “this” pointer? When does it get created? |
| Answer» | |
| 16. |
When does a class need a virtual destructor? |
| Answer» | |
| 17. |
In what situations do you have to use initialization list rather than assignment in constructors? |
| Answer» | |
| 18. |
Explain dangling pointer. |
| Answer» | |
| 19. |
Explain storage qualifiers in C++. |
| Answer» | |
| 20. |
Name the implicit member functions of a class. |
| Answer» | |
| 21. |
When do you call copy constructors? |
| Answer» | |
| 22. |
Explain Copy Constructor. |
| Answer» | |
| 23. |
Explain public, protected, private in C++? |
| Answer» | |
| 24. |
Differentiate between late binding and early binding. What are the advantages of early binding? |
| Answer» | |
| 25. |
Explain class invariant. |
| Answer» | |
| 26. |
Explain explicit container. |
| Answer» | |
| 27. |
What is namespace? |
| Answer» | |
| 28. |
Explain container class. |
| Answer» | |
| 29. |
Differentiate between class and structure. |
| Answer» | |
| 30. |
What is the use of default constructor? |
| Answer» | |
| 31. |
What are the advantages of using friend classes? |
| Answer» | |
| 32. |
Explain One-Definition Rule (ODR). |
| Answer» | |
| 33. |
Are there any special rules about inlining? |
| Answer» | |
| 34. |
Where are setjmp and longjmp used in C++? |
| Answer» | |
| 35. |
When should a function throw an exception? |
| Answer» | |
| 36. |
How should runtime errors be handled in C++? |
| Answer» | |
| 37. |
Does improper inheritance have a potential to wreck a project? |
| Answer» | |
| 38. |
Explain the benefits of proper inheritance. |
| Answer» | |
| 39. |
What things would you remember while making an interface? |
| Answer» | |
| 40. |
What is the real purpose of class – to export data? |
| Answer» | |
| 41. |
Explain abstraction. |
| Answer» | |