Exam 11: Advanced Object-Oriented Programming Features
Exam 1: Introduction to Computing and Programming75 Questions
Exam 2: Data Types and Expressions75 Questions
Exam 3: Methods and Behaviors75 Questions
Exam 4: Creating Your Own Classes75 Questions
Exam 5: Making Decisions75 Questions
Exam 6: Repeating Instructions75 Questions
Exam 7: Arrays75 Questions
Exam 8: Advanced Collections74 Questions
Exam 9: Introduction to Windows Programming75 Questions
Exam 10: Programming Based on Events75 Questions
Exam 11: Advanced Object-Oriented Programming Features75 Questions
Exam 12: Debugging and Handling Exceptions75 Questions
Exam 13: Working With Files75 Questions
Exam 14: Working With Databases75 Questions
Exam 15: Web-Based Applications73 Questions
Select questions type
Determining which method to call at runtime based on which object invokes the method describes ____.
Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
C
Constructors, which use the same identifier as their class, are normally defined with protected access.
Free
(True/False)
4.9/5
(38)
Correct Answer:
False
Which access modifier should be used to give derived classes direct access to change the parent member data. This access modifier does not allow classes that instantiate objects of the class to have access to change member data?
Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
C
Components that can be referenced from any number of applications are created as class library files with a dynamic link library (DLL) extension.
(True/False)
4.8/5
(30)
Object-oriented development focuses on designing classes that can be reused. One way to ensure this reuse is through designing and building components that can be stored in a library and called on when needed.
(True/False)
4.8/5
(49)
One way to write reusable code is to use the object data type for instance data members. Doing so then requires ____.
(Multiple Choice)
4.9/5
(40)
Once a DLL is available, any application can add a reference to the DLL. The referenced file with the .dll extension becomes part of the application's private assembly.
(True/False)
4.8/5
(35)
The Unified Modeling Language (UML) notation for the interfaces specifies that the name of the Interface methods should appear in italics.
(True/False)
4.8/5
(27)
When a class implements an interface, the body of each of the interface's methods has to be written in the new class.
(True/False)
4.8/5
(41)
You cannot spread the definition of your classes over multiple files using the partial keyword. Partial classes are reserved for use by the IDE.
(True/False)
4.7/5
(34)
Protected access enables derived classes to have access to change data in the base class.
(True/False)
4.9/5
(43)
Access to members that have been defined with the public access modifier is restricted to members of the current class.
(True/False)
4.8/5
(38)
A generic class is defined ____ on the class definition line.
(Multiple Choice)
4.8/5
(37)
Encapsulation enables multiple implementations of the same behaviors so that the appropriate implementation can be executed based on the situation.
(True/False)
4.9/5
(31)
It is not necessary to add a reference to a .dll file if the file is stored in the same project subdirectory.
(True/False)
4.9/5
(41)
public static void ExchangeContents (ref T value1, ref T value2) {
T temp;
Temp = value1;
Value1 = value2;
Value2 = temp;
}
Which of the following is TRUE regarding the above segment of code?
(Multiple Choice)
4.8/5
(38)
Through defining the methods of a class as private, you protect the class.
(True/False)
4.8/5
(34)
Showing 1 - 20 of 75
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)