InterviewSolution
Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is a friend class? |
| Answer» | |
| 2. |
What is the order of objects destroyed in the memory? |
| Answer» | |
| 3. |
What is a virtual destructor? |
| Answer» | |
| 4. |
Can we nest multi line comments in a C++ code? |
| Answer» | |
| 5. |
What is the purpose of #undef preprocessor? |
| Answer» | |
| 6. |
Is 068 a valid octal number? |
| Answer» | |
| 7. |
Which key word is used to perform unconditional branching? |
| Answer» | |
| 8. |
What is the difference between variable declaration and variable definition? |
| Answer» | |
| 9. |
What is the difference between actual and formal parameters? |
| Answer» | |
| 10. |
S++ or S = S+1, which can be recommended to increment the value by 1 and why? |
| Answer» | |
| 11. |
What is difference between including the header file with-in angular braces < > and double quotes “ “ |
| Answer» | |
| 12. |
If a pointer declared for a class, which operator can be used to access its class members? |
| Answer» | |
| 13. |
What is the use of the keyword ‘using’? |
| Answer» | |
| 14. |
What is ‘cin’? |
| Answer» | |
| 15. |
What is ‘cout’? |
| Answer» | |
| 16. |
What is the full form of STL? |
| Answer» | |
| 17. |
What is ‘std’? |
| Answer» | |
| 18. |
Can we create and empty class? If so what would be the size of such object. |
| Answer» | |
| 19. |
Are class functions taken into consideration as part of the object size? |
| Answer» | |
| 20. |
Which function is used to move the stream pointer for the purpose of writing data from stream? |
| Answer» | |
| 21. |
Which function is used to move the stream pointer for the purpose of reading data from stream? |
| Answer» | |
| 22. |
What is function overriding? |
| Answer» | |
| 23. |
Are the exceptions and error same? |
| Answer» | |
| 24. |
What happens if an exception is thrown outside a try block? |
| Answer» | |
| 25. |
Is it legal to assign a base class object to a derived class pointer? |
| Answer» | |
| 26. |
Does an abstract class in C++ need to hold all pure virtual functions? |
| Answer» | |
| 27. |
What is the difference between delete and delete[]? |
| Answer» | |
| 28. |
What are available mode of inheritance to inherit one class from another? |
| Answer» | |
| 29. |
What is the default function call method? |
| Answer» | |
| 30. |
What is the maximum length of an identifier? |
| Answer» | |
| 31. |
What is the first string in the argument vector w.r.t command line arguments? |
| Answer» | |
| 32. |
What is recursion? |
| Answer» | |
| 33. |
What are valid operations on pointers? |
| Answer» | |
| 34. |
How can we refer to the global variable if the local and the global variable names are same? |
| Answer» | |
| 35. |
Which operator can be used to determine the size of a data type/class or variable/object? |
| Answer» | |
| 36. |
Who designed C++ programming language? |
| Answer» | |
| 37. |
Can we resize the allocated memory which was allocated using ‘new’ operator? |
| Answer» | |
| 38. |
Which compiler switch to be used for compiling the programs using math library with g++ compiler? |
| Answer» | |
| 39. |
What is reminder for 5.0 % 2? |
| Answer» | |
| 40. |
What are the different ways of passing parameters to the functions? Which to use when? |
| Answer» | |
| 41. |
What is a preprocessor? |
| Answer» | |
| 42. |
What is a token? |
| Answer» | |
| 43. |
What is a container class? |
| Answer» | |
| 44. |
Where an automatic variable is stored? |
| Answer» | |
| 45. |
Can a program be compiled without main() function? |
| Answer» | |
| 46. |
When should we use the register storage specifier? |
| Answer» | |
| 47. |
What is the meaning of base address of the array? |
| Answer» | |
| 48. |
What is the purpose of extern storage specifier. |
| Answer» | |
| 49. |
What is a static variable? |
| Answer» | |
| 50. |
What is keyword auto for? |
| Answer» | |