Quiz 8 Flashcards
(10 cards)
T/F
While garbage collector reduces manual memory management, it can cause unpredictable pauses in program execution and negatively impact performance, especially in real-time or performance-critical applications.
True
____________ function in C++ is a function for which the compiler attempts to replace the function call with the function’s code itself, instead of performing the usual process of jumping to the function’s location in memory.
inline
friend
virtual
final
inline
T/F
In C++, protected members are inaccessible to client and to derived classes.
False
T/F
In C++, a function declared with a 0 and the keyword virtual is an abstract function and it cannot be called. It must be overridden in a derived class.
True
Some OOP languages, like Java and C++, allow you to mark methods or classes as _______________, which means they cannot be overridden.
virtual
final
friend
inline
final
T/F
C++ excludes classes from type checking.
False
T/F
In C++, instead of storing the actual method implementation inside each object, the object has a pointer to a table (vtable) that stores the addresses of dynamically bound methods.
True
T/F
All virtual functions in C++ are dynamically bound.
False
In C++, the _______________ keyword is a mechanism that allows a class to grant another class or function access to its private and protected members, which are normally hidden from other parts of the program.
final
inline
friend
virtual
friend
T/F
C++ offers multiple inheritance using a comma-separated list of base classes.
True