Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
26 Cards in this Set
- Front
- Back
A(n) _______ is best used for providing services that bring together disparate objects.
|
interface
|
|
All methods in an abstract base class must be declared abstract.
|
False
|
|
Keyword __________ compares two objects to determine if a cast operation would be a success.
|
is
|
|
Abstract classes are classes which may not be:
|
instantiated
|
|
Polymorphism involves:
|
the same message sent to a variety of objects.
|
|
A class inherited from two or more levels up in the hierarchy is known as a
|
indirect base class.
|
|
Which of the following classes is the root of the class hierarchy?
A. System.Object B. ToString C. None of the specified choices. D. Point |
A. System.Object
|
|
Which of the following may result in a compiler error?
A. referring to a base-class object with a base-class reference. B. referring to a base-class object with a derived-class reference. C. referring to a derived class object with a base class reference. D. referring to a derived-class object with a derived-class reference. |
B. referring to a base-class object with a derived-class reference.
|
|
A derived class cannot access the ____________ members of its base class.
|
private
|
|
How can a derived class call a base class constructor?
|
explicitly & implicitly
|
|
The programmer may define implementations for abstract methods to act as a default.
|
False
|
|
It is not a compilation error to override a method with a different access modifier.
|
False
|
|
A derived class can become a base class for another class.
|
True
|
|
Downcasting is the opposite of upcasting and is a technique of moving an object up the derivation hierarchy.
|
False
|
|
A derived class can override a base class method. This is done because:
|
Methods are inherited that should not be
|
|
List, in the proper order, the nine steps of Software Life Cycle (as defined in class).
|
1. Specification
2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing 7. Refinement 8. Production 9. Maintenance |
|
List at least 3 different types of GUI controls available in the Visual Studio 2008.
|
1. button
2. textbox 3. radiobutton |
|
Consider polymorphic behavior. Which statement best describes the relationship between base class and derived class types?
|
A derived class reference can be assigned to a base class variable, but a base class reference cannot be assigned to a derived class variable.
|
|
The conventional name for an interface to be called Car is:
|
ICar
|
|
A class that implements an interface but does not declare all of the interface’s methods must be declared:
|
abstract
|
|
Overloaded operator methods must be declared public and ________.
|
static
|
|
Which of the following is not included in an exception’s stack trace?
|
Instructions on handling the exception.
|
|
Data stored in a file is considered:
|
persistent data
|
|
A stack is a __________ data structure.
|
LIFO
|
|
A __________ class contains a reference member that refers to an object of the same class type.
|
self-referential
|
|
Queue nodes are removed only from the __________ of the queue, and are inserted only at the __________ of the queue.
|
head, head
|