c# SEASON TWO FINAL CHAP 15 finale pt 4
To retrieve multiple selections from a ListBox control, you can use all of the following properties EXCEPT ____.
Text
The ____ class in the System.Windows.Forms namespace enables you to add more functionality to your application by offering additional user options, such as adding layers of menus.
MenuStrip
Which of the following is one of the pre-configured dialog boxes that can be added to an application?
ColorDialog
What is the name of the default event handler method for RadioButton and CheckBox objects?
CheckChanged( )
Which control is used for placing objects, like RadioButtons, together? This control not only offers the benefit of visual appearance, but also helps during design because you can set properties that impact all the associated objects.
GroupBox
With Windows Presentation Foundation (WPF) applications, ____.
a new XAML file, resembling an HTML file, is added to the solution
Which property is used with the PictureBox control to associate an actual picture to the control?
Image
What does the following statement do?
this.BackColor = System.Drawing.Color.Blue;
sets the form color to Blue
The SelectionMode property of the ListBox object ____.
enables multiple selections to be made
Packaging data attributes and behaviors into a single unit so that implementation details can be hidden describes ____ as it relates to object oriented development.
Encapsulation
Enabling reuse of code through extending the functionality of classes describes ____ as it relates to object oriented development.
Inheritance
Enabling multiple implementations of the same behaviors so that the appropriate implementation can be executed based on the situation describes ____ as it relates to object oriented development.
Polymorphism
By defining data members as private, you protect the data and enable access only through the object's methods and properties. This describes the ____ feature.
Encapsulation
Components are implemented in C# through ____.
Classes
Class library files end with a(n) ____ extension.
.dll
Classes can have a "has a" relationship. This is a concept called ____ or aggregation.
Containment
The ____ keyword can be used to spread the definition of your classes over multiple files.
Partial
Constructors are defined with ____ access modifiers.
Public
Replacing a method defined at a higher level creates a(n) ____.
Overridden Method
To override a method, the base method may include any of the following keywords, EXCEPT ____.
Interface
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?
Protected
The base default constructor is called by ____.
adding base( ): between the constructor heading and the opening curly brace
A generic class is defined ____ on the class definition line.
by inserting an identifier between left and right brackets
In order to inherit from a user-defined base class, you must ____.
add the base class following a colon
To add dynamic link library components, add a reference to the components in your program and include a using directive. The reason for adding the using directive is to ____.
avoid fully qualifying references to class members
One of the developer tools available with Visual Studio that can be used to view an assembly is ____.
ILDASM
Use the ____ keyword to mark a class so that it can be used only as the base class from which other classes can be derived.
Abstract
The distinguishing characteristic of an abstract method is ____.
no implementation details are included
Abstract classes can include ____.
regular data field and method members
When you add the virtual keyword to a method heading, it ____.
tags the method as capable of being overridden.
____ contain no implementation details for any of their methods. Instead all their members are considered abstract.
Interfaces
Calls to the ToString( ) method emphasize the use of ____.
Polymorphism
Determining which method to call at runtime based on which object invokes the method describes ____.
Dynamic Binding
Multiple inheritance is not possible in C#; ____ provides the closest work around to this because a class can implement multiple ____.
Interfaces
If you do not want subclasses to be able to provide new implementation details, you can add the keyword ____ to methods. Doing so keeps derived classes from being able to override the method.
Sealed
____ classes cannot be instantiated. ____ classes cannot be inherited.
Abstract, Sealed
Variables declared as dynamic ____.
can hold any type of value
Which keyword instructs the compiler to infer the type of the variable from the expression on the right side of the initialization statement?
Var
One way to write reusable code is to use the object data type for instance data members. Doing so then requires ____.
Casting and unboxing the data type
If a program encounters an error that it cannot recover from, it ____.
raises or throws an exception
When the CLR handles the exception by halting the application ____.
an unhandled exception is reported
Bugs are normally labeled as ____.
programmer mistakes
A listing of all the methods that are in the execution chain when an exception is thrown is called a(n) ____.
Stack trace
____ is/are used to facilitate managing exceptions in a consistent, efficient way.
try...catch...finally
The code that you want executed, whether an exception is thrown or not, is placed in the ____ block.
Finally
When an unexpected error occurs in the try block that throws an exception, control transfers ____.
to the first listed matching catch clause
The property of the Exception class that returns a string describing the exception is ____.
Message
When you write your own exceptions, the new class should be derived from ____.
System.ApplicationException
An attempt to access an element of an array with an index that is outside the bounds of the array throws a ____.
System.IndexOutOfRangeException
Writing a catch clause without an argument list ____.
is the same as writing catch (System.Exception)
An IO.IOException exception is thrown when ____.
there are problems loading the contents of a file
An exception that must be included if you use a specific construct describes a ____ exception.
Checked
What type of error is associated with a language rule violation?
Syntax
Markers placed in an application to indicate the program should halt execution when it reaches that spot is a ____.
Breakpoint