

MCQOPTIONS
Saved Bookmarks
This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
vptr is _______________ |
A. | a real pointer |
B. | like this pointer of class |
C. | passed as a parameter to all functions of class |
D. | used to resolve self-references |
Answer» B. like this pointer of class | |
2. |
What is the full form of vptr? |
A. | Vector Pointer |
B. | Virtual Pointer |
C. | V type Pointer |
D. | Virtual-vector Pointer |
Answer» B. Virtual Pointer | |
3. |
What is vptr? |
A. | A hidden pointer in a class that points to a virtual table of that class |
B. | A hidden pointer in a class that points to virtual functions of that class |
C. | A hidden pointer in a class that points to virtual members of the class of that class |
D. | A pointer in a class that points to other class |
Answer» B. A hidden pointer in a class that points to virtual functions of that class | |
4. |
What is the full form of vtable? |
A. | V type table |
B. | Vector table |
C. | Virtual table |
D. | Virtual-vector table |
Answer» D. Virtual-vector table | |
5. |
Which classes can have vtable? |
A. | Classes having friend functions |
B. | Classes having virtual functions |
C. | Classes having static functions |
D. | All classes have a vtable |
Answer» C. Classes having static functions | |
6. |
What is vtable in C++? |
A. | Lookup table to resolve function calls in dynamic manners |
B. | Lookup table to resolve function calls in static manners |
C. | Lookup table to see which are the functions available for calls throughout the program |
D. | Lookup table to check how many functions are there int he program |
Answer» B. Lookup table to resolve function calls in static manners | |