Back to Tests
C++ Test 1
1. How we can define member function outside the class ?
Using scope resolution
2. What is true about Constructor ?
Its name is plural of class name
Its name has * symbol before it.
Its name is same as of class name
Its name has # symbol before it
3. We can do constructor overloading in C++ ?
4. The major goal of inheritance in C++ is ?
To facilitate the reusability of code
To help modular programming
To facilitate the conversion of data types
To extend the capabilities of a class
5. Size of a char is ?
6. & operator is ?
7. The default visibility mode while inheriting is ?
may be any of above
8. Stacks are based on ?
9. Queues are based on ?
10. The function used to define the task assigned to an operator is ?