---True/False: When sorting an array of objects or
structures, one can chose from many elements within
that object to sort on. For example, if sorting an array
of struct Person objects, the array may be sorted by:
lastName, firstName, birthday, height, weight,
income, etc.
True
False
---Recursion is often used in algorithms involving
bovine nutrition
addition and subtraction
conversion from Python to C++
artificial intelligence
None of the above
---True/False: Recursion is preferred to iteration
because recursion is faster.
True
False
--Concerning using pointers in C++, which of the
following is true?
Your mother's advice: it is not kind to point,
applies to C++ as well as to a child's behavior.
Pointers add many new capabilities, including the
use of dynamically allocated memory.
Pointers are a nice syntactic option, but add no
new capability.
Pointers are only used to access dynamically
allocated memory.
----Casting a pointer tells the compiler to treat a
pointer to class A as if it were a pointer to class B.
This:
is not allowed.
should be done only if class A has nothing in
common with class B.
should be avoided if possible, as it can enable
run-time errors to occur.
must be done to achieve polymorphism.
is none of these